Skip to content

Comments

Vulkan: Fix the attachment image layout tracking#2455

Merged
qining merged 1 commit intogoogle:masterfrom
qining:fix-image-layout-tracking-for-attachments
Dec 13, 2018
Merged

Vulkan: Fix the attachment image layout tracking#2455
qining merged 1 commit intogoogle:masterfrom
qining:fix-image-layout-tracking-for-attachments

Conversation

@qining
Copy link
Contributor

@qining qining commented Dec 13, 2018

The loadAttachment and storeAttachment subroutine should not be labelled
with @spy_disabled, as we need to track the attachments' layout

The loadAttachment and storeAttachment subroutine should not be labelled
with @spy_disabled, as we need to track the attachments' layout
attBits := VkImageUsageFlags(VkImageUsageFlagBits_VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VkImageUsageFlagBits_VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT)
storageBit := VkImageUsageFlags(VkImageUsageFlagBits_VK_IMAGE_USAGE_STORAGE_BIT)

isDepth := (img.Info().Usage() & VkImageUsageFlags(VkImageUsageFlagBits_VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT)) != 0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isDepth was used for debugging depth/stencil image priming by rendering. It does not imply depth stencil images with TRANSFER_DST_BIT set can not be primed by buffer copy.

@qining qining closed this Dec 13, 2018
@qining qining deleted the fix-image-layout-tracking-for-attachments branch December 13, 2018 15:19
@qining qining restored the fix-image-layout-tracking-for-attachments branch December 13, 2018 15:19
@qining qining reopened this Dec 13, 2018
@qining qining merged commit de6e30f into google:master Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants