vkback: indirect draw records changed by the clamp at the world's start (NVIDIA) #179
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory#179
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@360900 on GitHub · 2026-12-02 00:29 UTC · original
RTX 5080, NVIDIA 620.73.04, main
d59b4f8with the NVIDIA pull requests (#162 to #170 and the 32-lane translation).Every run reports, once, about 50 s after the start (the world's first frames), 64 times in one frame plus "clamp report entries past the 64 kept between two presents":
The first word differs between runs (0x94c3b1b6, 0x6963b1b6), the other four are 0. The records are those of indirect draws without vertex inputs into targets of formats 10 and 42. Not traced further; not known whether RADV shows it (no owner in the loud table).
@TheRifai on GitHub · 2026-12-02 11:26 UTC · original
Cross-driver data point for the clamp finding: on RADV, the same at-risk indirect records verify with zero changed arguments on current main.
Seen on:
d59b4f8, RX 9070 XT / RADV 26.3.1, GE-Proton11-16, Series X, 3840x2160, house savert3, 105 s warm-store run with a scripted camera walk (W/I/K/J at 20/45/70/95 s) andVKB_CLAMP_VERIFY=1.indirect clamps in 301299 prologues (1983863 checked in line).arguments changed after the epoch prologue's clamp read them (VKB_CLAMP_VERIFY)lines: 0.clamp report:lines: 0; loud summary had only the two known kinds.So on this driver the 281k/window upper-bound note does not translate into a wrong argument in almost 2 million in-line checks, matching the earlier house/prison verification on issue #124. That does not explain the NVIDIA
Draw record changed by the clampreport, but it suggests the difference is driver/path-specific rather than a universal clamp bug. Evidence:/home/shlong/Documents/VKtory-capture/clamp-verify-current/20261202-121619/.@360900 on GitHub · 2026-12-02 13:09 UTC · original
RTX 5080 without Resizable BAR:
VKB_CLAMP_VERIFYchecks nothing here, the descriptors stay staged and the clamps go throughepoch_clamps("0 checked in line").A
VKB_TRACE=1run, records as the CPU reads them when the op is recorded: the 192 are Draw ops of one submission over 90 records of one argument buffer. Before that submission the records are [0, 0, 0, 0], in it [X, 0 or 1, 0, 0], after it [720, 0 or 1, 0, 0]. X is one value of 2^23 or more in all of them; it differs between runs, its low 16 bits do not (0xb1b6). 190 of the 192 have an instance count of 0 and draw nothing either way, 2 have 1.So the count is in title memory before the GPU runs the op. Not shown: who writes it.
Proposal: the clamp does not report a draw record whose instance count is 0. It is empty before and after the clamp, and here that leaves 2 reports instead of 192.