dzn: Add dummy {Create,Destroy}SamplerYcbcrConversion() implementations
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 19 Apr 2022 09:04:11 +0000 (11:04 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Jun 2022 22:44:42 +0000 (22:44 +0000)
We don't support Ycbcr sampler conversion. Add dummy implementations to
make us Vulkan 1.1 compliant.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16926>

src/microsoft/vulkan/dzn_device.c

index 002bd14..83c47e3 100644 (file)
@@ -2822,3 +2822,21 @@ dzn_GetImageSparseMemoryRequirements2(VkDevice device,
 {
    *pSparseMemoryRequirementCount = 0;
 }
+
+VKAPI_ATTR VkResult VKAPI_CALL
+dzn_CreateSamplerYcbcrConversion(VkDevice device,
+                                 const VkSamplerYcbcrConversionCreateInfo *pCreateInfo,
+                                 const VkAllocationCallbacks *pAllocator,
+                                 VkSamplerYcbcrConversion *pYcbcrConversion)
+{
+   unreachable("Ycbcr sampler conversion is not supported");
+   return VK_SUCCESS;
+}
+
+VKAPI_ATTR void VKAPI_CALL
+dzn_DestroySamplerYcbcrConversion(VkDevice device,
+                                  VkSamplerYcbcrConversion YcbcrConversion,
+                                  const VkAllocationCallbacks *pAllocator)
+{
+   unreachable("Ycbcr sampler conversion is not supported");
+}