mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-07 16:54:14 +01:00
[dxvk] Use new barrier helpers in performClear
This commit is contained in:
parent
a1a9cd5bb6
commit
ab300dce2f
@ -1772,8 +1772,7 @@ namespace dxvk {
|
|||||||
if (attachmentIndex < 0) {
|
if (attachmentIndex < 0) {
|
||||||
bool hasViewFormatMismatch = imageView->info().format != imageView->image()->info().format;
|
bool hasViewFormatMismatch = imageView->info().format != imageView->image()->info().format;
|
||||||
|
|
||||||
if (m_execBarriers.isImageDirty(imageView->image(), imageView->imageSubresources(), DxvkAccess::Write))
|
flushPendingAccesses(*imageView, DxvkAccess::Write);
|
||||||
m_execBarriers.recordCommands(m_cmd);
|
|
||||||
|
|
||||||
// Set up a temporary render pass to execute the clear
|
// Set up a temporary render pass to execute the clear
|
||||||
VkImageLayout imageLayout = ((clearAspects | discardAspects) & VK_IMAGE_ASPECT_COLOR_BIT)
|
VkImageLayout imageLayout = ((clearAspects | discardAspects) & VK_IMAGE_ASPECT_COLOR_BIT)
|
||||||
@ -1856,11 +1855,9 @@ namespace dxvk {
|
|||||||
|
|
||||||
m_cmd->cmdEndRendering();
|
m_cmd->cmdEndRendering();
|
||||||
|
|
||||||
m_execBarriers.accessImage(
|
accessImage(DxvkCmdBuffer::ExecBuffer,
|
||||||
imageView->image(),
|
*imageView->image(), imageView->imageSubresources(),
|
||||||
imageView->imageSubresources(),
|
imageLayout, clearStages, clearAccess, storeLayout,
|
||||||
imageLayout, clearStages, clearAccess,
|
|
||||||
storeLayout,
|
|
||||||
imageView->image()->info().stages,
|
imageView->image()->info().stages,
|
||||||
imageView->image()->info().access);
|
imageView->image()->info().access);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user