mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 01:24:11 +01:00
[dxvk] Use new barrier helpers in emit*Barrier
This commit is contained in:
parent
ee9d09c2e2
commit
03a716e308
@ -1184,7 +1184,8 @@ namespace dxvk {
|
|||||||
VkAccessFlags dstAccess) {
|
VkAccessFlags dstAccess) {
|
||||||
this->spillRenderPass(true);
|
this->spillRenderPass(true);
|
||||||
|
|
||||||
m_execBarriers.accessBuffer(resource->getSliceHandle(),
|
accessBuffer(DxvkCmdBuffer::ExecBuffer,
|
||||||
|
*resource, 0, resource->info().size,
|
||||||
srcStages, srcAccess, dstStages, dstAccess);
|
srcStages, srcAccess, dstStages, dstAccess);
|
||||||
|
|
||||||
m_cmd->trackResource<DxvkAccess::Write>(resource);
|
m_cmd->trackResource<DxvkAccess::Write>(resource);
|
||||||
@ -1202,11 +1203,10 @@ namespace dxvk {
|
|||||||
this->spillRenderPass(true);
|
this->spillRenderPass(true);
|
||||||
this->prepareImage(resource, resource->getAvailableSubresources());
|
this->prepareImage(resource, resource->getAvailableSubresources());
|
||||||
|
|
||||||
if (m_execBarriers.isImageDirty(resource, resource->getAvailableSubresources(), DxvkAccess::Write))
|
flushPendingAccesses(*resource, resource->getAvailableSubresources(), DxvkAccess::Write);
|
||||||
m_execBarriers.recordCommands(m_cmd);
|
|
||||||
|
|
||||||
m_execBarriers.accessImage(
|
accessImage(DxvkCmdBuffer::ExecBuffer,
|
||||||
resource, resource->getAvailableSubresources(),
|
*resource, resource->getAvailableSubresources(),
|
||||||
srcLayout, srcStages, srcAccess,
|
srcLayout, srcStages, srcAccess,
|
||||||
dstLayout, dstStages, dstAccess);
|
dstLayout, dstStages, dstAccess);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user