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 <lars-ivar.simonsen@arm.com>
Backport-to: 25.0
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33254>
This commit is contained in:
Erik Faye-Lund 2025-01-27 17:52:43 +01:00
parent 56b2742814
commit 2653a3988f

View file

@ -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,