mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
aco: fix out-of-bounds access when moving s_mem(real)time across SMEM
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8224
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21138>
(cherry picked from commit fad1f716dd)
This commit is contained in:
parent
7c4a9a4c99
commit
edc9ab9b0f
2 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@
|
|||
"description": "aco: fix out-of-bounds access when moving s_mem(real)time across SMEM",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -679,7 +679,7 @@ schedule_SMEM(sched_ctx& ctx, Block* block, std::vector<RegisterDemand>& registe
|
|||
current->operands[0].size() == 4))
|
||||
break;
|
||||
/* don't move descriptor loads below buffer loads */
|
||||
if (candidate->format == Format::SMEM && current->operands[0].size() == 4 &&
|
||||
if (candidate->isSMEM() && !candidate->operands.empty() && current->operands[0].size() == 4 &&
|
||||
candidate->operands[0].size() == 2)
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue