Test exact sampling cases
authorRicardo Garcia <rgarcia@igalia.com>
Wed, 29 Jan 2020 09:44:05 +0000 (10:44 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 14 Feb 2020 11:39:41 +0000 (06:39 -0500)
commit9c31dff6d3e4c59ffd684ca7e9ee093bfea81986
tree3d6c49df014cb7ae280c8d46eb36abb10523ab70
parentdf2ae085310983f5f5c511fa47fc89fcc0d6e8f6
Test exact sampling cases

This commit adds test to check samplers do not wrongly manipulate the
value of sampled texels from a texture.

This is checked by creating a texture with a single mipmap level and a
framebuffer image of the same size. Then, a full-screen quad is drawn
with appropriate vertex and texture coordinates so it covers the whole
screen. When drawing, the sampler uses the nearest filter, which means
the output framebuffer image and the texture should match exactly.

New tests:
dEQP-VK.pipeline.sampler.exact_sampling.*

Components: Vulkan
VK-GL-CTS issue: 2170

Change-Id: Ia5fb27d577d7bca92cbc723c798f8ab06190453b
android/cts/master/vk-master.txt
external/vulkancts/modules/vulkan/pipeline/vktPipelineSamplerTests.cpp
external/vulkancts/mustpass/master/vk-default-no-waivers.txt
external/vulkancts/mustpass/master/vk-default.txt