diff options
author | Kenneth Graunke <[email protected]> | 2014-06-07 01:56:12 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-06-10 16:38:26 -0700 |
commit | de65ec2fdeb3a22d408db24535d738b39cc3402c (patch) | |
tree | 51ce940f5ced365db43a0b09d48059c8e57d7230 /src/mesa/drivers/dri/i965/brw_sf_emit.c | |
parent | 7b9cf797903a5ea70072a28c0486d3e99ee60645 (diff) |
i965: Split Gen4-5 and Gen6+ MATH instruction emitters.
Our existing functions, brw_math and brw_math2, had unclear roles:
Gen4-5 used brw_math for both unary and binary math functions; it never
used brw_math2. Since operands are already in message registers, this
is reasonable.
Gen6+ used brw_math for unary math functions, and brw_math2 for binary
math functions, duplicating a lot of code. The only real difference was
that brw_math used brw_null_reg() for src1.
This patch improves brw_math2's assertions to allow both unary and
binary operations, renames it to gen6_math(), and drops the Gen6+ code
out of brw_math().
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_sf_emit.c')
0 files changed, 0 insertions, 0 deletions