summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-07-02 04:38:33 +0200
committerGitHub <noreply@github.com>2023-07-02 04:38:33 +0200
commit146769f44e5d92168bc63d52ebd3c44971410fcd (patch)
tree44ca600603850288515d049c4e1eb3980630efcf /src/video_core
parentMerge pull request #10974 from Steveice10/macos_vk (diff)
parentMinor cleanup in BufferCacheRuntime::ReserveNullBuffer (diff)
downloadyuzu-146769f44e5d92168bc63d52ebd3c44971410fcd.tar
yuzu-146769f44e5d92168bc63d52ebd3c44971410fcd.tar.gz
yuzu-146769f44e5d92168bc63d52ebd3c44971410fcd.tar.bz2
yuzu-146769f44e5d92168bc63d52ebd3c44971410fcd.tar.lz
yuzu-146769f44e5d92168bc63d52ebd3c44971410fcd.tar.xz
yuzu-146769f44e5d92168bc63d52ebd3c44971410fcd.tar.zst
yuzu-146769f44e5d92168bc63d52ebd3c44971410fcd.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_buffer_cache.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp
index b72f95235..51df18ec3 100644
--- a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp
@@ -591,7 +591,7 @@ void BufferCacheRuntime::ReserveNullBuffer() {
.flags = 0,
.size = 4,
.usage = VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_INDEX_BUFFER_BIT |
- VK_BUFFER_USAGE_TRANSFER_DST_BIT,
+ VK_BUFFER_USAGE_TRANSFER_DST_BIT | VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT,
.sharingMode = VK_SHARING_MODE_EXCLUSIVE,
.queueFamilyIndexCount = 0,
.pQueueFamilyIndices = nullptr,
@@ -599,7 +599,6 @@ void BufferCacheRuntime::ReserveNullBuffer() {
if (device.IsExtTransformFeedbackSupported()) {
create_info.usage |= VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT;
}
- create_info.usage |= VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT;
null_buffer = memory_allocator.CreateBuffer(create_info, MemoryUsage::DeviceLocal);
if (device.HasDebuggingToolAttached()) {
null_buffer.SetObjectNameEXT("Null buffer");