r600/sfn: Fix component count for fdph
authorGert Wollny <gert.wollny@collabora.com>
Sat, 19 Sep 2020 13:36:35 +0000 (15:36 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 21 Sep 2020 17:16:54 +0000 (17:16 +0000)
The second parameter has four components, and this is the one that would
be copied when splitting constants.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6787>

src/gallium/drivers/r600/sfn/sfn_emitaluinstruction.cpp

index b2da81f..bfcce67 100644 (file)
@@ -217,7 +217,6 @@ unsigned EmitAluInstruction::num_src_comp(const nir_alu_instr& instr)
       return 2;
 
    case nir_op_fdot3:
-   case nir_op_fdph:
    case nir_op_bany_inequal3:
    case nir_op_ball_iequal3:
    case nir_op_bany_fnequal3:
@@ -225,6 +224,7 @@ unsigned EmitAluInstruction::num_src_comp(const nir_alu_instr& instr)
       return 3;
 
    case nir_op_fdot4:
+   case nir_op_fdph:
    case nir_op_bany_inequal4:
    case nir_op_ball_iequal4:
    case nir_op_bany_fnequal4: