mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
aco: prevent infinite recursion in RA for subdword variables
Cc: 20.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6024>
(cherry picked from commit 4c89bfc4ec)
This commit is contained in:
parent
692df26b7d
commit
fcd612ba56
2 changed files with 2 additions and 2 deletions
|
|
@ -3910,7 +3910,7 @@
|
|||
"description": "aco: prevent infinite recursion in RA for subdword variables",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -396,7 +396,7 @@ std::pair<PhysReg, bool> get_reg_simple(ra_ctx& ctx,
|
|||
}
|
||||
|
||||
if (stride == 1) {
|
||||
|
||||
info.rc = RegClass(rc.type(), size);
|
||||
for (unsigned stride = 8; stride > 1; stride /= 2) {
|
||||
if (size % stride)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue