[dxvk] Use current pipeline layout for push constant updates

Workaround for #3971.
This commit is contained in:
Philip Rebohle 2024-04-26 14:38:54 +02:00
parent 462165da19
commit 19e4f40880
1 changed files with 4 additions and 3 deletions

View File

@ -5931,10 +5931,11 @@ namespace dxvk {
if (!pushConstRange.size) if (!pushConstRange.size)
return; return;
// Push constants should be compatible between complete and bool independentSets = BindPoint == VK_PIPELINE_BIND_POINT_GRAPHICS
// independent layouts, so always ask for the complete one && m_flags.test(DxvkContextFlag::GpIndependentSets);
m_cmd->cmdPushConstants( m_cmd->cmdPushConstants(
bindings->getPipelineLayout(false), bindings->getPipelineLayout(independentSets),
pushConstRange.stageFlags, pushConstRange.stageFlags,
pushConstRange.offset, pushConstRange.offset,
pushConstRange.size, pushConstRange.size,