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>
Mon, 8 Aug 2016 18:08:47 +0000 (11:08 -0700)
commited8561a07cdb1bb7730eccf9025b738838392464
tree1b582d335b2edc982230ccc4beaea5f6339a0321
parentd99c2b6714d69c8d73679e851363027b36ee828a
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

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