mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-30 02:52:10 +01:00
[dxvk] Fix fb resolve barriers
No idea how that ended up broken *this* badly.
This commit is contained in:
parent
559fa50f54
commit
5117210c93
@ -3964,15 +3964,20 @@ namespace dxvk {
|
||||
m_cmd->cmdDraw(3, region.dstSubresource.layerCount, 0, 0);
|
||||
m_cmd->cmdEndRendering();
|
||||
|
||||
if (srcImage->info().layout != srcLayout) {
|
||||
m_execBarriers.accessImage(
|
||||
srcImage, srcSubresourceRange, srcLayout,
|
||||
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, 0,
|
||||
srcImage->info().layout,
|
||||
srcImage->info().stages,
|
||||
srcImage->info().access);
|
||||
}
|
||||
|
||||
m_execBarriers.accessImage(
|
||||
srcImage, srcSubresourceRange, srcLayout,
|
||||
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, 0,
|
||||
srcImage->info().layout,
|
||||
srcImage->info().stages,
|
||||
srcImage->info().access);
|
||||
|
||||
m_execBarriers.accessImage(
|
||||
dstImage, dstSubresourceRange,
|
||||
dstLayout, dstStages, dstAccess,
|
||||
dstImage->info().layout,
|
||||
dstImage->info().stages,
|
||||
dstImage->info().access);
|
||||
|
||||
m_cmd->trackResource<DxvkAccess::Write>(dstImage);
|
||||
m_cmd->trackResource<DxvkAccess::Read>(srcImage);
|
||||
m_cmd->trackResource<DxvkAccess::None>(views);
|
||||
|
Loading…
x
Reference in New Issue
Block a user