vkback: indirect draw records changed by the clamp at the world's start (NVIDIA) #179

Open
opened 2026-12-02 00:31:52 +00:00 by github-bot · 2 comments
Owner

@⁠360900 on GitHub · 2026-12-02 00:29 UTC · original

RTX 5080, NVIDIA 620.73.04, main d59b4f8 with 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":

ERROR rule32 Draw record changed by the clamp (draw count 2^23 or more: run empty): vkback live: words [94c3b1b6, 0, 0, 0, 0] (prologue's first word 0x0) pipeline ... inputs [] cull 1 ccw true depth true rt [10, 42] ... (GPU clamp report)

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).

**@⁠360900** on GitHub · 2026-12-02 00:29 UTC · [original](https://github.com/vktory6/VKtory/issues/179) RTX 5080, NVIDIA 620.73.04, main d59b4f8 with 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": ``` ERROR rule32 Draw record changed by the clamp (draw count 2^23 or more: run empty): vkback live: words [94c3b1b6, 0, 0, 0, 0] (prologue's first word 0x0) pipeline ... inputs [] cull 1 ccw true depth true rt [10, 42] ... (GPU clamp report) ``` 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 00:31:52 +00:00
Author
Owner

@⁠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 save rt3, 105 s warm-store run with a scripted camera walk (W/I/K/J at 20/45/70/95 s) and VKB_CLAMP_VERIFY=1.

  • Sync line: 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 clamp report, 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/.

**@⁠TheRifai** on GitHub · 2026-12-02 11:26 UTC · [original](https://github.com/vktory6/VKtory/issues/179#issuecomment-7343920318) 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 save `rt3`, 105 s warm-store run with a scripted camera walk (W/I/K/J at 20/45/70/95 s) and `VKB_CLAMP_VERIFY=1`. - Sync line: `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 clamp` report, 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/`.
Author
Owner

@⁠360900 on GitHub · 2026-12-02 13:09 UTC · original

RTX 5080 without Resizable BAR: VKB_CLAMP_VERIFY checks nothing here, the descriptors stay staged and the clamps go through epoch_clamps ("0 checked in line").

A VKB_TRACE=1 run, 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.

**@⁠360900** on GitHub · 2026-12-02 13:09 UTC · [original](https://github.com/vktory6/VKtory/issues/179#issuecomment-7346443881) RTX 5080 without Resizable BAR: `VKB_CLAMP_VERIFY` checks nothing here, the descriptors stay staged and the clamps go through `epoch_clamps` ("0 checked in line"). A `VKB_TRACE=1` run, 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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/vktory6--VKtory#179
No description provided.