Change gradient generator for pipeline image tests
authorAri Suonpaa <ari.suonpaa@siru.fi>
Tue, 26 Jan 2021 09:30:04 +0000 (11:30 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 3 Feb 2021 10:15:49 +0000 (10:15 +0000)
Pipeline image tests were initializing images with a
gradient generator which used a single image dimension
per channel (i.e. red channel depending only on x).
This was problematic when testing formats that were not
using all the channels. For example layer tests were
still passing for R16 formats even when sampling was
forced to always use layer 0 because the layer index
was encoded in a missing blue channel.

There was another gradient generator available that
encoded all coordinates into each channel solving
this problem.

VK-GL-CTS Issue: 2525

Affects:

dEQP-VK.pipeline.image.*

Components: Vulkan
Change-Id: Ie5ff0ddc5c373577952a4240bd10e10b9f25507b

external/vulkancts/modules/vulkan/pipeline/vktPipelineImageUtil.cpp

index 3b18883..7d48508 100644 (file)
@@ -987,7 +987,7 @@ void TestTexture::populateCompressedLevels (tcu::CompressedTexFormat format, con
 void TestTexture::fillWithGradient (const tcu::PixelBufferAccess& levelAccess)
 {
        const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(levelAccess.getFormat());
-       tcu::fillWithComponentGradients(levelAccess, formatInfo.valueMin, formatInfo.valueMax);
+       tcu::fillWithComponentGradients2(levelAccess, formatInfo.valueMin, formatInfo.valueMax);
 }
 
 // TestTexture1D