mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
freedreno/afuc: Fix gen autodetection for a7xx
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26691>
This commit is contained in:
parent
ae9604c29e
commit
0b2e48f432
2 changed files with 4 additions and 0 deletions
|
|
@ -296,6 +296,8 @@ main(int argc, char **argv)
|
|||
gpuver = 5;
|
||||
} else if (strstr(file, "a6")) {
|
||||
gpuver = 6;
|
||||
} else if (strstr(file, "a7")) {
|
||||
gpuver = 7;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -469,6 +469,8 @@ main(int argc, char **argv)
|
|||
char *str = strstr(file, "a5");
|
||||
if (!str)
|
||||
str = strstr(file, "a6");
|
||||
if (!str)
|
||||
str = strstr(file, "a7");
|
||||
if (str)
|
||||
gpu_id = atoi(str + 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue