aco/optimizer_postRA: check overwritten_subdword in is_overwritten_since()

Fixes crash for
dEQP-VK.mesh_shader.ext.in_out.with_f16.permutation_0.mesh_only and
similar tests on GFX11.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Fixes: 3d29779a25 ("aco/optimizer_postRA: Distinguish overwritten untrackable and subdword.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25223>
(cherry picked from commit ac48334ecd)
This commit is contained in:
Rhys Perry 2023-09-14 14:22:29 +01:00 committed by Eric Engestrom
parent 49f7130c49
commit 289dc50798
2 changed files with 3 additions and 1 deletions

View file

@ -526,7 +526,7 @@
"description": "aco/optimizer_postRA: check overwritten_subdword in is_overwritten_since()",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "3d29779a25a98898163b1dc9c687e6e6211d13c5"
},

View file

@ -211,6 +211,8 @@ is_overwritten_since(pr_opt_ctx& ctx, PhysReg reg, RegClass rc, const Idx& since
return true;
else if (i == overwritten_untrackable || i == not_written_yet)
continue;
else if (i == overwritten_subdword)
return true;
assert(i.found());