summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2019-07-15 11:38:55 -0700
committerDylan Baker <[email protected]>2019-10-18 09:56:03 -0700
commitef906b46366d73112242cdb04fbc31901eb2d148 (patch)
treee6aa6e7c51c805aa5d7995d40ba3e9bd2c151359
parente958b35a40ff8f8c26d1890c53016df3061f65fc (diff)
intel/vec4: Don't try both sources as immediates for DPH
DPH isn't actually commutative, so this doesn't work. If the immediate in src0 would be a VF candidate, we could do better. *shrug* No shader-db changes on any Intel platform. Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]> Fixes: b04beaf41d2 ("intel/vec4: Try both sources as candidates for being immediates") (cherry picked from commit 92252219d384a9ffdf2619f8228449963cd81872)
-rw-r--r--src/intel/compiler/brw_vec4_nir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_vec4_nir.cpp b/src/intel/compiler/brw_vec4_nir.cpp
index fe9bc8f191f..9552b845b7d 100644
--- a/src/intel/compiler/brw_vec4_nir.cpp
+++ b/src/intel/compiler/brw_vec4_nir.cpp
@@ -1978,7 +1978,7 @@ vec4_visitor::nir_emit_alu(nir_alu_instr *instr)
break;
case nir_op_fdph_replicated:
- try_immediate_source(instr, op, true, devinfo);
+ try_immediate_source(instr, op, false, devinfo);
inst = emit(BRW_OPCODE_DPH, dst, op[0], op[1]);
inst->saturate = instr->dest.saturate;
break;