mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
freedreno/afuc: Add missing varset check
Make sure afuc properly handles register variants. Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37727>
This commit is contained in:
parent
f7ce548d78
commit
67caa784cd
1 changed files with 4 additions and 2 deletions
|
|
@ -25,10 +25,12 @@ static struct rnnenum *pm4_packets;
|
|||
static int
|
||||
find_reg(struct rnndomain *dom, const char *name)
|
||||
{
|
||||
for (int i = 0; i < dom->subelemsnum; i++)
|
||||
for (int i = 0; i < dom->subelemsnum; i++) {
|
||||
if (!rnndec_varmatch(ctx, &dom->subelems[i]->varinfo))
|
||||
continue;
|
||||
if (!strcmp(name, dom->subelems[i]->name))
|
||||
return dom->subelems[i]->offset;
|
||||
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue