From a5b891880086cc7f4ce6831056615e246b0d6be4 Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Tue, 8 Nov 2022 10:34:17 -0500 Subject: [PATCH] asahi: Set fd/ro appropriately Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 02536161207..7d2734ab3e7 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -1382,6 +1382,9 @@ agx_screen_create(int fd, struct renderonly *ro, struct sw_winsys *winsys) agx_screen->dev.debug = debug_get_flags_option("ASAHI_MESA_DEBUG", agx_debug_options, 0); + agx_screen->dev.fd = fd; + agx_screen->dev.ro = ro; + /* Try to open an AGX device */ if (!agx_open_device(screen, &agx_screen->dev)) { ralloc_free(agx_screen);