vkback: the clamp does not report a draw record without instances #217

Manually merged
github merged 1 commit from github-bot/gh-217 into gh-pr/217/base 2026-12-02 19:51:23 +00:00 AGit
Owner

@⁠360900 on GitHub · 2026-12-02 14:28 UTC · original
360900:fix/clamp-report-empty-draws → main · +13 −6 · 4 files · 1 commits · merged 2026-12-02 19:46 UTC

What

The clamp no longer reports a draw record without instances (clamp.comp, reason "draw count 2^23 or more: run empty"): it draws nothing before and after the clamp. A record with instances is reported as before. For #179.

The reference

No counterpart: the report is vkback's own.

Evidence

  • RTX 5080, NVIDIA 620.73.04, Linux 7.3: 480 s world run under the validation layer. 2 reports where the build without this change has 192 for the same submission, no "entries past the 64 kept", no new validation error, no device loss.
  • The 192 before: 192 Draw ops of one submission over 90 records of one argument buffer; 190 had instance count 0, 2 had 1 (#179). Those 2 are still reported.
  • Not run on RADV: no AMD card here.
  • In-game results are from the build with all NVIDIA pull requests: the title does not start on this driver without the umem one.

Checklist (docs/AGENTS.md)

  • One topic (rule 31); docs/TASKS.md not edited (rule 29)
  • "Allow edits by maintainers" on; after review, no force-push and no close-and-reopen
  • No fallback or second path for a case that can't happen (rule 33); unexpected input fails loudly (rule 9): a record with instances is still reported
  • Constants come from the console, the hardware or the title's data (rule 9b): none new
  • Every switch is listed, read in one place, and a bad value stops the start (rule 2): no new switches
  • Queues and other externally synchronized Vulkan objects are used under their lock (rule 35): none touched
  • Every unsafe block has a // SAFETY: comment (rule 36): none new
  • Clippy clean; no new test (one condition in clamp.comp, shown by the run); TRANSLATOR_VERSION: the translator is not touched (rule 27)
  • Comments say what is true now and name functions, not line numbers (rule 3)
  • Nothing from the title, and no pointers to where non-free data can be found
**@⁠360900** on GitHub · 2026-12-02 14:28 UTC · [original](https://github.com/vktory6/VKtory/pull/217) `360900:fix/clamp-report-empty-draws` → `main` · +13 −6 · 4 files · 1 commits · merged 2026-12-02 19:46 UTC ## What The clamp no longer reports a draw record without instances (`clamp.comp`, reason "draw count 2^23 or more: run empty"): it draws nothing before and after the clamp. A record with instances is reported as before. For #179. ## The reference No counterpart: the report is vkback's own. ## Evidence - RTX 5080, NVIDIA 620.73.04, Linux 7.3: 480 s world run under the validation layer. 2 reports where the build without this change has 192 for the same submission, no "entries past the 64 kept", no new validation error, no device loss. - The 192 before: 192 Draw ops of one submission over 90 records of one argument buffer; 190 had instance count 0, 2 had 1 (#179). Those 2 are still reported. - Not run on RADV: no AMD card here. - In-game results are from the build with all NVIDIA pull requests: the title does not start on this driver without the umem one. ## Checklist (docs/AGENTS.md) - [x] One topic (rule 31); `docs/TASKS.md` not edited (rule 29) - [x] "Allow edits by maintainers" on; after review, no force-push and no close-and-reopen - [x] No fallback or second path for a case that can't happen (rule 33); unexpected input fails loudly (rule 9): a record with instances is still reported - [x] Constants come from the console, the hardware or the title's data (rule 9b): none new - [x] Every switch is listed, read in one place, and a bad value stops the start (rule 2): no new switches - [x] Queues and other externally synchronized Vulkan objects are used under their lock (rule 35): none touched - [x] Every `unsafe` block has a `// SAFETY:` comment (rule 36): none new - [x] Clippy clean; no new test (one condition in `clamp.comp`, shown by the run); `TRANSLATOR_VERSION`: the translator is not touched (rule 27) - [x] Comments say what is true now and name functions, not line numbers (rule 3) - [x] Nothing from the title, and no pointers to where non-free data can be found
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 14:29:57 +00:00
github-bot changed target branch from main to gh-pr/217/base 2026-12-02 19:51:20 +00:00
github manually merged commit 349470ca46 into gh-pr/217/base 2026-12-02 19:51:23 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-02 19:46 UTC · original

Merged, thanks. Checked together with the rest of the NVIDIA set on the reference card (RX 9070 XT): unit tests pass, and a house validation run with all six applied showed no new validation errors, no device loss and the expected counters. A draw record without instances is empty before and after the clamp, so not reporting it drops no information; the open question of who writes the large count stays in the learning.

**@⁠vktory6** on GitHub · 2026-12-02 19:46 UTC · [original](https://github.com/vktory6/VKtory/pull/217#issuecomment-7356709300) Merged, thanks. Checked together with the rest of the NVIDIA set on the reference card (RX 9070 XT): unit tests pass, and a house validation run with all six applied showed no new validation errors, no device loss and the expected counters. A draw record without instances is empty before and after the clamp, so not reporting it drops no information; the open question of who writes the large count stays in the learning.
This discussion has been locked. Commenting is limited to contributors.
No description provided.