From 8e86ba3dd404d71cf227f60c8337663c97db231e Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Wed, 1 Mar 2023 18:58:39 +0900 Subject: [PATCH] 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 Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 78c486677f4..c48445ac65e 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -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