diff options
author | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2022-01-16 12:39:36 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2022-01-16 12:43:55 -0500 |
commit | 054c5be1021fdc30ad254ceb1f2c25256fcb8426 (patch) | |
tree | d3d69944e1bb82ee0ad8ec8b0c39e24b0bb392ab | |
parent | 011106640fb55d16003a3793458128adab5f8780 (diff) |
asahi: Warn when hacks mode is enabled
I don't want your pesky bug report.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14579>
-rw-r--r-- | src/gallium/drivers/asahi/agx_pipe.c | 13 |
1 files changed, 13 insertions, 0 deletions
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; |