ac/llvm: fix unaligned VS input loads on gfx10.3

Fixes: a23802bcb9

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6595>
This commit is contained in:
Marek Olšák
2020-09-04 06:38:15 -04:00
committed by Marge Bot
parent aaa492e6c6
commit 7acc7ec33b
+1 -1
View File
@@ -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;