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>
This commit is contained in:
Alyssa Rosenzweig 2022-01-16 12:39:36 -05:00
parent 011106640f
commit 054c5be102
1 changed files with 13 additions and 0 deletions

View File

@ -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;