1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-02 04:29:14 +01:00

[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

View File

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