mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
i965/vec4: Add argument index and type checks to SEL saturate propagation.
SEL saturate propagation already implicitly relies on these assumptions. Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
This commit is contained in:
parent
24073b2cd7
commit
7526ee36bc
1 changed files with 4 additions and 1 deletions
|
|
@ -343,7 +343,10 @@ try_copy_propagate(struct brw_context *brw, vec4_instruction *inst,
|
|||
*/
|
||||
switch(inst->opcode) {
|
||||
case BRW_OPCODE_SEL:
|
||||
if (inst->src[1].file != IMM ||
|
||||
if (arg != 0 ||
|
||||
inst->src[0].type != BRW_REGISTER_TYPE_F ||
|
||||
inst->src[1].file != IMM ||
|
||||
inst->src[1].type != BRW_REGISTER_TYPE_F ||
|
||||
inst->src[1].fixed_hw_reg.dw1.f < 0.0 ||
|
||||
inst->src[1].fixed_hw_reg.dw1.f > 1.0) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue