diff options
| author | Marcin Kantoch <Marcin.Kantoch@amd.com> | 2017-01-27 12:33:21 +0100 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-01-27 08:55:56 -0700 |
| commit | 8d5226c619572dacf4778aa95dc51a98557f9554 (patch) | |
| tree | ad963c73d77dd7e9b1693592a63e4a92091cd087 /layers/unique_objects.cpp | |
| parent | 85dbd823c410a2817b077e2c6d1ee0cda7e247dd (diff) | |
| download | usermoji-8d5226c619572dacf4778aa95dc51a98557f9554.tar.xz | |
layers: Fix for VkBufferImageCopy for depth/stencil
According to the Vulkan spec:
"If the the calling command's VkImage parameter's format is not a
depth/stencil format, then VkBufferImageCopy::bufferOffset must be
a multiple of the format's element size"
Currently the image validation layer is checking unconditionally if
VkBufferImageCopy::bufferOffset is a multiple of the format's
element size and reporting error otherwise.
Added code that skips the alignment check if the VkImage parameter's
format is combined depth/stencil.
Change-Id: I92f2a67eee590fa3616df9da121aceec65204c24
Diffstat (limited to 'layers/unique_objects.cpp')
0 files changed, 0 insertions, 0 deletions
