diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index afd6b13f2..25a057365 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -3025,7 +3025,7 @@ namespace dxvk { m_psShaderMasks = FixedFunctionMask; } - UpdateActiveHazardsRT(UINT32_MAX, UINT32_MAX); + UpdateActiveHazardsRT(UINT32_MAX); return D3D_OK; } @@ -4714,7 +4714,7 @@ namespace dxvk { m_state.renderStates[ColorWriteIndex(index)]) m_activeRTs |= bit; - UpdateActiveHazardsRT(bit, UINT32_MAX); + UpdateActiveHazardsRT(bit); } @@ -4740,15 +4740,15 @@ namespace dxvk { m_activeTexturesToUpload |= bit; } - UpdateActiveHazardsRT(UINT32_MAX, bit); + UpdateActiveHazardsRT(UINT32_MAX); UpdateActiveHazardsDS(bit); } - inline void D3D9DeviceEx::UpdateActiveHazardsRT(uint32_t rtMask, uint32_t texMask) { + inline void D3D9DeviceEx::UpdateActiveHazardsRT(uint32_t rtMask) { auto masks = m_psShaderMasks; masks.rtMask &= m_activeRTs & rtMask; - masks.samplerMask &= m_activeRTTextures & texMask; + masks.samplerMask &= m_activeRTTextures; m_activeHazardsRT = m_activeHazardsRT & (~rtMask); for (uint32_t rt = masks.rtMask; rt; rt &= rt - 1) { diff --git a/src/d3d9/d3d9_device.h b/src/d3d9/d3d9_device.h index 3fa555a80..4cd20a9eb 100644 --- a/src/d3d9/d3d9_device.h +++ b/src/d3d9/d3d9_device.h @@ -742,7 +742,7 @@ namespace dxvk { void UpdateActiveTextures(uint32_t index); - void UpdateActiveHazardsRT(uint32_t rtMask, uint32_t texMask); + void UpdateActiveHazardsRT(uint32_t rtMask); void UpdateActiveHazardsDS(uint32_t texMask);