From: Stephen Gallimore Date: Tue, 14 Apr 2020 13:12:26 +0000 (+0100) Subject: Prevent odd width single plane 422 images in dEQP-VK.ycbcr.query.* X-Git-Tag: upstream/1.3.5~1353^2~18^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1478a5fdcc593f0841a4d64d6d93687cb7e116b5;p=platform%2Fupstream%2FVK-GL-CTS.git Prevent odd width single plane 422 images in dEQP-VK.ycbcr.query.* 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 --- diff --git a/external/vulkancts/modules/vulkan/ycbcr/vktYCbCrImageQueryTests.cpp b/external/vulkancts/modules/vulkan/ycbcr/vktYCbCrImageQueryTests.cpp index b2aa202..e2bd9aa 100644 --- a/external/vulkancts/modules/vulkan/ycbcr/vktYCbCrImageQueryTests.cpp +++ b/external/vulkancts/modules/vulkan/ycbcr/vktYCbCrImageQueryTests.cpp @@ -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) {