KhronosGroup / Vulkan-LoaderAndValidationLayers

**Deprecated repository** for Vulkan loader and validation layers
Apache License 2.0
414 stars 172 forks source link

Fix an error with 3D image layout transitions #2656

Closed daveh-lunarg closed 6 years ago

daveh-lunarg commented 6 years ago

When a 3D image subresource layout is transitioned via a 2D or 2D_ARRAY image view, all depth slices within the subresource mip levels transition simultaneously, even if the subresource specifies a non-complete set of array layers. Fixed layout recording to reflect this special case.

Another instance of (depth slices == array layers, except when they don't.) ¯\_(ツ)_/¯

Resolves #2136.

tobine commented 6 years ago

Do we have a test for this case?

daveh-lunarg commented 6 years ago

Pushing this PR now to get the bug fix in before the repo transition. Will follow up with a test next week.