1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-04 16:24:29 +01:00

[d3d9] Fix redundant copy of SWVP VS consts

Fixes performance regression caused by state block changes.
This commit is contained in:
Robin Kertels 2023-03-10 03:34:58 +01:00 committed by Joshie
parent 996acbe3f2
commit d14dcf5d47

View File

@ -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<ShaderStage, D3D9ShaderConstantsVSHardware>(m_state.vsConsts.get(), m_vsLayout, m_state.vertexShader);
} else {