mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +00:00
Merge pull request #6868 from Themaister/master
Vulkan: Fix two validation errors.
This commit is contained in:
commit
a7a54800e8
@ -950,8 +950,8 @@ void vulkan_image_layout_transition(
|
|||||||
barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
|
barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
|
||||||
barrier.image = image;
|
barrier.image = image;
|
||||||
barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
barrier.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
||||||
barrier.subresourceRange.levelCount = 1;
|
barrier.subresourceRange.levelCount = VK_REMAINING_MIP_LEVELS;
|
||||||
barrier.subresourceRange.layerCount = 1;
|
barrier.subresourceRange.layerCount = VK_REMAINING_ARRAY_LAYERS;
|
||||||
|
|
||||||
vkCmdPipelineBarrier(cmd,
|
vkCmdPipelineBarrier(cmd,
|
||||||
srcStages,
|
srcStages,
|
||||||
@ -2654,6 +2654,9 @@ bool vulkan_create_swapchain(gfx_ctx_vulkan_data_t *vk,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (old_swapchain != VK_NULL_HANDLE)
|
||||||
|
vkDestroySwapchainKHR(vk->context.device, old_swapchain, NULL);
|
||||||
|
|
||||||
vk->context.swapchain_width = swapchain_size.width;
|
vk->context.swapchain_width = swapchain_size.width;
|
||||||
vk->context.swapchain_height = swapchain_size.height;
|
vk->context.swapchain_height = swapchain_size.height;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user