1d images need to have size.y=1. Otherwise Vulkan validation layer will
complain.
Affects:
dEQP-VK.image.texel_view_compatible.compute.basic.1d_image*
Components: Vulkan
VK-GL-CTS issue: 1920
Change-Id: I0dd24d612aafb416a74b5eb6f16bb55c76175a0f
(cherry picked from commit
fe76a662df108542ff27e1c4f5a83077b54444c4)
else
{
UVec3 size = m_parameters.size;
+ if (m_parameters.imageType == IMAGE_TYPE_1D) {
+ size.y() = 1;
+ }
size.z() = 1;
const VkExtent3D originalResolutionInBlocks = makeExtent3D(getCompressedImageResolutionInBlocks(m_parameters.formatCompressed, size));