Work around deArraySizeHelper deficiency with multi-dimension arrays
authorPiers Daniell <pdaniell@nvidia.com>
Mon, 5 Dec 2022 22:01:43 +0000 (15:01 -0700)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Fri, 16 Dec 2022 14:06:43 +0000 (14:06 +0000)
This fixes a compilation issue with some compilers with deArraySizeHelper
and implicitly sized multi-dimensional arrays.

Affects:

Compilation only.

Components: Framework, Vulkan

VK-GL-CTS issue: 4158

Change-Id: Ie200647f34096b54544aff7f8d82b1eefabbd586

framework/common/tcuFuzzyImageCompare.cpp

index 6aa62ab..a83667c 100644 (file)
@@ -219,7 +219,7 @@ static deUint32 distSquaredToNeighbor (de::Random& rnd, deUint32 pixel, const Co
                return minDist;
 
        // Area around (x, y)
-       static const int s_coords[][2] =
+       static const int s_coords[8][2] =
        {
                {-1, -1},
                { 0, -1},