From 45ec01a0a1d92a4c593df37f68abf82e4c6758f6 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 5 Mar 2025 18:38:41 +0100 Subject: [PATCH] [d3d11] Add TRANSFER_SRC usage to icb Needed for defrag. --- src/d3d11/d3d11_shader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_shader.cpp b/src/d3d11/d3d11_shader.cpp index cfa11d313..e401593b7 100644 --- a/src/d3d11/d3d11_shader.cpp +++ b/src/d3d11/d3d11_shader.cpp @@ -65,12 +65,14 @@ namespace dxvk { DxvkBufferCreateInfo info = { }; info.size = align(icb.size, 256u); info.usage = VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT + | VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT; info.stages = util::pipelineStages(m_shader->info().stage); info.access = VK_ACCESS_UNIFORM_READ_BIT + | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT; info.debugName = "Icb"; - + m_buffer = pDevice->GetDXVKDevice()->createBuffer(info, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); // Upload immediate constant buffer to VRAM