[dxvk] Fixed bug where resource bindings would not be updated after rebinding the pipeline

This commit is contained in:
Philip Rebohle 2017-12-18 16:16:21 +01:00
parent 4d01517dd8
commit c44b50ae4d
1 changed files with 9 additions and 3 deletions

View File

@ -177,9 +177,15 @@ namespace dxvk {
if (shaderStage->shader != shader) {
shaderStage->shader = shader;
m_flags.set(stage == VK_SHADER_STAGE_COMPUTE_BIT
? DxvkContextFlag::CpDirtyPipeline
: DxvkContextFlag::GpDirtyPipeline);
if (stage == VK_SHADER_STAGE_COMPUTE_BIT) {
m_flags.set(
DxvkContextFlag::CpDirtyPipeline,
DxvkContextFlag::CpDirtyResources);
} else {
m_flags.set(
DxvkContextFlag::GpDirtyPipeline,
DxvkContextFlag::GpDirtyResources);
}
}
}