diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2014-05-31 16:57:02 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2014-06-02 15:09:36 -0700 |
commit | e374809819d82f2e3e946fe809c4d46061ddc5b5 (patch) | |
tree | 20a0fa915bd6703bd64b021799af9fe464352bac /src/mesa/drivers/dri/i965/brw_sf_emit.c | |
parent | 76d7160c6c76cd5cbf61ccfa178ffba4ea9aa93b (diff) | |
download | external_mesa3d-e374809819d82f2e3e946fe809c4d46061ddc5b5.zip external_mesa3d-e374809819d82f2e3e946fe809c4d46061ddc5b5.tar.gz external_mesa3d-e374809819d82f2e3e946fe809c4d46061ddc5b5.tar.bz2 |
i965: Put '_default_' in the name of functions that set default state.
Eventually we're going to use functions to set bits on an instruction.
Putting 'default' in the name of functions that alter default state will
help distinguins them.
This patch was generated entirely mechanically, by the following:
for file in brw*.{cpp,c,h}; do
sed -i \
-e 's/brw_set_mask_control/brw_set_default_mask_control/g' \
-e 's/brw_set_saturate/brw_set_default_saturate/g' \
-e 's/brw_set_access_mode/brw_set_default_access_mode/g' \
-e 's/brw_set_compression_control/brw_set_default_compression_control/g' \
-e 's/brw_set_predicate_control/brw_set_default_predicate_control/g' \
-e 's/brw_set_predicate_inverse/brw_set_default_predicate_inverse/g' \
-e 's/brw_set_flag_reg/brw_set_default_flag_reg/g' \
-e 's/brw_set_acc_write_control/brw_set_default_acc_write_control/g' \
$file;
done
No manual changes were done after running that command.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_sf_emit.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_sf_emit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf_emit.c b/src/mesa/drivers/dri/i965/brw_sf_emit.c index 8897596..b526a5c 100644 --- a/src/mesa/drivers/dri/i965/brw_sf_emit.c +++ b/src/mesa/drivers/dri/i965/brw_sf_emit.c @@ -500,7 +500,7 @@ void brw_emit_tri_setup(struct brw_sf_compile *c, bool allocate) } } - brw_set_predicate_control(p, BRW_PREDICATE_NONE); + brw_set_default_predicate_control(p, BRW_PREDICATE_NONE); } @@ -574,7 +574,7 @@ void brw_emit_line_setup(struct brw_sf_compile *c, bool allocate) } } - brw_set_predicate_control(p, BRW_PREDICATE_NONE); + brw_set_default_predicate_control(p, BRW_PREDICATE_NONE); } void brw_emit_point_sprite_setup(struct brw_sf_compile *c, bool allocate) @@ -619,7 +619,7 @@ void brw_emit_point_sprite_setup(struct brw_sf_compile *c, bool allocate) BRW_MATH_DATA_SCALAR, BRW_MATH_PRECISION_FULL); - brw_set_access_mode(p, BRW_ALIGN_16); + brw_set_default_access_mode(p, BRW_ALIGN_16); /* dA/dx, dA/dy */ brw_MOV(p, c->m1Cx, brw_imm_f(0.0)); @@ -639,7 +639,7 @@ void brw_emit_point_sprite_setup(struct brw_sf_compile *c, bool allocate) brw_MOV(p, brw_writemask(c->m3C0, WRITEMASK_W), brw_imm_f(1.0)); } - brw_set_access_mode(p, BRW_ALIGN_1); + brw_set_default_access_mode(p, BRW_ALIGN_1); } if (pc & ~pc_coord_replace) { @@ -664,7 +664,7 @@ void brw_emit_point_sprite_setup(struct brw_sf_compile *c, bool allocate) BRW_URB_SWIZZLE_TRANSPOSE); } - brw_set_predicate_control(p, BRW_PREDICATE_NONE); + brw_set_default_predicate_control(p, BRW_PREDICATE_NONE); } /* Points setup - several simplifications as all attributes are @@ -726,7 +726,7 @@ void brw_emit_point_setup(struct brw_sf_compile *c, bool allocate) } } - brw_set_predicate_control(p, BRW_PREDICATE_NONE); + brw_set_default_predicate_control(p, BRW_PREDICATE_NONE); } static void |