panfrost: Add GPU IDs for G52 1-Core-2EE (RK3568/RK3566)

Rockchip SoCs RK3566 and RK3568 have a Gondul with
one shader core and two execution engines, with product ID 0x7402.

Quoting the datasheet:

Mali-G52 1-Core-2EE
* Support 1600Mpix/s fill rate when 800MHz clock frequency
* Support 38.4GLOPs when 800MHz clock frequency

To distinguish it from other variants of G52, we agreed
to call this "G52L", L is for Little.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10771>
This commit is contained in:
Ezequiel Garcia 2021-05-11 16:57:25 -03:00 committed by Marge Bot
parent 01ef56a7e4
commit e1959f0f59
4 changed files with 4 additions and 0 deletions

View file

@ -843,6 +843,7 @@ panfrost_create_screen(int fd, struct renderonly *ro)
case 0x6221: /* G72 */
case 0x7093: /* G31 */
case 0x7212: /* G52 */
case 0x7402: /* G52L */
break;
default:
/* Fail to load against untested models */

View file

@ -49,6 +49,7 @@ bifrost_get_quirks(unsigned product_id)
return BIFROST_NO_PRELOAD;
case 0x70:
case 0x72:
case 0x74:
return 0;
default:
unreachable("Unknown Bifrost GPU ID");

View file

@ -116,6 +116,7 @@ panfrost_get_quirks(unsigned gpu_id, unsigned gpu_revision)
case 0x7093: /* G31 */
case 0x7212: /* G52 */
case 0x7402: /* G52L */
return BIFROST_QUIRKS | HAS_ANISOTROPIC;
default:

View file

@ -217,6 +217,7 @@ panfrost_model_name(unsigned gpu_id)
case 0x6221: return "Mali G72 (Panfrost)";
case 0x7093: return "Mali G31 (Panfrost)";
case 0x7212: return "Mali G52 (Panfrost)";
case 0x7402: return "Mali G52L (Panfrost)";
default:
unreachable("Invalid GPU ID");
}