Skip to content

Enable shader source hash in debug tools

Felix Degrood requested to merge fjdegroo/mesa:wip/shader-src-hash into main

Having a portable shader hash will aid shader debug, giving us a common shader identifier visible from all tools. Needs to be based on source program, otherwise shader hash will be different depending on NIR version in mesa driver.

Using lowest dword of sha1 generated from shader source program. Enabling hash in commonly used tools including INTEL_MEASURE, INTEL_DEBUG=vs,ps,cs,etc, VkPipelineExecutableStatisticKHR (for reaching Renderdoc, Fossilize, and other Vulkan tools)

Merge request reports