From: Marek Olšák Date: Fri, 4 Sep 2020 10:38:15 +0000 (-0400) Subject: ac/llvm: fix unaligned VS input loads on gfx10.3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7acc7ec33b3900c645503a1df5d031057ed7dc6b;p=mesa.git ac/llvm: fix unaligned VS input loads on gfx10.3 Fixes: a23802bcb9a Reviewed-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Samuel Pitoiset Part-of: --- diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c index 77d3f7e73fb..de9091693c1 100644 --- a/src/amd/llvm/ac_llvm_build.c +++ b/src/amd/llvm/ac_llvm_build.c @@ -1656,7 +1656,7 @@ ac_build_opencoded_load_format(struct ac_llvm_context *ctx, } int log_recombine = 0; - if ((ctx->chip_class == GFX6 || ctx->chip_class == GFX10) && !known_aligned) { + if ((ctx->chip_class == GFX6 || ctx->chip_class >= GFX10) && !known_aligned) { /* Avoid alignment restrictions by loading one byte at a time. */ load_num_channels <<= load_log_size; log_recombine = load_log_size;