Add striped 3D blitting tests
authorEleni Maria Stea <estea@igalia.com>
Fri, 27 Nov 2020 12:15:27 +0000 (13:15 +0100)
committerAlexander Galazin <alexander.galazin@arm.com>
Wed, 13 Jan 2021 08:01:50 +0000 (09:01 +0100)
commit4eedf9fda2cb6873ae792cbdf7b4d2023de7bf4d
tree5c061c01a98743d1dd85e9981a67fe3fba0bcb25
parent31f178f5822f25181bd319fd44b1650021e2824d
Add striped 3D blitting tests

This commit adds new tests to the color 3D image blitting group that try
to verify the proper filter (linear or nearest) is being applied in all
dimensions of the image.

Existing 3D blitting tests use source images containing gradients, with
colors values changing only small amounts from one pixel to its
neighbors. If the implementation uses the wrong filter mode (linear
instead of nearest and vice versa), a majority of these tests still
pass thanks to the test tolerance.

The new tests added by this commit use a striped pattern with slices
containing alternating red-blue colors in each of the X, Y or Z axes,
depending on the test, giving significantly different results for the
linear and nearest filter modes.

New tests:
dEQP-VK.api.copy_and_blit.core.blit_image.all_formats.color.3d.*_stripes_*

Components: Vulkan
VK-GL-CTS issue: 2672

Co-authored-by: Ricardo Garcia <rgarcia@igalia.com>
Change-Id: Ib24a36d312be11d71f2e353e4a9ff763cc0e52a8
android/cts/master/vk-master-2020-03-01.txt
android/cts/master/vk-master.txt
external/vulkancts/modules/vulkan/api/vktApiCopiesAndBlittingTests.cpp
external/vulkancts/mustpass/master/vk-default.txt