zink: clamp out dmabuf exports from optimal tiling images
this is an impossible combo since optimal tiling cannot return stride Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31467>
This commit is contained in:
committed by
Marge Bot
parent
3c44886d9e
commit
49950d3b2f
@@ -1309,6 +1309,11 @@ create_image(struct zink_screen *screen, struct zink_resource_object *obj,
|
||||
|
||||
obj->render_target = (ici.usage & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) != 0;
|
||||
|
||||
if (ici.tiling == VK_IMAGE_TILING_OPTIMAL) {
|
||||
alloc_info->external &= ~VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT;
|
||||
alloc_info->export_types &= ~VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT;
|
||||
}
|
||||
|
||||
if (alloc_info->shared || alloc_info->external) {
|
||||
emici.sType = VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO;
|
||||
emici.pNext = ici.pNext;
|
||||
|
||||
Reference in New Issue
Block a user