vkback: count mipmapped-linear views by levels named #152

Manually merged
github merged 3 commits from github-bot/gh-152 into gh-pr/152/base 2026-12-02 16:02:13 +00:00 AGit
Owner

@⁠TheRifai on GitHub · 2026-12-01 22:28 UTC · original
TheRifai:mip-view-count → main · +10 −1 · 3 files · 3 commits · merged 2026-12-02 15:57 UTC

What

First step of docs/TASKS.md "Linear textures with mipmaps are not bound in place", added after PR #137's probe: count SRVs of console-linear textures with mips by how many levels they name — one level or several — on the stats line (mip-linear views: one level N, several M). No behaviour change.

The reference

The console's linear mips are packed smallest-first with 256-byte row padding; a Vulkan linear image cannot match that chain (PR #137: 0 of 6 shapes matched). The task asks whether views name one level (split images could work) or several (they cannot).

Evidence

  • cargo check -p vkback --all-targets, 168 native tests, and the build all pass.
  • House start, 95 s, GE-Proton11-16: mip-linear views: one level 0, several 1433.
  • Boat start, 95 s: one level 0, several 1452.
  • So essentially every view of a mipmapped linear texture names several levels. The split shapes (level-0 image in place + copied mips, or one image per level) cannot serve them, because a Vulkan image view samples levels of one image only. The copy stays unless one image's level layout can match the console's.
  • Runs: /tmp/opencode/capture/mip-views-house/, /tmp/opencode/capture/mip-views-boat/. Not performance measurements.

Checklist (docs/AGENTS.md)

  • One topic; docs/TASKS.md not edited (rule 29/31)
  • No fallback, constant, switch, queue, unsafe or translator output changed (rules 2/9b/33/35/36/27)
  • Comments say what is true now (rule 3)
  • Nothing from the title, no non-free data pointers (hard constraints)
**@⁠TheRifai** on GitHub · 2026-12-01 22:28 UTC · [original](https://github.com/vktory6/VKtory/pull/152) `TheRifai:mip-view-count` → `main` · +10 −1 · 3 files · 3 commits · merged 2026-12-02 15:57 UTC ## What First step of docs/TASKS.md "Linear textures with mipmaps are not bound in place", added after PR #137's probe: count SRVs of console-linear textures with mips by how many levels they name — one level or several — on the stats line (`mip-linear views: one level N, several M`). No behaviour change. ## The reference The console's linear mips are packed smallest-first with 256-byte row padding; a Vulkan linear image cannot match that chain (PR #137: 0 of 6 shapes matched). The task asks whether views name one level (split images could work) or several (they cannot). ## Evidence - `cargo check -p vkback --all-targets`, 168 native tests, and the build all pass. - House start, 95 s, GE-Proton11-16: `mip-linear views: one level 0, several 1433`. - Boat start, 95 s: `one level 0, several 1452`. - So essentially every view of a mipmapped linear texture names several levels. The split shapes (level-0 image in place + copied mips, or one image per level) cannot serve them, because a Vulkan image view samples levels of one image only. The copy stays unless one image's level layout can match the console's. - Runs: `/tmp/opencode/capture/mip-views-house/`, `/tmp/opencode/capture/mip-views-boat/`. Not performance measurements. ## Checklist (docs/AGENTS.md) - [x] One topic; `docs/TASKS.md` not edited (rule 29/31) - [x] No fallback, constant, switch, queue, `unsafe` or translator output changed (rules 2/9b/33/35/36/27) - [x] Comments say what is true now (rule 3) - [x] Nothing from the title, no non-free data pointers (hard constraints)
First step of the mipmapped-linear task added after PR #137: count SRVs of console-linear textures with mips by how many levels each view names (one vs several). House and boat runs both show 0 views of a single level and ~1,440 views of several levels, so the split shapes (level-0 in place + copied mips, or one image per level) cannot serve these views; the copy stays until one Vulkan image can match the console's per-level 256-byte row pitch. No behaviour change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 22:28:23 +00:00
github-bot changed target branch from main to gh-pr/152/base 2026-12-02 16:01:59 +00:00
github manually merged commit 201a1fb338 into gh-pr/152/base 2026-12-02 16:02:03 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-02 15:57 UTC · original

Merged, thanks. Two changes on your branch first: the counter now lives in the in-place texture stats (InPlace in imgmake.rs), which kept lib.rs inside its size limit, and I merged main into it (one conflict in the same struct). Tests and policy pass.

**@⁠vktory6** on GitHub · 2026-12-02 15:57 UTC · [original](https://github.com/vktory6/VKtory/pull/152#issuecomment-7351217351) Merged, thanks. Two changes on your branch first: the counter now lives in the in-place texture stats (`InPlace` in imgmake.rs), which kept `lib.rs` inside its size limit, and I merged main into it (one conflict in the same struct). Tests and policy pass.
This discussion has been locked. Commenting is limited to contributors.
No description provided.