Vulkan: Use more approriate barrier

This commit is contained in:
Hans-Kristian Arntzen 2016-02-21 12:59:11 +01:00
parent 4259ea3d06
commit 0dddd671f8
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ void vulkan_copy_staging_to_dynamic(vk_t *vk, VkCommandBuffer cmd,
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL,
VK_ACCESS_TRANSFER_WRITE_BIT, VK_ACCESS_SHADER_READ_BIT,
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT);
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT);
}
#ifdef VULKAN_DEBUG_TEXTURE_ALLOC

View File

@ -1380,7 +1380,7 @@ static bool vulkan_frame(void *data, const void *frame,
}
/* If we have an optimal texture, copy to that now. */
if (chain->texture_optimal.image)
if (chain->texture_optimal.memory != VK_NULL_HANDLE)
{
vulkan_copy_staging_to_dynamic(vk, vk->cmd,
&chain->texture_optimal, &chain->texture);