summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-17 01:45:43 +0200
committerLioncash <mathew1800@gmail.com>2020-07-17 01:45:46 +0200
commit169759e069953852cd5a516f3db562b8c4861e8c (patch)
treea0a6e35a54cf4b6dbb0c0033af76228f01705e76 /src/video_core/renderer_vulkan
parentMerge pull request #4362 from lioncash/cast (diff)
downloadyuzu-169759e069953852cd5a516f3db562b8c4861e8c.tar
yuzu-169759e069953852cd5a516f3db562b8c4861e8c.tar.gz
yuzu-169759e069953852cd5a516f3db562b8c4861e8c.tar.bz2
yuzu-169759e069953852cd5a516f3db562b8c4861e8c.tar.lz
yuzu-169759e069953852cd5a516f3db562b8c4861e8c.tar.xz
yuzu-169759e069953852cd5a516f3db562b8c4861e8c.tar.zst
yuzu-169759e069953852cd5a516f3db562b8c4861e8c.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_texture_cache.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp
index 430031665..bd93dcf20 100644
--- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp
@@ -281,12 +281,10 @@ void CachedSurface::UploadBuffer(const std::vector<u8>& staging_buffer) {
VkBufferMemoryBarrier barrier;
barrier.sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER;
barrier.pNext = nullptr;
- barrier.srcAccessMask = VK_PIPELINE_STAGE_TRANSFER_BIT;
- barrier.dstAccessMask = VK_PIPELINE_STAGE_VERTEX_SHADER_BIT;
- barrier.srcQueueFamilyIndex = VK_ACCESS_TRANSFER_WRITE_BIT;
- barrier.dstQueueFamilyIndex = VK_ACCESS_SHADER_READ_BIT;
- barrier.srcQueueFamilyIndex = 0;
- barrier.dstQueueFamilyIndex = 0;
+ barrier.srcAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT;
+ barrier.dstAccessMask = VK_ACCESS_SHADER_READ_BIT;
+ barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; // They'll be ignored anyway
+ barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
barrier.buffer = dst_buffer;
barrier.offset = 0;
barrier.size = size;