upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorRafael <rafaelalvesp2005@gmail.com>2026-11-22 03:55:54 -0300
committerRafael <rafaelalvesp2005@gmail.com>2026-11-22 08:29:04 -0300
commitb093d45d08098bb3bb94d1356abfaaf619fa2da8 (patch)
tree321ac41c8f3ff6ac52d3b6c65d80b659251f1c20 /runtime/src/thread_stacks.cpp
parentbb2e18421dac527374eb837c88b5063c5d96f81f (diff)
shader_profile: take each shader's stage from the carve index
The per-stage report took the stage from the file name's first two characters before an underscore, but most corpus names carry no stage prefix, so on my 26,503-shader corpus 25,040 (94%) landed under "?" (ps 1,228, vs 225, ms 10, cs 0). shader_carve.py's index.json next to the disasm folder has every container's stage from its program header, as rdna2spirv.stage_of reads it; stage_map() now loads it and the name prefix is only the fallback for shaders it doesn't list (or when there is no readable index). Real data (counts only), the same 26,503 shaders, main -> this change: ? 25,040 -> 0, ps 1,228 -> 12,101, ms 10 -> 9,282, cs 0 -> 2,689, vs 225 -> 2,236, gs 0 -> 195. Tests: test_cli_takes_the_stage_from_the_carve_index (main: every listed shader without a prefix is "?", and a name prefix wins over the index). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions