[Mesa-dev] [PATCH 2/5] radv: add support for VK_KHR_sampler_mirror_clamp_to_edge

Fredrik Höglund fredrik at kde.org
Wed Nov 23 22:04:59 UTC 2016


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.
---
 src/amd/vulkan/radv_device.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 70c94e9..0d79eee 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -171,6 +171,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,
 	},
-- 
2.1.4



More information about the mesa-dev mailing list