1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 04:24:11 +01:00

[dxvk] Use new layout transition helper in initImage

Removes another barrier set.
This commit is contained in:
Philip Rebohle 2024-10-10 17:30:57 +02:00 committed by Philip Rebohle
parent 1e8631189c
commit ef79f8a617
2 changed files with 3 additions and 10 deletions

View File

@ -12,7 +12,6 @@ namespace dxvk {
m_type (type),
m_common (&device->m_objects),
m_sdmaBarriers(DxvkCmdBuffer::SdmaBuffer),
m_initAcquires(DxvkCmdBuffer::InitBuffer),
m_initBarriers(DxvkCmdBuffer::InitBuffer),
m_execAcquires(DxvkCmdBuffer::ExecBuffer),
m_execBarriers(DxvkCmdBuffer::ExecBuffer),
@ -1059,14 +1058,9 @@ namespace dxvk {
} else {
VkImageLayout clearLayout = image->pickLayout(VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
m_initAcquires.accessImage(image, subresources,
initialLayout,
VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, 0,
clearLayout,
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_ACCESS_TRANSFER_WRITE_BIT);
m_initAcquires.recordCommands(m_cmd);
addImageInitTransition(*image, subresources, clearLayout,
VK_PIPELINE_STAGE_2_TRANSFER_BIT, VK_ACCESS_2_TRANSFER_WRITE_BIT);
flushImageLayoutTransitions(DxvkCmdBuffer::InitBuffer);
auto formatInfo = image->formatInfo();

View File

@ -1407,7 +1407,6 @@ namespace dxvk {
Rc<DxvkDescriptorManager> m_descriptorManager;
DxvkBarrierSet m_sdmaBarriers;
DxvkBarrierSet m_initAcquires;
DxvkBarrierSet m_initBarriers;
DxvkBarrierSet m_execAcquires;
DxvkBarrierSet m_execBarriers;