Mesa (main): aco/tests: fix gfx11 variants printed as gfx12

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 31 18:32:16 UTC 2022


Module: Mesa
Branch: main
Commit: d51dd7527b41b89c059950b2f8cfdc9026330827
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d51dd7527b41b89c059950b2f8cfdc9026330827

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Fri May 13 15:27:31 2022 +0100

aco/tests: fix gfx11 variants printed as gfx12

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16595>

---

 src/amd/compiler/tests/framework.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/tests/framework.h b/src/amd/compiler/tests/framework.h
index 477120350a1..f16301d074d 100644
--- a/src/amd/compiler/tests/framework.h
+++ b/src/amd/compiler/tests/framework.h
@@ -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);
    }



More information about the mesa-commit mailing list