mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-01 16:24:12 +01:00
[dxvk] Use new barrier helpers in emitGraphicsBarrier
This commit is contained in:
parent
e70e72f109
commit
ab9ade76d7
@ -1161,9 +1161,8 @@ namespace dxvk {
|
||||
// Emit barrier early so we can fold this into
|
||||
// the spill render pass barrier if possible
|
||||
if (srcStages | dstStages) {
|
||||
m_execBarriers.accessMemory(
|
||||
srcStages, srcAccess,
|
||||
dstStages, dstAccess);
|
||||
accessMemory(DxvkCmdBuffer::ExecBuffer,
|
||||
srcStages, srcAccess, dstStages, dstAccess);
|
||||
}
|
||||
|
||||
this->spillRenderPass(true);
|
||||
@ -1172,7 +1171,7 @@ namespace dxvk {
|
||||
// This is necessary because there are no resources
|
||||
// associated with the barrier to allow tracking.
|
||||
if (srcStages | dstStages)
|
||||
m_execBarriers.recordCommands(m_cmd);
|
||||
flushBarriers();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user