kopper: check whether zink is using sw

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16190>
This commit is contained in:
Mike Blumenkrantz
2022-04-27 17:20:03 -04:00
committed by Marge Bot
parent 5660cded60
commit ab8702c59e

View File

@@ -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