Single color buffer in multiple interpolation tests
authorRicardo Garcia <rgarcia@igalia.com>
Tue, 6 Jul 2021 15:55:14 +0000 (17:55 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 8 Jul 2021 20:33:09 +0000 (20:33 +0000)
commitddbe7608ba068337f56a8030146f1bc65f87809d
tree12689bbf1e2ced8f1751f288694649b500132170
parent2d478dad0174b1c3548bd7993e4dbc8fa24bedf5
Single color buffer in multiple interpolation tests

The multiple interpolation tests were requiring 5 color attachments to
run the main fragment shader, when the spec requires implementations to
support at least 4.

Instead of checking the number of supported color attachments and
marking the tests as not supported in those cases, this commit changes
the main fragment shader to use only one color attachment and selects
one of the multiple interpolations using push constants.

The tests run a bit slower because they use multiple pipelines and
render passes in sequence instead of a single one, but they can be run
on any implementation.

Affected tests:
dEQP-VK.draw.multiple_interpolation.*

Components: Vulkan
VK-GL-CTS issue: 2986

Change-Id: I14f0aacd8e134bbcbf027f46ed6c18076bae09f5
external/vulkancts/modules/vulkan/draw/vktDrawMultipleInterpolationTests.cpp