CP: Check and enable VK_KHR_sampler_mirror_clamp_to_edge
authorPyry Haulos <phaulos@google.com>
Mon, 8 Aug 2016 18:08:47 +0000 (11:08 -0700)
committerPyry Haulos <phaulos@google.com>
Tue, 30 Aug 2016 16:46:25 +0000 (09:46 -0700)
commit66ee615c377dbc501ac2fa6cc35de0c2ea954291
tree2bb9f7c048e872c831ce8071e7724eec9f400831
parent245bd3ffc413ac095141ea75f15a1268d49d5883
CP: Check and enable VK_KHR_sampler_mirror_clamp_to_edge

Several tests in dEQP-VK.pipeline group assume that
VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE mode is supported. Spec
actually requires that VK_KHR_sampler_mirror_clamp_to_edge is enabled if
that mode is used.

This change enables VK_KHR_sampler_mirror_clamp_to_edge in default
device, if supported, and adds relevant checks in the test code.

In the future we'll want to clean this up by giving test cases more
control about the device configuration they need.

Fixes #339
Bug: 29996742

(cherry picked from commit ed8561a07cdb1bb7730eccf9025b738838392464)

Change-Id: I12312f0e48d20724c082f31c4ab03792dbb44826
external/vulkancts/modules/vulkan/pipeline/vktPipelineImageSamplingInstance.cpp
external/vulkancts/modules/vulkan/vktTestCase.cpp
external/vulkancts/modules/vulkan/vktTestCase.hpp