mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
intel/fs: Add an assert to optimize_frontfacing_ternary
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
bcc6aab065
commit
d28bc35ece
1 changed files with 3 additions and 0 deletions
|
|
@ -552,6 +552,9 @@ fs_visitor::optimize_frontfacing_ternary(nir_alu_instr *instr,
|
|||
if (fabsf(value1) != 1.0f || fabsf(value2) != 1.0f)
|
||||
return false;
|
||||
|
||||
/* nir_opt_algebraic should have gotten rid of bcsel(b, a, a) */
|
||||
assert(value1 == -value2);
|
||||
|
||||
fs_reg tmp = vgrf(glsl_type::int_type);
|
||||
|
||||
if (devinfo->gen >= 6) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue