Module: Mesa Branch: main Commit: 8e86ba3dd404d71cf227f60c8337663c97db231e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e86ba3dd404d71cf227f60c8337663c97db231e
Author: Asahi Lina <[email protected]> Date: Wed Mar 1 18:58:39 2023 +0900 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21662> --- 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
