mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
panfrost: Make instrs_equal check res table/index
Add resource table and index check to instruction equality function.
This prevents CSE from mistakenly eliminating LEA_BUF_IMM instructions
that load from different resources, but with the same buffer offset.
Cc: mesa-stable
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37007>
(cherry picked from commit 00b5275fe8)
This commit is contained in:
parent
7b5bda3fcc
commit
f9e034bf26
2 changed files with 7 additions and 1 deletions
|
|
@ -1134,7 +1134,7 @@
|
|||
"description": "panfrost: Make instrs_equal check res table/index",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -117,6 +117,12 @@ instrs_equal(const void *_i1, const void *_i2)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (i1->table != i2->table)
|
||||
return false;
|
||||
|
||||
if (i1->index != i2->index)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue