From 3290978053c3f2237dfafb61405bae59036d56eb Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 30 Sep 2022 15:13:07 +0200 Subject: [PATCH] r600/sfn: assert on use of abs modifier in op3 Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp b/src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp index 9f46587a892..1e37267d85a 100644 --- a/src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp @@ -1925,6 +1925,10 @@ static bool emit_alu_op3(const nir_alu_instr& alu, EAluOp opcode, Shader& shader if (src[1]->negate) ir->set_alu_flag(alu_src1_neg); if (src[2]->negate) ir->set_alu_flag(alu_src2_neg); + assert(!src[0]->abs); + assert(!src[1]->abs); + assert(!src[2]->abs); + if (alu.dest.saturate) ir->set_alu_flag(alu_dst_clamp); ir->set_alu_flag(alu_write); shader.emit_instruction(ir);