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)
commit07924aea92d65df062c5b3f65497122797fa5e3d
tree4dabbb04ccfbd383a98f53cf9b8316cd515ca257
parent52cdbd45e7c75f25a74dea9c4dd4d0282e580119
Change gradient generator for pipeline image tests

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