diff --git a/src/amd/compiler/aco_assembler.cpp b/src/amd/compiler/aco_assembler.cpp index 4a85a8dab15..88ff204999a 100644 --- a/src/amd/compiler/aco_assembler.cpp +++ b/src/amd/compiler/aco_assembler.cpp @@ -1639,8 +1639,9 @@ align_block(asm_context& ctx, std::vector& code, Block& block) /* On GFX10.3+, change the prefetch mode if the loop fits into 2 or 3 cache lines. * Don't use the s_inst_prefetch instruction on GFX10 as it might cause hangs. */ - const bool change_prefetch = - ctx.program->gfx_level >= GFX10_3 && loop_num_cl > 1 && loop_num_cl <= 3; + const bool change_prefetch = ctx.program->gfx_level >= GFX10_3 && + ctx.program->gfx_level <= GFX11 && loop_num_cl > 1 && + loop_num_cl <= 3; if (change_prefetch) { Builder bld(ctx.program);