mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-21 22:54:16 +01:00
[dxvk] Use new barrier helper in initImage
This commit is contained in:
parent
94915fcbe3
commit
9698653055
@ -1035,12 +1035,9 @@ namespace dxvk {
|
|||||||
const VkImageSubresourceRange& subresources,
|
const VkImageSubresourceRange& subresources,
|
||||||
VkImageLayout initialLayout) {
|
VkImageLayout initialLayout) {
|
||||||
if (initialLayout == VK_IMAGE_LAYOUT_PREINITIALIZED) {
|
if (initialLayout == VK_IMAGE_LAYOUT_PREINITIALIZED) {
|
||||||
m_initBarriers.accessImage(image, subresources,
|
accessImage(DxvkCmdBuffer::InitBuffer,
|
||||||
initialLayout,
|
*image, subresources, initialLayout,
|
||||||
VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, 0,
|
VK_PIPELINE_STAGE_2_NONE, 0);
|
||||||
image->info().layout,
|
|
||||||
image->info().stages,
|
|
||||||
image->info().access);
|
|
||||||
|
|
||||||
m_cmd->trackResource<DxvkAccess::None>(image);
|
m_cmd->trackResource<DxvkAccess::None>(image);
|
||||||
} else {
|
} else {
|
||||||
@ -1119,13 +1116,10 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_initBarriers.accessImage(image, subresources,
|
accessImage(DxvkCmdBuffer::InitBuffer,
|
||||||
clearLayout,
|
*image, subresources, clearLayout,
|
||||||
VK_PIPELINE_STAGE_TRANSFER_BIT,
|
VK_PIPELINE_STAGE_2_TRANSFER_BIT,
|
||||||
VK_ACCESS_TRANSFER_WRITE_BIT,
|
VK_ACCESS_2_TRANSFER_WRITE_BIT);
|
||||||
image->info().layout,
|
|
||||||
image->info().stages,
|
|
||||||
image->info().access);
|
|
||||||
|
|
||||||
m_cmd->trackResource<DxvkAccess::Write>(image);
|
m_cmd->trackResource<DxvkAccess::Write>(image);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user