mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 18:08:40 +00:00
vk_pipeline_check <spirv dir> --stats FILE enables VK_KHR_pipeline_executable_properties, creates the pipelines with CAPTURE_STATISTICS and writes, for the executable that runs each translated shader (not the partner stub's), every statistic the driver reports as CSV rows name,stage,statistic,value. On RADV: instructions, VGPRs, SGPRs, spills, scratch size, waves per SIMD, and more. scripts/shader_stats.py <stats.csv> <disasm dir> [--details] compares them with the original RDNA listings: code growth, VGPRs against the highest VGPR the original uses, and which shaders use scratch or spill (a register file that went to memory, e.g. through v_movrels with an unbounded index). Over the corpus it says how many shaders compile badly. RX 5700 XT (RADV), the repository's test shaders: 47 pipelines, no scratch or spills in any. New tests/test_shader_stats.py (standard library only). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>