summaryrefslogtreecommitdiffstats
path: root/tools/gfx/vulkan/vk-device.cpp
diff options
context:
space:
mode:
authorskallweitNV <64953474+skallweitNV@users.noreply.github.com>2024-03-07 18:00:56 +0100
committerGitHub <noreply@github.com>2024-03-07 09:00:56 -0800
commitaf108c72894fdfb18438bd1c0cfb452b625cb6a6 (patch)
tree225b1ce63db49a0be8d513bf12091aae6619b2e5 /tools/gfx/vulkan/vk-device.cpp
parenta1e79e4b6d40387fc9b43e0dfa1c7dd3fb0f6e58 (diff)
set VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT for device local memory (#3698)
Diffstat (limited to 'tools/gfx/vulkan/vk-device.cpp')
-rw-r--r--tools/gfx/vulkan/vk-device.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gfx/vulkan/vk-device.cpp b/tools/gfx/vulkan/vk-device.cpp
index 1b79887ca..2a914b86b 100644
--- a/tools/gfx/vulkan/vk-device.cpp
+++ b/tools/gfx/vulkan/vk-device.cpp
@@ -1738,6 +1738,10 @@ Result DeviceImpl::createBufferResourceImpl(
reqMemoryProperties =
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
}
+ else
+ {
+ reqMemoryProperties = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
+ }
RefPtr<BufferResourceImpl> buffer(new BufferResourceImpl(desc, this));
if (desc.isShared)