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

[dxvk] Mark more pipeline state as dynamic for base pipelines

Otherwise we might never set depth bias and friends.
This commit is contained in:
Philip Rebohle 2022-07-14 21:47:32 +02:00
parent 70a71237cf
commit b00d7f35f5
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -4545,6 +4545,8 @@ namespace dxvk {
if (m_device->features().core.features.depthBounds) { if (m_device->features().core.features.depthBounds) {
m_cmd->cmdSetDepthBoundsState( m_cmd->cmdSetDepthBoundsState(
m_state.gp.state.ds.enableDepthBoundsTest()); m_state.gp.state.ds.enableDepthBoundsTest());
m_flags.set(DxvkContextFlag::GpDynamicDepthBounds);
} }
m_cmd->cmdSetDepthBiasState( m_cmd->cmdSetDepthBiasState(
@ -4553,7 +4555,10 @@ namespace dxvk {
if (!m_flags.test(DxvkContextFlag::GpDynamicRasterizerState)) if (!m_flags.test(DxvkContextFlag::GpDynamicRasterizerState))
m_cmd->cmdSetRasterizerState(VK_CULL_MODE_FRONT_AND_BACK, VK_FRONT_FACE_CLOCKWISE); m_cmd->cmdSetRasterizerState(VK_CULL_MODE_FRONT_AND_BACK, VK_FRONT_FACE_CLOCKWISE);
m_flags.set(DxvkContextFlag::GpIndependentSets); m_flags.set(
DxvkContextFlag::GpDynamicDepthBias,
DxvkContextFlag::GpDynamicStencilRef,
DxvkContextFlag::GpIndependentSets);
} }
// If necessary, dirty descriptor sets due to layout incompatibilities // If necessary, dirty descriptor sets due to layout incompatibilities