mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-05 01:24:14 +01:00
[d3d9] Fix redundant copy of SWVP VS consts
Fixes performance regression caused by state block changes.
This commit is contained in:
parent
996acbe3f2
commit
d14dcf5d47
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user