Mesa (master): intel/vec4: Don't try both sources as immediates for DPH

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Oct 17 22:07:25 UTC 2019


Module: Mesa
Branch: master
Commit: 92252219d384a9ffdf2619f8228449963cd81872
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=92252219d384a9ffdf2619f8228449963cd81872

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Mon Jul 15 11:38:55 2019 -0700

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 <caio.oliveira at intel.com>
Fixes: b04beaf41d2 ("intel/vec4: Try both sources as candidates for being immediates")

---

 src/intel/compiler/brw_vec4_nir.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_vec4_nir.cpp b/src/intel/compiler/brw_vec4_nir.cpp
index c357ee2271b..7bc31755609 100644
--- a/src/intel/compiler/brw_vec4_nir.cpp
+++ b/src/intel/compiler/brw_vec4_nir.cpp
@@ -1951,7 +1951,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;




More information about the mesa-commit mailing list