aco/tests: fix gfx11 variants printed as gfx12

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16595>
This commit is contained in:
Rhys Perry
2022-05-13 15:27:31 +01:00
committed by Marge Bot
parent c8bde76a42
commit d51dd7527b

View File

@@ -47,7 +47,7 @@ inline bool set_variant(amd_gfx_level cls, const char *rest="")
{
char buf[8+strlen(rest)];
if (cls != GFX10_3) {
snprintf(buf, sizeof(buf), "gfx%d%s", cls - GFX6 + 6, rest);
snprintf(buf, sizeof(buf), "gfx%d%s", cls - GFX6 + 6 - (cls > GFX10_3), rest);
} else {
snprintf(buf, sizeof(buf), "gfx10_3%s", rest);
}