panfrost: Advertise Bifrost support

Drop the PAN_MESA_DEBUG=bifrost flag. Load on Bifrost chips by default.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7408>
This commit is contained in:
Alyssa Rosenzweig 2020-11-01 09:11:09 -05:00 committed by Marge Bot
parent 828c7e7626
commit b6c71425c2
2 changed files with 2 additions and 7 deletions

View file

@ -64,7 +64,6 @@ static const struct debug_named_value debug_options[] = {
{"precompile", PAN_DBG_PRECOMPILE, "Precompile shaders for shader-db"},
{"fp16", PAN_DBG_FP16, "Enable 16-bit support"},
{"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
@ -730,14 +729,10 @@ panfrost_create_screen(int fd, struct renderonly *ro)
case 0x750: /* T760 */
case 0x820: /* T820 */
case 0x860: /* T860 */
break;
case 0x6221: /* G72 */
case 0x7093: /* G31 */
case 0x7212: /* G52 */
if (dev->debug & PAN_DBG_BIFROST)
break;
/* fallthrough */
break;
default:
/* Fail to load against untested models */
debug_printf("panfrost: Unsupported model %X", dev->gpu_id);

View file

@ -35,7 +35,7 @@
#define PAN_DBG_SYNC 0x0010
#define PAN_DBG_PRECOMPILE 0x0020
#define PAN_DBG_NOFP16 0x0040
#define PAN_DBG_BIFROST 0x0080
/* 0x80 unused */
#define PAN_DBG_GL3 0x0100
#define PAN_DBG_NO_AFBC 0x0200
#define PAN_DBG_FP16 0x0400