1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-13 07:08:50 +01:00

[dxvk] Update descriptor sets after binding pipeline

This commit is contained in:
Philip Rebohle 2022-07-06 16:38:32 +02:00
parent 6256ab2a19
commit b51d7a3cc0
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -5165,14 +5165,14 @@ namespace dxvk {
return false;
}
if (m_descriptorState.hasDirtyComputeSets())
this->updateComputeShaderResources();
if (m_flags.test(DxvkContextFlag::CpDirtyPipelineState)) {
if (unlikely(!this->updateComputePipelineState()))
return false;
}
if (m_descriptorState.hasDirtyComputeSets())
this->updateComputeShaderResources();
if (m_flags.test(DxvkContextFlag::DirtyPushConstants))
this->updatePushConstants<VK_PIPELINE_BIND_POINT_COMPUTE>();
@ -5207,9 +5207,6 @@ namespace dxvk {
if (m_flags.test(DxvkContextFlag::GpDirtyVertexBuffers))
this->updateVertexBufferBindings();
if (m_descriptorState.hasDirtyGraphicsSets())
this->updateGraphicsShaderResources();
if (m_flags.test(DxvkContextFlag::GpDirtyPipelineState)) {
DxvkGlobalPipelineBarrier barrier = { };
@ -5227,6 +5224,9 @@ namespace dxvk {
return false;
}
if (m_descriptorState.hasDirtyGraphicsSets())
this->updateGraphicsShaderResources();
if (m_state.gp.flags.test(DxvkGraphicsPipelineFlag::HasTransformFeedback))
this->updateTransformFeedbackState();