News: 0001563641

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Mesa 25.3 Merges Vulkan AMD Anti-Lag Support

([Mesa] 24 July 06:49 AM EDT VK_AMD_anti_lag)


An exciting addition landing into the Mesa 25.3 codebase today is support for AMD's Vulkan anti-lag extension, VK_AMD_anti_lag.

VK_AMD_anti_lag was [1]added in Vulkan 1.3.281 last year as part of the AMD effort to reduce latency while gaming. The Vulkan extension paces the CPU to make sure it does not get too far ahead of the GPU in order to keep low latency between receiving input and serving screen updates.

Daniel Schürmann as [2]one of Valve's Linux graphics driver contributors worked on adding the VK_AMD_anti_lag support to Mesa. VK_AMD_anti_lag is implemented as an implicit Vulkan layer that can be shared among the Mesa Vulkan drivers. Schürmann explained in the [3]merge :

vulkan: implement VK_AMD_anti_lag as implicit vulkan layer

VkLayer_MESA_anti_lag is a lightweight implicit layer which provides an open-source implementation of the VK_AMD_anti_lag vulkan extension.

The algorithm used by this layer is very simplistic and only aims to minimize the delay between calls to vkQueueSubmit or vkQueueSubmit2 and the begin of the execution of the submission.

In order to build VkLayer_MESA_anti_lag, pass -Dlayers=anti-lag to meson. It is possible to either install the layer or to use

VK_ADD_IMPLICIT_LAYER_PATH= /share/vulkan/implicit_layer.d/

for testing purposes.

(Keep in mind that you have to adjust the library_path in the json file in that case.)

After three months under review/discussion, great seeing this VK_AMD_anti_lag implicit layer merged to Mesa 25.3 for enjoying by RADV and open-source Mesa Vulkan drivers for Linux gamers wanting to leverage anti-lag. Some Linux distributions like CachyOS have [4]already opted for carrying these VK_AMD_anti_lag patches while waiting for the code to be mainlined.



[1] https://www.phoronix.com/news/Vulkan-1.3.291-Released

[2] https://www.phoronix.com/news/Daniel-Joins-Valve-Driver

[3] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34242

[4] https://www.phoronix.com/news/CachyOS-July-2025



skeevy420

Danny3

skeevy420

spidercat

ahrs

spidercat

dlq84

Kjell

touchdown

The first 90% of a project takes 90% of the time, the last 10% takes the
other 90% of the time.