upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/bcpack.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 15:10:59 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 16:43:28 -0500
commit359ba968d51907ece4438193e03e854ab7bf8d38 (patch)
treec8cb46d5b7ff502b2698662641e54343f577bb46 /runtime/src/bcpack.cpp
parent595b1325d922ed05782fc5fd7d0baa5459eadef6 (diff)
indirect clamp: count dispatch records by width and log them (RT-INDIRECT-DISPATCH-COUNTERS)
#2230 bounds a dispatch record by the device's maxComputeWorkGroupCount instead of 65 535. Nothing said how wide the title's dispatches are, nor when a device's own limit still cuts one (llvmpipe allows 65 535 in x; RADV 2^32 - 1), which its review asked for. The title's tile passes ask for 67 440 groups in x at 2560x1440 (found in the VIctory-Belobug-AMD fork of VIctory, crates/victory-gpu/src/indirect.rs; no code of it is used). - indirect_clamp.comp: stats words 12-15 count dispatch records that run wider than 65 535 groups in x, the widest x that runs, those cut at the device's limits (and still running), and all of them. - vulkan_indirect_clamp.h: the counters, read with the others (16 words a slot, words 8-15 zeroed before the pass), and a line every 10 s while dispatch records are clamped: `indirect clamp dispatch: N records, W wider than 65535 groups in x, widest x X, C cut at the device's limits (x x y x z)`. - indirect_clamp_spv.h regenerated from the .comp as its header says (glslangValidator 16.6.0). - docs/d3d12_vulkan.md section 4.7: the device's bound per dimension (it still said 65 535), the line, and the test. Tests: indirect_clamp_test's cases 6b and 6c check the counters (70 000 x 1 x 1: wider than 65 535 where the device runs it, cut at its limit and counted where not). tests/test_indirect_clamp_telemetry.py checks the new atomics. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/bcpack.cpp')
0 files changed, 0 insertions, 0 deletions