zink: error at handle export on missing EXT_image_drm_format_modifier

this doesn't work anyway

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25526>
This commit is contained in:
Mike Blumenkrantz 2023-10-03 10:37:49 -04:00 committed by Marge Bot
parent 78f3db760d
commit c8f4cfd641

View file

@ -1763,6 +1763,10 @@ zink_resource_get_handle(struct pipe_screen *pscreen,
if (!res->obj->exportable) {
assert(!res->all_binds); //TODO handle if problematic
assert(!zink_resource_usage_is_unflushed(res));
if (!screen->info.have_EXT_image_drm_format_modifier) {
mesa_loge("zink: EXT_image_drm_format_modifier support required");
return false;
}
unsigned bind = ZINK_BIND_DMABUF;
if (!(res->base.b.bind & PIPE_BIND_SHARED))
bind |= PIPE_BIND_SHARED;