Mesa (main): asahi: Warn when hacks mode is enabled
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Jan 16 17:54:22 UTC 2022
Module: Mesa
Branch: main
Commit: 054c5be1021fdc30ad254ceb1f2c25256fcb8426
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=054c5be1021fdc30ad254ceb1f2c25256fcb8426
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date: Sun Jan 16 12:39:36 2022 -0500
asahi: Warn when hacks mode is enabled
I don't want your pesky bug report.
Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14579>
---
src/gallium/drivers/asahi/agx_pipe.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c
index 666953ab0f6..02b16f46ec0 100644
--- a/src/gallium/drivers/asahi/agx_pipe.c
+++ b/src/gallium/drivers/asahi/agx_pipe.c
@@ -1127,6 +1127,19 @@ agx_screen_create(struct sw_winsys *winsys)
return NULL;
}
+ if (agx_screen->dev.debug & AGX_DBG_DEQP) {
+ /* You're on your own. */
+ static bool warned_about_hacks = false;
+
+ if (!warned_about_hacks) {
+ fprintf(stderr, "\n------------------\n"
+ "Unsupported debug parameter set. Expect breakage.\n"
+ "Do not report bugs.\n"
+ "------------------\n\n");
+ warned_about_hacks = true;
+ }
+ }
+
screen->destroy = agx_destroy_screen;
screen->get_name = agx_get_name;
screen->get_vendor = agx_get_vendor;
More information about the mesa-commit
mailing list