It is invalid for 422 sampled image formats to have odd widths,
but this was only being enforced in the tests for multi-plane not
single plane formats.
Component: Vulkan
Affects: dEQP-VK.ycbcr.query.*
VK-GL-CTS Issue: 2309
Change-Id: Ie23eb77686ac2e6ab51367af92181a3f967d55d9
UVec2 getMaxPlaneDivisor (const PlanarFormatDescription& formatDesc)
{
- UVec2 maxDivisor (1u, 1u);
+ UVec2 maxDivisor (formatDesc.blockWidth, formatDesc.blockHeight);
for (deUint32 ndx = 0; ndx < formatDesc.numPlanes; ++ndx)
{