1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-04-04 19:25:19 +02:00

[d3d9] Skip recording MultiplyTransform calls in state blocks

This commit is contained in:
WinterSnowfall 2024-11-26 00:59:38 +02:00 committed by Robin Kertels
parent 640a266158
commit 9c012c8e75
3 changed files with 0 additions and 15 deletions

View File

@ -2025,10 +2025,6 @@ namespace dxvk {
const uint32_t idx = GetTransformIndex(TransformState);
// D3D8 state blocks ignore capturing calls to MultiplyTransform().
if (unlikely(!m_isD3D8Compatible && ShouldRecord()))
return m_recorder->MultiplyStateTransform(idx, pMatrix);
m_state.transforms[idx] = m_state.transforms[idx] * ConvertMatrix(pMatrix);
m_flags.set(D3D9DeviceFlag::DirtyFFVertexData);

View File

@ -243,15 +243,6 @@ namespace dxvk {
}
HRESULT D3D9StateBlock::MultiplyStateTransform(uint32_t idx, const D3DMATRIX* pMatrix) {
m_state.transforms[idx] = m_state.transforms[idx] * ConvertMatrix(pMatrix);
m_captures.flags.set(D3D9CapturedStateFlag::Transforms);
m_captures.transforms.set(idx, true);
return D3D_OK;
}
HRESULT D3D9StateBlock::SetViewport(const D3DVIEWPORT9* pViewport) {
m_state.viewport = *pViewport;

View File

@ -141,8 +141,6 @@ namespace dxvk {
D3D9TextureStageStateTypes Type,
DWORD Value);
HRESULT MultiplyStateTransform(uint32_t idx, const D3DMATRIX* pMatrix);
HRESULT SetViewport(const D3DVIEWPORT9* pViewport);
HRESULT SetScissorRect(const RECT* pRect);