mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Fix acquire barrier in updateImage
This commit is contained in:
parent
8921be81bd
commit
b370d13743
@ -1966,12 +1966,15 @@ namespace dxvk {
|
|||||||
if (image->isFullSubresource(subresources, imageExtent))
|
if (image->isFullSubresource(subresources, imageExtent))
|
||||||
imageLayoutInitial = VK_IMAGE_LAYOUT_UNDEFINED;
|
imageLayoutInitial = VK_IMAGE_LAYOUT_UNDEFINED;
|
||||||
|
|
||||||
m_execAcquires.accessImage(
|
if (imageLayoutTransfer != image->info().layout) {
|
||||||
image, subresourceRange,
|
m_execAcquires.accessImage(
|
||||||
imageLayoutInitial, 0, 0,
|
image, subresourceRange,
|
||||||
imageLayoutTransfer,
|
imageLayoutInitial,
|
||||||
VK_PIPELINE_STAGE_TRANSFER_BIT,
|
VK_PIPELINE_STAGE_TRANSFER_BIT, 0,
|
||||||
VK_ACCESS_TRANSFER_WRITE_BIT);
|
imageLayoutTransfer,
|
||||||
|
VK_PIPELINE_STAGE_TRANSFER_BIT,
|
||||||
|
VK_ACCESS_TRANSFER_WRITE_BIT);
|
||||||
|
}
|
||||||
|
|
||||||
m_execAcquires.recordCommands(m_cmd);
|
m_execAcquires.recordCommands(m_cmd);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user