Module: Mesa Branch: main Commit: 11c79a8bd79178ab027438b018379051e33430c8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=11c79a8bd79178ab027438b018379051e33430c8
Author: Mike Blumenkrantz <[email protected]> Date: Thu Nov 11 12:11:33 2021 -0500 zink: stop using VK_IMAGE_LAYOUT_PREINITIALIZED for dmabuf this is illegal cc: mesa-stable Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13799> --- src/gallium/drivers/zink/zink_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 441b16b4857..817881070ac 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -376,7 +376,7 @@ create_ici(struct zink_screen *screen, VkImageCreateInfo *ici, const struct pipe ici->samples = templ->nr_samples ? templ->nr_samples : VK_SAMPLE_COUNT_1_BIT; ici->tiling = modifiers_count ? VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT : bind & PIPE_BIND_LINEAR ? VK_IMAGE_TILING_LINEAR : VK_IMAGE_TILING_OPTIMAL; ici->sharingMode = VK_SHARING_MODE_EXCLUSIVE; - ici->initialLayout = dmabuf ? VK_IMAGE_LAYOUT_PREINITIALIZED : VK_IMAGE_LAYOUT_UNDEFINED; + ici->initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; /* sampleCounts will be set to VK_SAMPLE_COUNT_1_BIT if at least one of the following conditions is true: * - flags contains VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT
