mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Vulkan: Don't query layout if we have optimal tiling.
This commit is contained in:
parent
0cb2bbd420
commit
f5bddd45e8
@ -441,7 +441,11 @@ struct vk_texture vulkan_create_texture(vk_t *vk,
|
||||
else
|
||||
tex.view = VK_NULL_HANDLE;
|
||||
|
||||
vkGetImageSubresourceLayout(device, tex.image, &subresource, &layout);
|
||||
if (info.tiling == VK_IMAGE_TILING_LINEAR)
|
||||
vkGetImageSubresourceLayout(device, tex.image, &subresource, &layout);
|
||||
else
|
||||
memset(&layout, 0, sizeof(layout));
|
||||
|
||||
tex.stride = layout.rowPitch;
|
||||
tex.offset = layout.offset;
|
||||
tex.size = layout.size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user