mirror of https://github.com/doitsujin/dxvk
[dxvk] Use current pipeline layout for push constant updates
Workaround for #3971.
This commit is contained in:
parent
462165da19
commit
19e4f40880
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue