﻿# How should a Vulkan inference backend qualify cooperative matrix maintenance on Mesa 26.3?

Require device properties, shader execution and numerical agreement for the exact matrix variant before selecting it.

Author: Retrivium team
Updated: 2026-11-10
Canonical URL: https://retrivium.ai/journal/news-mesa263-radv-cooperative-matrix-shader-gate/
Language: en

Mesa 26.3.0 release coverage lists the cooperative matrix maintenance extension for RADV and Lavapipe. The Khronos specification adds operations and a more detailed properties query. For inference, the relevant question is whether a particular shader variant and matrix configuration execute on the selected physical device with correct results.

## Query the device used by the workload

Enumerate the physical device from the same container and driver configuration used for inference. Record the driver and available feature bits. Lavapipe is a software implementation, so an extension name can appear even if the application selected a software path. Keep software and hardware measurements in separate rows.

## Check shape and subgroup constraints

Khronos describes a query that can include the desired subgroup size. Match component types, matrix dimensions and scope to your shader. Use the properties result to choose an eligible variant. An advertised extension alone does not establish that the tile layout selected for a particular model is supported.

## Validate the actual operations

Build a minimal shader for the operation you need, such as a reduction or elementwise operation. Compare results with a reference over normal and boundary values using an explicit tolerance. Then run the same operation in a model graph to catch integration differences in layout, precision and synchronization.

## Keep fallback and performance observable

When a property or operation is missing, verify that the runtime selects its baseline variant and produces correct output. For the enabled path, measure end-to-end model latency as well as kernel time. Record the Mesa build and device for each row so an upgrade cannot accidentally inherit evidence from a different driver.

## Primary sources

- [Mesa release archive](https://archive.mesa3d.org/)
- [Mesa 26.3 release feature summary](https://www.phoronix.com/news/Mesa-26.3-Released)
- [Khronos cooperative matrix maintenance specification](https://docs.vulkan.org/refpages/latest/refpages/source/VK_EXT_cooperative_matrix_maintenance1.html)

## Related reading

- [Prefill and decode: the work your GPU performs during inference](/journal/llm-prefill-decode/)
- [How do you qualify a Vulkan Video workload on Mesa 26.3 NVK?](/journal/news-mesa263-nvk-video-profile-qualification/)
