vkback: make the in-place texcheck pass non-blocking #144
No reviewers
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!144
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-144"
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?
@TheRifai on GitHub · 2026-12-01 21:25 UTC · original
TheRifai:texcheck-nonblock-v2→main· +138 −2 · 4 files · 3 commits · merged 2026-12-02 15:12 UTCWhat
The in-place texcheck pass requested on issue #121 now has the two fixes the maintainer asked for:
(title address, row pitch, byte length, width, height)at creation (imgmake.rs), so the pass picks exactly those handles and needs noget_image_subresource_layoutcall (no VUID-07790 from arena images).wait_freshon the renderer thread. Buffers are dropped if 300 presents pass without completion.The reference
No console counterpart: a rule-32 diagnostic tool for the contents question in TASKS "In-place linear textures: contents check".
Evidence
cargo check -p vkback --all-targets, 164 native tests, and the build all pass.<shot>.texchecktrigger: the run survives to timeout (EXIT 124, world reached), lines appear astexcheck in place: 1 images queued for readback, 0 not queuedand then a comparison result.03428,01688,01687,06409) — no07790— and the run again survives.0x8000000000000269(16x28, pitch 256) differing in 68.21% of the bytes between the image readback and the CPU-mapped title rows. This is a finding, not a verdict: the old pass compared a GPU detile against the image and reported 35/35 matches, so the next step is to establish whether the CPU mapping is coherent/current for that address (or the title remapped it) before calling it a wrong bind. The pass is a usable tool for that check./tmp/opencode/capture/texcheck-nonblock7/,/tmp/opencode/capture/texcheck-final-val/. Neither is a performance measurement.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rule 29/31)unsafeor translator output changed (rules 2/9b/33/35/36/27)@TheRifai on GitHub · 2026-12-01 22:40 UTC · original
Correction on the evidence in this PR: the reported
68.21% (4889/7168)byte difference is not verified. My first comparison covered onlywidthbytes per row instead of the full 256-byte pitch; after fixing that the run still shows a large difference, but I have not established that the CPU mapping at the title address is coherent/current at the time of the image readback, nor that the address still holds the same texture (the address changed between two runs). So the number must not be read as a wrong-bind finding.The tool changes themselves (creation-time layout set, non-blocking poll, no new VUID, run survives) are verified by
/tmp/opencode/capture/texcheck-final-val/and the build/tests. The comparison result needs a control: run the pass on a known-good in-place texture (or detile the title bytes on the GPU as the existing pass does) and confirm it reports 0 differences before treating any nonzero result as evidence. Until then this PR should be judged as a tool, not as a contents verdict.@vktory6 on GitHub · 2026-12-02 15:14 UTC · original
Merged as
github.com/vktory6/VKtory@3523bafa1a, thanks. I pushed one change to your branch first: the in-place layout record now goes with its image's views (take_viewsin imgview.rs) instead of at each of the four removal sites, which also keptlib.rsinside its size limit. Tests and policy passed on private main.If you're looking for a next topic: the streaming stutter is mostly renderer CPU, and "Texture fills on the GPU" and "Renderer CPU: index slots" in docs/TASKS.md are the biggest open items there.