Module: Mesa Branch: main Commit: 8c23d9db0bd8e1faed06e4e059a042d29c65041c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c23d9db0bd8e1faed06e4e059a042d29c65041c
Author: Boris Brezillon <[email protected]> Date: Tue Apr 19 11:04:11 2022 +0200 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 <[email protected]> Reviewed-by: Jesse Natalie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16926> --- 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"); +}
