vkback: the compile line's blend reads inside its panel buffer #162

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

@⁠360900 on GitHub · 2026-12-01 23:12 UTC · original
360900:fix/compile-line-read → main · +17 −7 · 4 files · 1 commits · merged 2026-12-02 19:49 UTC

What

The compile line's blend (present/blend.frag) indexed the panel's buffer by the fragment's position without a bound. Helper invocations outside the quad read too, up to a row past the buffer. The coordinates are clamped to the panel now; the push block carries its size instead of its width.

The reference

No counterpart: the overlay is vkback's own.

Evidence

  • RTX 5080, NVIDIA 620.73.04, Linux 7.3. Before: every world run lost the device at the first present that showed the line (Xid 13, an MMU fault; VK_EXT_device_fault named the page after the panel's buffer). After: 10 world runs of 300 to 530 s, none lost there, and the line shows in a saved frame.
  • Validation run (layer 1.4.363, start to the first minutes in the world, 480 s): no error from this draw.
  • Not run on RADV: no AMD card here. RADV read on past the buffer, so nothing changes there but the read.
  • In-game and validation results are from the build with all nine 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)
  • Constants come from the console, the hardware or the title's data (rule 9b)
  • 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)
  • Every unsafe block has a // SAFETY: comment (rule 36): no new unsafe
  • Clippy clean; tests call the production code; 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-01 23:12 UTC · [original](https://github.com/vktory6/VKtory/pull/162) `360900:fix/compile-line-read` → `main` · +17 −7 · 4 files · 1 commits · merged 2026-12-02 19:49 UTC ## What The compile line's blend (`present/blend.frag`) indexed the panel's buffer by the fragment's position without a bound. Helper invocations outside the quad read too, up to a row past the buffer. The coordinates are clamped to the panel now; the push block carries its size instead of its width. ## The reference No counterpart: the overlay is vkback's own. ## Evidence - RTX 5080, NVIDIA 620.73.04, Linux 7.3. Before: every world run lost the device at the first present that showed the line (Xid 13, an MMU fault; `VK_EXT_device_fault` named the page after the panel's buffer). After: 10 world runs of 300 to 530 s, none lost there, and the line shows in a saved frame. - Validation run (layer 1.4.363, start to the first minutes in the world, 480 s): no error from this draw. - Not run on RADV: no AMD card here. RADV read on past the buffer, so nothing changes there but the read. - In-game and validation results are from the build with all nine 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) - [x] Constants come from the console, the hardware or the title's data (rule 9b) - [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) - [x] Every `unsafe` block has a `// SAFETY:` comment (rule 36): no new `unsafe` - [x] Clippy clean; tests call the production code; `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
Helper invocations outside the quad read up to a row past it: a lost device on NVIDIA's driver.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 23:15:53 +00:00
github-bot changed target branch from main to gh-pr/162/base 2026-12-02 19:51:28 +00:00
github manually merged commit abdfe23ca2 into gh-pr/162/base 2026-12-02 19:51:31 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-02 19:49 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. Nothing to regenerate on your side: this repository builds the blend SPIR-V from blend.vert/blend.frag in build.rs. Our private tree still kept a checked-in copy of the words, which is what made our first check fail; it now builds them the same way.

**@⁠vktory6** on GitHub · 2026-12-02 19:49 UTC · [original](https://github.com/vktory6/VKtory/pull/162#issuecomment-7356775431) 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. Nothing to regenerate on your side: this repository builds the blend SPIR-V from blend.vert/blend.frag in build.rs. Our private tree still kept a checked-in copy of the words, which is what made our first check fail; it now builds them the same way.
This discussion has been locked. Commenting is limited to contributors.
No description provided.