From 2653a3988f97fe1be838ba10655259a42989a824 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 27 Jan 2025 17:52:43 +0100 Subject: [PATCH] panvk: report passing the VK CTS This will be needed in order to check off passing the VK CTS properly. Please note, this does *not* mean that we are formally conformant, only that we have passed the VK CTS at least once. Those are not the same thing. Reviewed-by: Lars-Ivar Hesselberg Simonsen Backport-to: 25.0 Part-of: --- src/panfrost/vulkan/panvk_physical_device.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/panfrost/vulkan/panvk_physical_device.c b/src/panfrost/vulkan/panvk_physical_device.c index c68fc2beddd..bdae6e34871 100644 --- a/src/panfrost/vulkan/panvk_physical_device.c +++ b/src/panfrost/vulkan/panvk_physical_device.c @@ -446,6 +446,15 @@ get_vk_version(unsigned arch) return VK_MAKE_API_VERSION(0, 1, 0, VK_HEADER_VERSION); } +static VkConformanceVersion +get_conformance_version(unsigned arch) +{ + if (arch == 10) + return (VkConformanceVersion){1, 4, 1, 2}; + + return (VkConformanceVersion){0, 0, 0, 0}; +} + static void get_device_properties(const struct panvk_instance *instance, const struct panvk_physical_device *device, @@ -739,7 +748,7 @@ get_device_properties(const struct panvk_instance *instance, .independentResolve = true, /* VK_KHR_driver_properties */ .driverID = VK_DRIVER_ID_MESA_PANVK, - .conformanceVersion = (VkConformanceVersion){0, 0, 0, 0}, + .conformanceVersion = get_conformance_version(arch), /* XXX: VK_KHR_shader_float_controls */ .denormBehaviorIndependence = VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_ALL, .roundingModeIndependence = VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_ALL,