Remove some unneed read access from vk srcAccessMasks.
There is not need to have read accesses list in the srcAccessMask of barriers. This is cause the srcAccessMask is used to make writes to memory available and reads obviously have no writes. Change-Id: I2fb1eca04d6f216bc63e200ad36bacdb40bf8146 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/321785 Auto-Submit: Greg Daniel <egdaniel@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com>
This commit is contained in:
parent
a3f22f1704
commit
b509bbb81f
@ -93,13 +93,11 @@ VkAccessFlags GrVkImage::LayoutToSrcAccessMask(const VkImageLayout layout) {
|
||||
flags = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT |
|
||||
VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT |
|
||||
VK_ACCESS_TRANSFER_WRITE_BIT |
|
||||
VK_ACCESS_TRANSFER_READ_BIT |
|
||||
VK_ACCESS_SHADER_READ_BIT |
|
||||
VK_ACCESS_HOST_WRITE_BIT | VK_ACCESS_HOST_READ_BIT;
|
||||
VK_ACCESS_HOST_WRITE_BIT;
|
||||
} else if (VK_IMAGE_LAYOUT_PREINITIALIZED == layout) {
|
||||
flags = VK_ACCESS_HOST_WRITE_BIT;
|
||||
} else if (VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL == layout) {
|
||||
flags = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT;
|
||||
flags = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT;
|
||||
} else if (VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL == layout) {
|
||||
flags = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT;
|
||||
} else if (VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL == layout) {
|
||||
|
Loading…
Reference in New Issue
Block a user