panfrost: Rework PAN_GPU_ID mechanism
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 14 Apr 2022 15:23:48 +0000 (11:23 -0400)
committerAlyssa Rosenzweig <alyssa@collabora.com>
Sat, 16 Apr 2022 15:50:51 +0000 (11:50 -0400)
commit4d460c9fdd3893e1272290cce35a15dbe2c0d93a
treee946fff3f62d777246451de49949206effc2452b
parentdae5e1bccd11bec39bd6c200caad16fa5e749bd5
panfrost: Rework PAN_GPU_ID mechanism

Originally, PAN_GPU_ID was checked in the driver itself. I added the mechanism
to run Bifrost shader-db on my Midgard laptop. There was no drm-shim support at
this point, and this was a reasonable stop gap at the time.

Nowadays, we have a competent drm-shim implementation, which wholly replaces
this use case. So PAN_GPU_ID is only useful for drm-shim. Let's pull the code
into drm-shim and get it out of the driver. This allows NDEBUG drm-shim builds
to work properly.

While we're at it, the default emulated GPU is changed from Mali-T860 to
Mali-G52. This reflects our shifting development priorities.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Suggested-by: Icecream95 <ixn@disroot.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15930>
src/panfrost/drm-shim/panfrost_noop.c
src/panfrost/lib/pan_props.c