radv: add support for VK_KHR_sampler_mirror_clamp_to_edge
authorFredrik Höglund <fredrik@kde.org>
Wed, 23 Nov 2016 22:04:59 +0000 (23:04 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Nov 2016 22:19:20 +0000 (08:19 +1000)
radv_tex_wrap() already supports VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE,
so all that's needed is to advertise support for the extension.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c

index 70c94e919db41d551b7360659593086be0d4e1f8..0d79eeeef2ca07c783f0f83b0cc23c44eb158cce 100644 (file)
@@ -170,6 +170,10 @@ static const VkExtensionProperties global_extensions[] = {
 };
 
 static const VkExtensionProperties device_extensions[] = {
+       {
+               .extensionName = VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME,
+               .specVersion = 1,
+       },
        {
                .extensionName = VK_KHR_SWAPCHAIN_EXTENSION_NAME,
                .specVersion = 68,