Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Rebohle <philip.rebohle@tu-dortmund.de>2022-07-14 16:32:56 +0300
committerPhilip Rebohle <philip.rebohle@tu-dortmund.de>2022-07-14 16:32:56 +0300
commit6367c551d07d45a2d23bf140fea8396a45acb736 (patch)
tree815e52fb865634fb97c505b9ca5a883ac0cb7509
parent4730e163b994b479426f8b6af8321531fed5e5b6 (diff)
[d3d9] Remove CreateConstantBuffer methodd3d9-constant-buffer
-rw-r--r--src/d3d9/d3d9_device.cpp43
-rw-r--r--src/d3d9/d3d9_device.h6
2 files changed, 0 insertions, 49 deletions
diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp
index dcb1ab6a..83b387a7 100644
--- a/src/d3d9/d3d9_device.cpp
+++ b/src/d3d9/d3d9_device.cpp
@@ -4861,49 +4861,6 @@ namespace dxvk {
}
- Rc<DxvkBuffer> D3D9DeviceEx::CreateConstantBuffer(
- bool SSBO,
- VkDeviceSize Size,
- DxsoProgramType ShaderStage,
- DxsoConstantBuffers BufferType) {
- DxvkBufferCreateInfo info = { };
- info.usage = SSBO ? VK_BUFFER_USAGE_STORAGE_BUFFER_BIT : VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT;
- info.access = SSBO ? VK_ACCESS_SHADER_READ_BIT : VK_ACCESS_UNIFORM_READ_BIT;
- info.size = Size;
- info.stages = ShaderStage == DxsoProgramType::VertexShader
- ? VK_PIPELINE_STAGE_VERTEX_SHADER_BIT
- : VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT;
-
- VkMemoryPropertyFlags memoryFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
- | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
-
- if (m_d3d9Options.deviceLocalConstantBuffers)
- memoryFlags |= VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
-
- Rc<DxvkBuffer> buffer = m_dxvkDevice->createBuffer(info, memoryFlags);
-
- const uint32_t slotId = computeResourceSlotId(
- ShaderStage, DxsoBindingType::ConstantBuffer,
- BufferType);
-
- EmitCs([
- cShaderStage = GetShaderStage(ShaderStage),
- cSlotId = slotId,
- cBuffer = buffer
- ] (DxvkContext* ctx) {
- ctx->bindResourceBuffer(cShaderStage, cSlotId,
- DxvkBufferSlice(cBuffer, 0, cBuffer->info().size));
- });
-
- if (ShaderStage == DxsoProgramType::PixelShader)
- m_boundPSConstantsBufferSize = buffer->info().size;
- else
- m_boundVSConstantsBufferSize = buffer->info().size;
-
- return buffer;
- }
-
-
void D3D9DeviceEx::CreateConstantBuffers() {
constexpr VkDeviceSize DefaultConstantBufferSize = 1024ull << 10;
constexpr VkDeviceSize SmallConstantBufferSize = 64ull << 10;
diff --git a/src/d3d9/d3d9_device.h b/src/d3d9/d3d9_device.h
index bb814d9e..949728ad 100644
--- a/src/d3d9/d3d9_device.h
+++ b/src/d3d9/d3d9_device.h
@@ -737,12 +737,6 @@ namespace dxvk {
int64_t DetermineInitialTextureMemory();
- Rc<DxvkBuffer> CreateConstantBuffer(
- bool SSBO,
- VkDeviceSize Size,
- DxsoProgramType ShaderStage,
- DxsoConstantBuffers BufferType);
-
void CreateConstantBuffers();
void SynchronizeCsThread(uint64_t SequenceNumber);