DescriptionAlways add a barrier when old layout was general in vulkan.
When we have a general layout, we need to always add a barrier even if
leaving the layout in general since we don't know what the use case for
general was with the old layout.
This doesn't seem to fix any of our synchronization issues which makes
sense since we don't really use a general layout much. The only place it
is used is for mipmap generation, but then we add explicit barriers in
that function itself and the first use of the image after mipmap generation
will change the layout to something other than general, usually SHADER_READ.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2298483002
Committed: https://skia.googlesource.com/skia/+/19ff1035d3334ffa513c93edce04662bb5ead5bd
Patch Set 1 #Patch Set 2 : fix equality #Patch Set 3 : add more flags for general #
Messages
Total messages: 18 (8 generated)
|