diff options
author | comex <comexk@gmail.com> | 2023-07-01 21:00:25 +0200 |
---|---|---|
committer | comex <comexk@gmail.com> | 2023-07-01 21:00:25 +0200 |
commit | 1e3b2328a670824bf8d295f95ea414b5e7ea6ddd (patch) | |
tree | d02a20bebd09ac85721b1e88bea3dea3a6a84c88 /src/video_core/renderer_vulkan/vk_buffer_cache.cpp | |
parent | Update translations (2023-07-01) (#10972) (diff) | |
download | yuzu-1e3b2328a670824bf8d295f95ea414b5e7ea6ddd.tar yuzu-1e3b2328a670824bf8d295f95ea414b5e7ea6ddd.tar.gz yuzu-1e3b2328a670824bf8d295f95ea414b5e7ea6ddd.tar.bz2 yuzu-1e3b2328a670824bf8d295f95ea414b5e7ea6ddd.tar.lz yuzu-1e3b2328a670824bf8d295f95ea414b5e7ea6ddd.tar.xz yuzu-1e3b2328a670824bf8d295f95ea414b5e7ea6ddd.tar.zst yuzu-1e3b2328a670824bf8d295f95ea414b5e7ea6ddd.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_buffer_cache.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_buffer_cache.cpp | 3 |
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"); |