aco: don't change prefetch mode on GFX11.5+

This instruction was effectively removed:
https://github.com/llvm/llvm-project/commit/ba131b7017ce

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Acked-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29162>
This commit is contained in:
Rhys Perry 2024-04-12 11:39:37 +01:00 committed by Marge Bot
parent 5e58e32832
commit 2c4f561708
1 changed files with 3 additions and 2 deletions

View File

@ -1639,8 +1639,9 @@ align_block(asm_context& ctx, std::vector<uint32_t>& 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);