mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
panfrost: Make the GPU allowlist implicit
Allowlist a GPU if and only if it has a model definition in-tree. This replaces the explicit allowlist, which is somewhat cumbersome to maintain. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14726>
This commit is contained in:
parent
8c01a8a263
commit
5e808f7b0a
1 changed files with 2 additions and 15 deletions
|
|
@ -853,21 +853,8 @@ panfrost_create_screen(int fd, struct renderonly *ro)
|
|||
if (dev->debug & PAN_DBG_NO_AFBC)
|
||||
dev->has_afbc = false;
|
||||
|
||||
/* Check if we're loading against a supported GPU model. */
|
||||
|
||||
switch (dev->gpu_id) {
|
||||
case 0x720: /* T720 */
|
||||
case 0x750: /* T760 */
|
||||
case 0x820: /* T820 */
|
||||
case 0x860: /* T860 */
|
||||
case 0x6221: /* G72 */
|
||||
case 0x7093: /* G31 */
|
||||
case 0x7211: /* G76 */
|
||||
case 0x7212: /* G52 */
|
||||
case 0x7402: /* G52r1 */
|
||||
break;
|
||||
default:
|
||||
/* Fail to load against untested models */
|
||||
/* Bail early on unsupported hardware */
|
||||
if (dev->model == NULL) {
|
||||
debug_printf("panfrost: Unsupported model %X", dev->gpu_id);
|
||||
panfrost_destroy_screen(&(screen->base));
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue