Fix tolerance values when VK_COMPONENT_SWIZZLE_ONE is in use
authorJoe Withers <joe.withers@imgtec.com>
Mon, 30 Jan 2023 17:32:24 +0000 (17:32 +0000)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Thu, 2 Feb 2023 18:16:09 +0000 (18:16 +0000)
commit53e3a7b4eb4d0d14d936c9a55bfdbb5019973729
tree5c94f9546d99a742b6e4d3f4e6daf84548e7a747
parentc432f094f5882731218dcf13e4c5ca4c07f5d486
Fix tolerance values when VK_COMPONENT_SWIZZLE_ONE is in use

Tolerance values were being increased unnecessarily for tests using
VK_COMPONENT_SWIZZLE_ONE.

This change overwrites any SWIZZLE_ONE with SWIZZLE_ZERO when applying
a swizzle to the threshold values, to maintain a strict tolerance.

Affects: dEQP-VK.pipeline.sampler.border_swizzle.*

Components: Vulkan
Change-Id: Ie72e4a97e502bdbb74ea412951f5a9481434d489
external/vulkancts/modules/vulkan/pipeline/vktPipelineSamplerBorderSwizzleTests.cpp