freedreno/afuc: Fix gen autodetection for a7xx

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26691>
This commit is contained in:
Connor Abbott 2023-12-14 16:37:59 +01:00 committed by Marge Bot
parent ae9604c29e
commit 0b2e48f432
2 changed files with 4 additions and 0 deletions

View file

@ -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;
}
}

View file

@ -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);
}