panfrost: Add a debug flag to disable AFBC

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7076>
This commit is contained in:
Icecream95
2020-10-09 22:39:40 +13:00
committed by Marge Bot
parent 205f1d79e2
commit 210db65b1a
2 changed files with 5 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ static const struct debug_named_value debug_options[] = {
{"nofp16", PAN_DBG_NOFP16, "Disable 16-bit support"},
{"bifrost", PAN_DBG_BIFROST, "Enable experimental Mali G31 and G52 support"},
{"gl3", PAN_DBG_GL3, "Enable experimental GL 3.x implementation, up to 3.3"},
{"noafbc", PAN_DBG_NO_AFBC, "Disable AFBC support"},
DEBUG_NAMED_VALUE_END
};
@@ -695,6 +696,9 @@ panfrost_create_screen(int fd, struct renderonly *ro)
dev->debug = debug_get_flags_option("PAN_MESA_DEBUG", debug_options, 0);
if (dev->debug & PAN_DBG_NO_AFBC)
dev->quirks |= MIDGARD_NO_AFBC;
if (ro) {
dev->ro = renderonly_dup(ro);
if (!dev->ro) {

View File

@@ -37,5 +37,6 @@
#define PAN_DBG_NOFP16 0x0040
#define PAN_DBG_BIFROST 0x0080
#define PAN_DBG_GL3 0x0100
#define PAN_DBG_NO_AFBC 0x0200
#endif /* PAN_UTIL_H */