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))
|
||||
imageLayoutInitial = VK_IMAGE_LAYOUT_UNDEFINED;
|
||||
|
||||
m_execAcquires.accessImage(
|
||||
image, subresourceRange,
|
||||
imageLayoutInitial, 0, 0,
|
||||
imageLayoutTransfer,
|
||||
VK_PIPELINE_STAGE_TRANSFER_BIT,
|
||||
VK_ACCESS_TRANSFER_WRITE_BIT);
|
||||
if (imageLayoutTransfer != image->info().layout) {
|
||||
m_execAcquires.accessImage(
|
||||
image, subresourceRange,
|
||||
imageLayoutInitial,
|
||||
VK_PIPELINE_STAGE_TRANSFER_BIT, 0,
|
||||
imageLayoutTransfer,
|
||||
VK_PIPELINE_STAGE_TRANSFER_BIT,
|
||||
VK_ACCESS_TRANSFER_WRITE_BIT);
|
||||
}
|
||||
|
||||
m_execAcquires.recordCommands(m_cmd);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user