Module: Mesa Branch: main Commit: d9c3ba3b90989b89df24aa322d46d28b040de7db URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d9c3ba3b90989b89df24aa322d46d28b040de7db
Author: Georg Lehmann <[email protected]> Date: Wed Nov 15 08:58:36 2023 +0100 aco: use correct operand size for int tg4 wa Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26163> --- 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),
