From c99dfe6a0c86fcd21969e9c940e5b3aa0f162b85 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 4 Jul 2021 18:44:34 -0400 Subject: [PATCH] agx: Fix 32-bit bitwise shifts Fixes dEQP-GLES2.functional.shaders.functions.qualifiers.const_int_fragment Fixes: e50bae00f48 ("agx: Add 32-bit bitwise shifts") Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index ef568e68208..2792197e0da 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -536,7 +536,7 @@ agx_emit_alu(agx_builder *b, nir_alu_instr *instr) case nir_op_ineg: return agx_iadd_to(b, dst, agx_zero(), agx_neg(s0), 0); case nir_op_imul: return agx_imad_to(b, dst, s0, s1, agx_zero(), 0); - case nir_op_ishl: return agx_bfi_to(b, dst, s0, agx_zero(), s1, 0); + case nir_op_ishl: return agx_bfi_to(b, dst, agx_zero(), s0, s1, 0); case nir_op_ushr: return agx_bfeil_to(b, dst, agx_zero(), s0, s1, 0); case nir_op_ishr: return agx_asr_to(b, dst, s0, s1);