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:
parent
bbd5762d3d
commit
52cad95f2c
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user