Improve tests for minSampleShading
authorSlawomir Cygan <slawomir.cygan@intel.com>
Mon, 17 Jul 2017 17:27:42 +0000 (19:27 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Mon, 28 Aug 2017 07:40:58 +0000 (03:40 -0400)
commit83f7fcd8e1c7cb81a8b08d7161658ccd392c31e4
tree396785fec98ed73aea047d3aa3d68a130f4f8064
parentf704963f55d13ca3ce848b343483fd23c7ebece0
Improve tests for minSampleShading

Existing tests had chicken & egg problem: they were just comparing resolved
images rendered to with minSampleShading > 0 to resolved images rendered to with
minSampleShading == 1. This means that any tests could pass in case of
consistent bug in sample shading.

This change reworks the test do proper validation of number of unique
generated samples:
 - Renderpass is extended with passes for copying per-sample data into
 single sampled images

 - Single sampled images are than cross-checked on CPU: for each pixel,
 the number of covered unique samples accross all images must be not less
 than amoung expected from given minSampleShading value.

Affects:
dEQP-VK.pipeline.multisample.min_sample_shading.*

Components: Vulkan

VK-GL-CTS issue: 579

Change-Id: I24cbf471a499de5db39b028e598a13899114a3e4
external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleTests.cpp