mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-26 17:50:56 +00:00
Vulkan: Also invalidate fragment uniform buffer
This commit is contained in:
parent
840278796e
commit
7899d449e6
@ -1351,7 +1351,7 @@ static void vulkan_readback(vk_t *vk)
|
||||
VK_PIPELINE_STAGE_HOST_BIT);
|
||||
}
|
||||
|
||||
static void vulkan_flush_vertex_caches(vk_t *vk)
|
||||
static void vulkan_flush_caches(vk_t *vk)
|
||||
{
|
||||
VkMemoryBarrier barrier = { VK_STRUCTURE_TYPE_MEMORY_BARRIER };
|
||||
barrier.srcAccessMask = VK_ACCESS_HOST_WRITE_BIT;
|
||||
@ -1359,7 +1359,9 @@ static void vulkan_flush_vertex_caches(vk_t *vk)
|
||||
|
||||
VKFUNC(vkCmdPipelineBarrier)(vk->cmd,
|
||||
VK_PIPELINE_STAGE_HOST_BIT,
|
||||
VK_PIPELINE_STAGE_VERTEX_INPUT_BIT | VK_PIPELINE_STAGE_VERTEX_SHADER_BIT,
|
||||
VK_PIPELINE_STAGE_VERTEX_INPUT_BIT |
|
||||
VK_PIPELINE_STAGE_VERTEX_SHADER_BIT |
|
||||
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT,
|
||||
false,
|
||||
1, &barrier,
|
||||
0, NULL, 0, NULL);
|
||||
@ -1421,7 +1423,7 @@ static bool vulkan_frame(void *data, const void *frame,
|
||||
|
||||
memset(&vk->tracker, 0, sizeof(vk->tracker));
|
||||
|
||||
vulkan_flush_vertex_caches(vk);
|
||||
vulkan_flush_caches(vk);
|
||||
|
||||
/* Upload texture */
|
||||
retro_perf_start(©_frame);
|
||||
|
Loading…
Reference in New Issue
Block a user