diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-07-26 10:49:37 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-07-26 10:49:37 +0200 |
commit | 27ed6e7c2bc55739f2b994c66fc4b32dffa508b1 (patch) | |
tree | a778f1269ce0945118e177bacc7e0cce1717da18 /src | |
parent | Merge pull request #6697 from ameerj/fps-cap (diff) | |
download | yuzu-27ed6e7c2bc55739f2b994c66fc4b32dffa508b1.tar yuzu-27ed6e7c2bc55739f2b994c66fc4b32dffa508b1.tar.gz yuzu-27ed6e7c2bc55739f2b994c66fc4b32dffa508b1.tar.bz2 yuzu-27ed6e7c2bc55739f2b994c66fc4b32dffa508b1.tar.lz yuzu-27ed6e7c2bc55739f2b994c66fc4b32dffa508b1.tar.xz yuzu-27ed6e7c2bc55739f2b994c66fc4b32dffa508b1.tar.zst yuzu-27ed6e7c2bc55739f2b994c66fc4b32dffa508b1.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_buffer_cache.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp index f4b3ee95c..8ac58bc2f 100644 --- a/src/video_core/renderer_vulkan/vk_buffer_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_buffer_cache.cpp @@ -358,7 +358,7 @@ void BufferCacheRuntime::ReserveNullBuffer() { if (null_buffer) { return; } - null_buffer = device.GetLogical().CreateBuffer(VkBufferCreateInfo{ + VkBufferCreateInfo create_info{ .sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, .pNext = nullptr, .flags = 0, @@ -367,9 +367,13 @@ void BufferCacheRuntime::ReserveNullBuffer() { .sharingMode = VK_SHARING_MODE_EXCLUSIVE, .queueFamilyIndexCount = 0, .pQueueFamilyIndices = nullptr, - }); + }; + if (device.IsExtTransformFeedbackSupported()) { + create_info.usage |= VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT; + } + null_buffer = device.GetLogical().CreateBuffer(create_info); if (device.HasDebuggingToolAttached()) { - null_buffer.SetObjectNameEXT("Null index buffer"); + null_buffer.SetObjectNameEXT("Null buffer"); } null_buffer_commit = memory_allocator.Commit(null_buffer, MemoryUsage::DeviceLocal); |