mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
intel/fs: Don't assert on b2f with a saturate modifier
This ran afoul of Iris's use of nir_lower_clamp_color_outputs which
applies fsat() before writes to vertex shader color outpus.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Fixes: 7725d60938 ("intel/fs: Emit better code for b2f(inot(a)) and b2i(inot(a))")
This commit is contained in:
parent
32ffd90002
commit
d1d56f5f9a
1 changed files with 3 additions and 1 deletions
|
|
@ -800,8 +800,10 @@ fs_visitor::try_emit_b2fi_of_inot(const fs_builder &bld,
|
|||
|
||||
prepare_alu_destination_and_sources(bld, inot_instr, &op, false);
|
||||
|
||||
/* Ignore the saturate modifier, if there is one. The result of the
|
||||
* arithmetic can only be 0 or 1, so the clamping will do nothing anyway.
|
||||
*/
|
||||
bld.ADD(result, op, brw_imm_d(1));
|
||||
assert(!instr->dest.saturate);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue