From 077dd12ac6cfa14db4b342394f0bc3d09025d451 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Thu, 14 Jul 2022 15:37:07 +0100 Subject: [PATCH] aco/gfx11: don't use more than 1 NSA dword MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 1a3a2f5..df18d08 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -6024,8 +6024,8 @@ static MIMG_instruction* emit_mimg(Builder& bld, aco_opcode op, Definition dst, Temp rsrc, Operand samp, std::vector coords, unsigned wqm_mask = 0, Operand vdata = Operand(v1)) { - /* Limit NSA instructions to 3 dwords on GFX10 to avoid stability issues. */ - unsigned max_nsa_size = bld.program->gfx_level >= GFX10_3 ? 13 : 5; + /* Limit NSA instructions to 3 dwords on GFX10/11 to avoid stability/encoding issues. */ + unsigned max_nsa_size = bld.program->gfx_level == GFX10_3 ? 13 : 5; bool use_nsa = bld.program->gfx_level >= GFX10 && coords.size() <= max_nsa_size; if (!use_nsa) { -- 2.7.4