From da406b66effc678b5de68a20ee408b3a30622f3a Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 29 Nov 2026 04:43:02 +0300 Subject: [PATCH] borealis: advertise meshAndTaskShaderDerivatives on M5 Mesh and task shader derivatives use the same NIR lowering as compute derivatives (quad swaps and explicit-gradient samples), which is not chip specific. hk_shader.c already applies it whenever the property is set, so the M5 parts only need to report it, like G17P. Signed-off-by: Nick --- src/asahi/vulkan/hk_physical_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/asahi/vulkan/hk_physical_device.c b/src/asahi/vulkan/hk_physical_device.c index bb369e533937..07c4f7cc5ac4 100644 --- a/src/asahi/vulkan/hk_physical_device.c +++ b/src/asahi/vulkan/hk_physical_device.c @@ -1468,7 +1468,8 @@ hk_get_device_properties(const struct agx_device *dev, VK_SUBGROUP_FEATURE_ROTATE_CLUSTERED_BIT_KHR, .subgroupQuadOperationsInAllStages = true, .meshAndTaskShaderDerivatives = - dev->chip == AGX_CHIP_G17P && features->meshShader, + (dev->chip == AGX_CHIP_G17P || agx_chip_g17_m5(dev->chip)) && + features->meshShader, .pointClippingBehavior = VK_POINT_CLIPPING_BEHAVIOR_USER_CLIP_PLANES_ONLY, .maxMultiviewViewCount = HK_MAX_MULTIVIEW_VIEW_COUNT, .maxMultiviewInstanceIndex = UINT32_MAX,