summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-07-17 02:54:40 +0200
committerGitHub <noreply@github.com>2020-07-17 02:54:40 +0200
commit39ae2deb284d8493b7e95da710f25392b3b99aaa (patch)
tree88cd56df2ea4709d1e7ebefd5c9f374a1da2aec1 /src
parentMerge pull request #4292 from bunnei/mii-rewrite (diff)
parentvk_texture_cache: Amend mismatched access masks and indices in UploadBuffer (diff)
downloadyuzu-39ae2deb284d8493b7e95da710f25392b3b99aaa.tar
yuzu-39ae2deb284d8493b7e95da710f25392b3b99aaa.tar.gz
yuzu-39ae2deb284d8493b7e95da710f25392b3b99aaa.tar.bz2
yuzu-39ae2deb284d8493b7e95da710f25392b3b99aaa.tar.lz
yuzu-39ae2deb284d8493b7e95da710f25392b3b99aaa.tar.xz
yuzu-39ae2deb284d8493b7e95da710f25392b3b99aaa.tar.zst
yuzu-39ae2deb284d8493b7e95da710f25392b3b99aaa.zip
Diffstat (limited to 'src')
-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;