radv: Disable sampler ycbcr conversion.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 22 Jan 2018 21:22:41 +0000 (22:22 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 7 Mar 2018 20:18:35 +0000 (21:18 +0100)
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_descriptor_set.c
src/amd/vulkan/radv_device.c

index c1a8f630f1dd6aead5ee76c92676b92498cceb38..daff7b2fcd5f612d512834148d0af9a3d393188e 100644 (file)
@@ -1068,3 +1068,21 @@ void radv_UpdateDescriptorSetWithTemplate(VkDevice _device,
 
        radv_update_descriptor_set_with_template(device, NULL, set, descriptorUpdateTemplate, pData);
 }
+
+
+VkResult radv_CreateSamplerYcbcrConversion(VkDevice device,
+                                          const VkSamplerYcbcrConversionCreateInfo* pCreateInfo,
+                                          const VkAllocationCallbacks* pAllocator,
+                                          VkSamplerYcbcrConversion* pYcbcrConversion)
+{
+       *pYcbcrConversion = VK_NULL_HANDLE;
+       return VK_SUCCESS;
+}
+
+
+void radv_DestroySamplerYcbcrConversion(VkDevice device,
+                                       VkSamplerYcbcrConversion ycbcrConversion,
+                                       const VkAllocationCallbacks* pAllocator)
+{
+       /* Do nothing. */
+}
index 2959253885a638fcc49088c32021314bcf505ae0..5da42a87df8ffc8d951dad79865000694f00ab7b 100644 (file)
@@ -716,6 +716,12 @@ void radv_GetPhysicalDeviceFeatures2(
                        features->storageInputOutput16 = false;
                        break;
                }
+               case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES: {
+                       VkPhysicalDeviceSamplerYcbcrConversionFeatures *features =
+                           (VkPhysicalDeviceSamplerYcbcrConversionFeatures*)ext;
+                       features->samplerYcbcrConversion = false;
+                       break;
+               }
                default:
                        break;
                }