diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2014-06-07 02:12:46 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2014-06-10 16:38:26 -0700 |
commit | b003fc265fc672b35d15ce7c2d05e8b9c81c4ee9 (patch) | |
tree | a0a8be3dd7e4a296de7457e6f9cd0b5d748b9781 /src/mesa/drivers/dri/i965/brw_sf_emit.c | |
parent | de65ec2fdeb3a22d408db24535d738b39cc3402c (diff) | |
download | external_mesa3d-b003fc265fc672b35d15ce7c2d05e8b9c81c4ee9.zip external_mesa3d-b003fc265fc672b35d15ce7c2d05e8b9c81c4ee9.tar.gz external_mesa3d-b003fc265fc672b35d15ce7c2d05e8b9c81c4ee9.tar.bz2 |
i965: Rename brw_math to gen4_math.
Usually, I try to use "brw" for functions that apply to all generations,
and "gen4" for dead end/legacy code that is only used on Gen4-5.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.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 | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf_emit.c b/src/mesa/drivers/dri/i965/brw_sf_emit.c index b0593f3..8f26e41 100644 --- a/src/mesa/drivers/dri/i965/brw_sf_emit.c +++ b/src/mesa/drivers/dri/i965/brw_sf_emit.c @@ -322,13 +322,13 @@ static void invert_det( struct brw_sf_compile *c) /* Looks like we invert all 8 elements just to get 1/det in * position 2 !?! */ - brw_math(&c->func, - c->inv_det, - BRW_MATH_FUNCTION_INV, - 0, - c->det, - BRW_MATH_DATA_SCALAR, - BRW_MATH_PRECISION_FULL); + gen4_math(&c->func, + c->inv_det, + BRW_MATH_FUNCTION_INV, + 0, + c->det, + BRW_MATH_DATA_SCALAR, + BRW_MATH_PRECISION_FULL); } @@ -611,13 +611,13 @@ void brw_emit_point_sprite_setup(struct brw_sf_compile *c, bool allocate) if (pc_coord_replace) { set_predicate_control_flag_value(p, c, pc_coord_replace); /* Caculate 1.0/PointWidth */ - brw_math(&c->func, - c->tmp, - BRW_MATH_FUNCTION_INV, - 0, - c->dx0, - BRW_MATH_DATA_SCALAR, - BRW_MATH_PRECISION_FULL); + gen4_math(&c->func, + c->tmp, + BRW_MATH_FUNCTION_INV, + 0, + c->dx0, + BRW_MATH_DATA_SCALAR, + BRW_MATH_PRECISION_FULL); brw_set_default_access_mode(p, BRW_ALIGN_16); |