From 8c23d9db0bd8e1faed06e4e059a042d29c65041c Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Tue, 19 Apr 2022 11:04:11 +0200 Subject: [PATCH] dzn: Add dummy {Create,Destroy}SamplerYcbcrConversion() implementations We don't support Ycbcr sampler conversion. Add dummy implementations to make us Vulkan 1.1 compliant. Reviewed-by: Erik Faye-Lund Reviewed-by: Jesse Natalie Part-of: --- src/microsoft/vulkan/dzn_device.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c index 002bd14edfc..83c47e32c58 100644 --- a/src/microsoft/vulkan/dzn_device.c +++ b/src/microsoft/vulkan/dzn_device.c @@ -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"); +}