Prevent odd width single plane 422 images in dEQP-VK.ycbcr.query.*
authorStephen Gallimore <stephen.gallimore@broadcom.com>
Tue, 14 Apr 2020 13:12:26 +0000 (14:12 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Mon, 20 Apr 2020 07:59:15 +0000 (03:59 -0400)
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

external/vulkancts/modules/vulkan/ycbcr/vktYCbCrImageQueryTests.cpp

index b2aa202..e2bd9aa 100644 (file)
@@ -347,7 +347,7 @@ void bindImage (const DeviceInterface& vkd,
 
 UVec2 getMaxPlaneDivisor (const PlanarFormatDescription& formatDesc)
 {
-       UVec2   maxDivisor      (1u, 1u);
+       UVec2   maxDivisor      (formatDesc.blockWidth, formatDesc.blockHeight);
 
        for (deUint32 ndx = 0; ndx < formatDesc.numPlanes; ++ndx)
        {