mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxvk] Always use init barrier set for initial transition in initImage
This allows us to batch image initialization barriers better.
This commit is contained in:
parent
0f94971193
commit
211ad0efcc
@ -1457,13 +1457,12 @@ namespace dxvk {
|
||||
} else {
|
||||
VkImageLayout clearLayout = image->pickLayout(VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL);
|
||||
|
||||
m_execAcquires.accessImage(image, subresources,
|
||||
m_initBarriers.accessImage(image, subresources,
|
||||
initialLayout,
|
||||
VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, 0,
|
||||
clearLayout,
|
||||
VK_PIPELINE_STAGE_TRANSFER_BIT,
|
||||
VK_ACCESS_TRANSFER_WRITE_BIT);
|
||||
m_execAcquires.recordCommands(m_cmd);
|
||||
|
||||
auto formatInfo = image->formatInfo();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user