Module: Mesa
Branch: master
Commit: 05ca6758cb5131519a1d200a41048c0b38ebe84c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=05ca6758cb5131519a1d200a41048c0b38ebe84c

Author: Tony Wasserka <[email protected]>
Date:   Thu Nov  5 12:41:58 2020 +0100

aco/tests: Fix GFX10_3 being printed as gfx11

Reviewed-by: Daniel Schürmann <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7461>

---

 src/amd/compiler/tests/framework.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/amd/compiler/tests/framework.h 
b/src/amd/compiler/tests/framework.h
index 217029afda3..097921f8df9 100644
--- a/src/amd/compiler/tests/framework.h
+++ b/src/amd/compiler/tests/framework.h
@@ -46,7 +46,11 @@ bool set_variant(const char *name);
 inline bool set_variant(chip_class cls, const char *rest="")
 {
    char buf[8+strlen(rest)];
-   snprintf(buf, sizeof(buf), "gfx%d%s", cls - GFX6 + 6, rest);
+   if (cls != GFX10_3) {
+      snprintf(buf, sizeof(buf), "gfx%d%s", cls - GFX6 + 6, rest);
+   } else {
+      snprintf(buf, sizeof(buf), "gfx10_3%s", rest);
+   }
    return set_variant(buf);
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to