mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
aco: fix alignment check in emit_load
align_offset already takes const_offset into consideration. Remove the adjustment. Fixes:542733dbbf("aco: add emit_load helper") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9097 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23242> (cherry picked from commit750d641ca6)
This commit is contained in:
parent
85de50a077
commit
f9b3314732
2 changed files with 2 additions and 2 deletions
|
|
@ -922,7 +922,7 @@
|
|||
"description": "aco: fix alignment check in emit_load",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "542733dbbf7ae49e2df81da6dde31aa2dcd9afe8"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4063,7 +4063,7 @@ emit_load(isel_context* ctx, Builder& bld, const LoadEmitInfo& info,
|
|||
unsigned const_offset = info.const_offset;
|
||||
|
||||
const unsigned align_mul = info.align_mul ? info.align_mul : component_size;
|
||||
unsigned align_offset = (info.align_offset + const_offset) % align_mul;
|
||||
unsigned align_offset = info.align_offset % align_mul;
|
||||
|
||||
unsigned bytes_read = 0;
|
||||
while (bytes_read < load_size) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue