mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
78f3db760d
commit
c8f4cfd641
1 changed files with 4 additions and 0 deletions
|
|
@ -1763,6 +1763,10 @@ zink_resource_get_handle(struct pipe_screen *pscreen,
|
||||||
if (!res->obj->exportable) {
|
if (!res->obj->exportable) {
|
||||||
assert(!res->all_binds); //TODO handle if problematic
|
assert(!res->all_binds); //TODO handle if problematic
|
||||||
assert(!zink_resource_usage_is_unflushed(res));
|
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;
|
unsigned bind = ZINK_BIND_DMABUF;
|
||||||
if (!(res->base.b.bind & PIPE_BIND_SHARED))
|
if (!(res->base.b.bind & PIPE_BIND_SHARED))
|
||||||
bind |= PIPE_BIND_SHARED;
|
bind |= PIPE_BIND_SHARED;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue