mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
ac/llvm: fix unaligned VS input loads on gfx10.3
Fixes:a23802bcb9Reviewed-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> (cherry picked from commit7acc7ec33b)
This commit is contained in:
parent
4866958ece
commit
4c6cc7277f
2 changed files with 2 additions and 2 deletions
|
|
@ -2092,7 +2092,7 @@
|
|||
"description": "ac/llvm: fix unaligned VS input loads on gfx10.3",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "a23802bcb9a42a02d34a5a36d6e66d6532813a0d"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue