Module: Mesa Branch: main Commit: ab8702c59ec37129a320f231d341f757c25f0f36 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ab8702c59ec37129a320f231d341f757c25f0f36
Author: Mike Blumenkrantz <[email protected]> Date: Wed Apr 27 17:20:03 2022 -0400 kopper: check whether zink is using sw Reviewed-by: Adam Jackson <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16190> --- src/gallium/frontends/dri/kopper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/frontends/dri/kopper.c b/src/gallium/frontends/dri/kopper.c index 1d01757b3bf..aec685b7c18 100644 --- a/src/gallium/frontends/dri/kopper.c +++ b/src/gallium/frontends/dri/kopper.c @@ -64,6 +64,7 @@ struct kopper_screen { struct pipe_screen *screen; //unwrapped bool has_dmabuf; bool has_modifiers; + bool is_sw; }; extern const __DRIimageExtension driVkImageExtension; @@ -170,6 +171,7 @@ kopper_init_screen(__DRIscreen * sPriv) screen->lookup_egl_image = dri2_lookup_egl_image; kscreen->has_dmabuf = pscreen->get_param(pscreen, PIPE_CAP_DMABUF); kscreen->has_modifiers = pscreen->query_dmabuf_modifiers != NULL; + kscreen->is_sw = zink_kopper_is_cpu(pscreen); if (kscreen->has_dmabuf) sPriv->extensions = drivk_screen_extensions; else
