1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-15 07:29:17 +01:00

[dxvk] Use initializeImage in clearColorImage

This commit is contained in:
Philip Rebohle 2020-05-02 20:09:35 +02:00
parent bbd5762d3d
commit 52cad95f2c
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -513,16 +513,9 @@ namespace dxvk {
auto zeroBuffer = createZeroBuffer(dataSize); auto zeroBuffer = createZeroBuffer(dataSize);
auto zeroHandle = zeroBuffer->getSliceHandle(); auto zeroHandle = zeroBuffer->getSliceHandle();
if (m_execBarriers.isImageDirty(image, subresources, DxvkAccess::Write))
m_execBarriers.recordCommands(m_cmd);
VkImageLayout layout = image->pickLayout(VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL); VkImageLayout layout = image->pickLayout(VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
m_execAcquires.accessImage( this->initializeImage(image, subresources, layout,
image, subresources,
VK_IMAGE_LAYOUT_UNDEFINED,
VK_PIPELINE_STAGE_TRANSFER_BIT, 0,
layout,
VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_ACCESS_TRANSFER_WRITE_BIT); VK_ACCESS_TRANSFER_WRITE_BIT);