diff options
author | Eric Anholt <eric@anholt.net> | 2012-12-06 10:55:26 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2012-12-11 10:12:41 -0800 |
commit | f606a42a3cad9dad27c207864417bcb20efa5c2e (patch) | |
tree | d041c48ca9e0a7aa2eb024bbfab290a17997e64a /src/mesa/drivers/dri/i965/test_eu_compact.c | |
parent | 7d404a4bd8feb1a6575774d8eec7bc993c8e095e (diff) | |
download | external_mesa3d-f606a42a3cad9dad27c207864417bcb20efa5c2e.zip external_mesa3d-f606a42a3cad9dad27c207864417bcb20efa5c2e.tar.gz external_mesa3d-f606a42a3cad9dad27c207864417bcb20efa5c2e.tar.bz2 |
i965: Correct the name and usage of the flag subregister number field.
We've been calling it a register number, it's actually the subregister,
and things will get confusing once we start using it if it isn't fixed.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/test_eu_compact.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/test_eu_compact.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/test_eu_compact.c b/src/mesa/drivers/dri/i965/test_eu_compact.c index 73351c3..41a5ef5 100644 --- a/src/mesa/drivers/dri/i965/test_eu_compact.c +++ b/src/mesa/drivers/dri/i965/test_eu_compact.c @@ -214,7 +214,7 @@ gen_PLN_MRF_GRF_GRF(struct brw_compile *p) } static void -gen_f0_MOV_GRF_GRF(struct brw_compile *p) +gen_f0_0_MOV_GRF_GRF(struct brw_compile *p) { struct brw_reg g0 = brw_vec8_grf(0, 0); struct brw_reg g2 = brw_vec8_grf(2, 0); @@ -225,19 +225,19 @@ gen_f0_MOV_GRF_GRF(struct brw_compile *p) brw_pop_insn_state(p); } -/* The handling of f1 vs f0 changes between gen6 and gen7. Explicitly test +/* The handling of f0.1 vs f0.0 changes between gen6 and gen7. Explicitly test * it, so that we run the fuzzing can run over all the other bits that might * interact with it. */ static void -gen_f1_MOV_GRF_GRF(struct brw_compile *p) +gen_f0_1_MOV_GRF_GRF(struct brw_compile *p) { struct brw_reg g0 = brw_vec8_grf(0, 0); struct brw_reg g2 = brw_vec8_grf(2, 0); brw_push_insn_state(p); brw_set_predicate_control(p, true); - current_insn(p)->bits2.da1.flag_reg_nr = 1; + current_insn(p)->bits2.da1.flag_subreg_nr = 1; brw_MOV(p, g0, g2); brw_pop_insn_state(p); } @@ -252,8 +252,8 @@ struct { { gen_ADD_MRF_GRF_GRF }, { gen_ADD_vec1_GRF_GRF_GRF }, { gen_PLN_MRF_GRF_GRF }, - { gen_f0_MOV_GRF_GRF }, - { gen_f1_MOV_GRF_GRF }, + { gen_f0_0_MOV_GRF_GRF }, + { gen_f0_1_MOV_GRF_GRF }, }; static bool |