From d14dcf5d47551aa84fe83bceb3870a26848fbec6 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Fri, 10 Mar 2023 03:34:58 +0100 Subject: [PATCH] [d3d9] Fix redundant copy of SWVP VS consts Fixes performance regression caused by state block changes. --- src/d3d9/d3d9_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index e8719d63..3291f7e8 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -5143,7 +5143,7 @@ namespace dxvk { void D3D9DeviceEx::UploadConstants() { if constexpr (ShaderStage == DxsoProgramTypes::VertexShader) { if (CanSWVP()) - return UploadSoftwareConstantSet(m_state.vsConsts, m_vsLayout); + return UploadSoftwareConstantSet(m_state.vsConsts.get(), m_vsLayout); else return UploadConstantSet(m_state.vsConsts.get(), m_vsLayout, m_state.vertexShader); } else {