[15/16] radv: Disable sampler ycbcr conversion.

Submitted by Bas Nieuwenhuizen on March 7, 2018, 2:47 p.m.

Details

Message ID 20180307144744.4816-15-bas@basnieuwenhuizen.nl
State Accepted
Series "Series without cover letter"
Commit 0168eaaa427f592a367094bf67927ff6f5cb7dfe
Headers show

Commit Message

Bas Nieuwenhuizen March 7, 2018, 2:47 p.m.
Reviewed-by: Dave Airlie <airlied@redhat.com>
---
 src/amd/vulkan/radv_descriptor_set.c | 18 ++++++++++++++++++
 src/amd/vulkan/radv_device.c         |  6 ++++++
 2 files changed, 24 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c
index 265028df2b..f5e3a24bff 100644
--- a/src/amd/vulkan/radv_descriptor_set.c
+++ b/src/amd/vulkan/radv_descriptor_set.c
@@ -1067,3 +1067,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. */
+}
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 8f2f9b4606..150cbdab2e 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -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;
 		}