diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-29 19:24:45 -0400 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2020-05-29 19:24:45 -0400 |
commit | bccb3deee2995e68a7f8a63d857f2cd298ff8361 (patch) | |
tree | 5be3a75e18924d52ae7d035bcf86322fb57edc47 /src/gallium/drivers | |
parent | be8cbe0b41dcabb5a0beb7b2ab2bd6ce87eb7955 (diff) |
panfrost: Probe G31/G52 if PAN_MESA_DEBUG=bifrost
We're not *quite* ready to open the flood gates on Bifrost (a major
blocker is CI, which is itself blocked on the lockdowns - expected to be
resolved in the coming months..)
Nevertheless, let's add a debug option to probe on compatible Bifrost
devices to avoid keeping out-of-tree patches around.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5272>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_screen.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 72cc7e03635..96d5b0d2c19 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -64,6 +64,7 @@ static const struct debug_named_value debug_options[] = { {"precompile", PAN_DBG_PRECOMPILE, "Precompile shaders for shader-db"}, {"gles3", PAN_DBG_GLES3, "Enable experimental GLES3 implementation"}, {"fp16", PAN_DBG_FP16, "Enable buggy experimental (don't use!) fp16"}, + {"bifrost", PAN_DBG_BIFROST, "Enable experimental Mali G31 and G52 support"}, DEBUG_NAMED_VALUE_END }; @@ -705,6 +706,12 @@ panfrost_create_screen(int fd, struct renderonly *ro) case 0x820: /* T820 */ case 0x860: /* T860 */ break; + case 0x7093: /* G31 */ + case 0x7212: /* G52 */ + if (pan_debug & PAN_DBG_BIFROST) + break; + + /* fallthrough */ default: /* Fail to load against untested models */ debug_printf("panfrost: Unsupported model %X", dev->gpu_id); |