1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-04 10:29:15 +01:00

[d3d8] Don't forward D3DRS_PATCHSEGMENTS changes to d3d9

This commit is contained in:
WinterSnowfall 2025-01-10 22:33:19 +02:00 committed by Robin Kertels
parent 0983ab1f39
commit 470764e24c
2 changed files with 11 additions and 7 deletions

View File

@ -1620,10 +1620,11 @@ namespace dxvk {
return GetD3D9()->SetSoftwareVertexProcessing(Value); return GetD3D9()->SetSoftwareVertexProcessing(Value);
// TODO: D3DRS_PATCHSEGMENTS // TODO: Implement D3DRS_PATCHSEGMENTS
case D3DRS_PATCHSEGMENTS: case D3DRS_PATCHSEGMENTS:
stateChange = false; Logger::warn("D3D8Device::SetRenderState: Unimplemented render state D3DRS_PATCHSEGMENTS");
break; m_patchSegments = bit::cast<float>(Value);
return D3D_OK;
} }
if (stateChange) { if (stateChange) {
@ -1674,9 +1675,9 @@ namespace dxvk {
case D3DRS_SOFTWAREVERTEXPROCESSING: case D3DRS_SOFTWAREVERTEXPROCESSING:
return GetD3D9()->GetSoftwareVertexProcessing(); return GetD3D9()->GetSoftwareVertexProcessing();
// TODO: D3DRS_PATCHSEGMENTS
case D3DRS_PATCHSEGMENTS: case D3DRS_PATCHSEGMENTS:
break; *pValue = bit::cast<DWORD>(m_patchSegments);
return D3D_OK;
} }
// This call will never fail // This call will never fail

View File

@ -426,7 +426,10 @@ namespace dxvk {
D3DPRESENT_PARAMETERS m_presentParams; D3DPRESENT_PARAMETERS m_presentParams;
// Value of D3DRS_LINEPATTERN
D3DLINEPATTERN m_linePattern = {}; D3DLINEPATTERN m_linePattern = {};
// Value of D3DRS_PATCHSEGMENTS
float m_patchSegments = 1.0f;
D3D8StateBlock* m_recorder = nullptr; D3D8StateBlock* m_recorder = nullptr;
DWORD m_recorderToken = 0; DWORD m_recorderToken = 0;