asahi: Pull device name from device struct

This isn't filled in yet, but will be once the UAPI init function is
added.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21662>
This commit is contained in:
Asahi Lina 2023-03-01 18:58:39 +09:00 committed by Marge Bot
parent f1dac37b3d
commit 8e86ba3dd4

View file

@ -1198,7 +1198,9 @@ agx_get_device_vendor(struct pipe_screen *pscreen)
static const char *
agx_get_name(struct pipe_screen *pscreen)
{
return "Apple M1 (G13G B0)";
struct agx_device *dev = agx_device(pscreen);
return dev->name;
}
static int