From d9c3ba3b90989b89df24aa322d46d28b040de7db Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Wed, 15 Nov 2023 08:58:36 +0100 Subject: [PATCH] aco: use correct operand size for int tg4 wa Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index e8bec9ebf2c..3e274db2672 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -9589,8 +9589,9 @@ visit_tex(isel_context* ctx, nir_tex_instr* instr) * radv_init_sampler(). */ unsigned bit_idx = ffs(S_008F30_FORCE_UNNORMALIZED(1)) - 1; + Temp dword0 = emit_extract_vector(ctx, sampler, 0, s1); Temp not_needed = - bld.sopc(aco_opcode::s_bitcmp0_b32, bld.def(s1, scc), sampler, Operand::c32(bit_idx)); + bld.sopc(aco_opcode::s_bitcmp0_b32, bld.def(s1, scc), dword0, Operand::c32(bit_idx)); not_needed = bool_to_vector_condition(ctx, not_needed); half_texel[0] = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1),