From 054c5be1021fdc30ad254ceb1f2c25256fcb8426 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 16 Jan 2022 12:39:36 -0500 Subject: [PATCH] asahi: Warn when hacks mode is enabled I don't want your pesky bug report. Signed-off-by: Alyssa Rosenzweig Part-of: --- 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;