cleanup: remove six answered single-setting switches #81

Manually merged
github merged 3 commits from github-bot/gh-81 into gh-pr/81/base 2026-12-01 12:27:20 +00:00 AGit
Owner

@⁠TheRifai on GitHub · 2026-12-01 12:12 UTC · original
TheRifai:cleanup-dead-toggles → main · +21 −71 · 11 files · 3 commits · merged 2026-12-01 12:22 UTC

What

Six switches in docs/TASKS.md "Dead and answered toggles" had only one setting anyone used (their environment reads and inventory entries are gone): UMEM_BIND_COALESCE (on), VKB_ARENA_BLOCK_MB (256 MiB), VKB_CLEAR_CONVERT (on), VKB_HEAP_SLOTS (1,245,184), VKB_KEEP_DESTROYED (off) and VKB_LINEAR_INPLACE (on). They and the branches that preserved the old behaviour are removed, so the default path is now the only path:

  • coalescing replaces a pending bind of the same range unconditionally;
  • the arena block is the 256 MiB constant;
  • VKB_CLEAR_CONVERT no longer reads the environment: clear_convert is fixed to true, so clear values always go through color_value (the old off branch cleared integer images with float bits);
  • heap slots are the title's constant 1,245,184;
  • destroyed images are always retired (the graveyard field, init and drain are gone);
  • linear textures are always bound in place in live mode.

Their inventory entries are removed as well.

The reference

No console counterpart: these were our own A/B and stress switches, not console behaviour. The kept settings are the ones already used by every run; no new constant or default is introduced.

Evidence

  • tools/build.sh and cargo check --workspace --all-targets --locked in greenfield/ are clean.
  • cargo test -p umem -p frame -p vkback --lib --locked: 11 + 16 + 150 pass; cargo test -p vkback --test policy --locked: 6 pass (the inventory has no stale entries).
  • 120 s house-scene validation run with the Khronos layer (GE-Proton11-15, reference card): reached the world, only the four known VUIDs and the two known loud kinds. /tmp/opencode/capture/val-deadtoggles/runs/20261201-130858.
  • No frame-time A/B: the removed settings were the only ones used, so the default path is unchanged; the intermittent exit‑1 cut that run short.

Checklist (docs/AGENTS.md)

  • On current main, one topic (rule 31); docs/TASKS.md not edited, the fixed item named above (rule 29)
  • No fallback or second path: six switches and their unused branches are gone (rule 33)
  • Constants are the previously-used defaults, not tuned (rule 9b)
  • Every removed switch is deleted from the inventory too (rule 2)
  • No queues touched beyond the existing coalescing rule (rule 35)
  • No new unsafe (rule 36)
  • Build, check and native tests pass; no translator output change (rule 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 12:12 UTC · [original](https://github.com/vktory6/VKtory/pull/81) `TheRifai:cleanup-dead-toggles` → `main` · +21 −71 · 11 files · 3 commits · merged 2026-12-01 12:22 UTC ## What Six switches in `docs/TASKS.md` "Dead and answered toggles" had only one setting anyone used (their environment reads and inventory entries are gone): `UMEM_BIND_COALESCE` (on), `VKB_ARENA_BLOCK_MB` (256 MiB), `VKB_CLEAR_CONVERT` (on), `VKB_HEAP_SLOTS` (1,245,184), `VKB_KEEP_DESTROYED` (off) and `VKB_LINEAR_INPLACE` (on). They and the branches that preserved the old behaviour are removed, so the default path is now the only path: - coalescing replaces a pending bind of the same range unconditionally; - the arena block is the 256 MiB constant; - `VKB_CLEAR_CONVERT` no longer reads the environment: `clear_convert` is fixed to `true`, so clear values always go through `color_value` (the old off branch cleared integer images with float bits); - heap slots are the title's constant 1,245,184; - destroyed images are always retired (the `graveyard` field, init and drain are gone); - linear textures are always bound in place in live mode. Their inventory entries are removed as well. ## The reference No console counterpart: these were our own A/B and stress switches, not console behaviour. The kept settings are the ones already used by every run; no new constant or default is introduced. ## Evidence - `tools/build.sh` and `cargo check --workspace --all-targets --locked` in `greenfield/` are clean. - `cargo test -p umem -p frame -p vkback --lib --locked`: 11 + 16 + 150 pass; `cargo test -p vkback --test policy --locked`: 6 pass (the inventory has no stale entries). - 120 s house-scene validation run with the Khronos layer (GE-Proton11-15, reference card): reached the world, only the four known VUIDs and the two known loud kinds. `/tmp/opencode/capture/val-deadtoggles/runs/20261201-130858`. - No frame-time A/B: the removed settings were the only ones used, so the default path is unchanged; the intermittent exit‑1 cut that run short. ## Checklist (docs/AGENTS.md) - [x] On current `main`, one topic (rule 31); `docs/TASKS.md` not edited, the fixed item named above (rule 29) - [x] No fallback or second path: six switches and their unused branches are gone (rule 33) - [x] Constants are the previously-used defaults, not tuned (rule 9b) - [x] Every removed switch is deleted from the inventory too (rule 2) - [x] No queues touched beyond the existing coalescing rule (rule 35) - [x] No new `unsafe` (rule 36) - [x] Build, check and native tests pass; no translator output change (rule 27) - [x] Comments say what is true now (rule 3) - [x] Nothing from the title, no non-free data pointers (hard constraints)
UMEM_BIND_COALESCE (on), VKB_ARENA_BLOCK_MB (256 MiB), VKB_CLEAR_CONVERT (on),
VKB_HEAP_SLOTS (1,245,184), VKB_KEEP_DESTROYED (off) and VKB_LINEAR_INPLACE (on)
had one used setting each; their environment reads, inventory entries and
unused branches go. clear_convert stays as a field fixed to true, so the
clippy-rewritten clear/live hunks on main are left untouched.

Build, cargo check and all native tests pass; a 120 s validation run had only
the four known VUIDs and the two known loud kinds.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 12:16:35 +00:00
With VKB_HEAP_SLOTS gone, heap_slots() could only return Ok(1_245_184), and every caller kept an
error path that could not happen (rule 33). HEAP_SLOTS is a const with a const assertion against
RAW_TWIN; layout::make keeps its range check, since tools pass other counts. The Series S version's
heap fits it too (a run there sent nothing past a heap's end).
github-bot changed target branch from main to gh-pr/81/base 2026-12-01 12:27:19 +00:00
github manually merged commit c5a04c63f4 into gh-pr/81/base 2026-12-01 12:27:20 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-01 12:22 UTC · original

Merged, thanks! Each removal checked out: none of the six is a catalogued debugging tool, and the removal conditions written at their definitions are met. For UMEM_BIND_COALESCE that includes the open device-loss hunt (#75): that fault is in RADV's own window, on a page that was never bound, so the title-window binds aren't involved.

I pushed two commits to your branch first:

  • Main merged in (#80's probe also called heap_slots()).
  • heap_slots() is now layout::HEAP_SLOTS, a const with a compile-time check against RAW_TWIN. Without the switch it could only return Ok(1_245_184), and four callers kept error paths that could not happen (rule 33). layout::make keeps its range check, since tools pass other counts. The Series S version's heap fits the constant too: our Series S runs sent nothing past a heap's end.

Tests pass in both workspaces and clippy is clean. No validation run was needed: the used path is untouched (rule 30), and you ran one anyway. The task lists what is left (github.com/vktory6/VKtory@1cee55c).

**@⁠vktory6** on GitHub · 2026-12-01 12:22 UTC · [original](https://github.com/vktory6/VKtory/pull/81#issuecomment-7311049575) Merged, thanks! Each removal checked out: none of the six is a catalogued debugging tool, and the removal conditions written at their definitions are met. For `UMEM_BIND_COALESCE` that includes the open device-loss hunt (#75): that fault is in RADV's own window, on a page that was never bound, so the title-window binds aren't involved. I pushed two commits to your branch first: - **Main merged in** (#80's probe also called `heap_slots()`). - **`heap_slots()` is now `layout::HEAP_SLOTS`,** a const with a compile-time check against `RAW_TWIN`. Without the switch it could only return `Ok(1_245_184)`, and four callers kept error paths that could not happen (rule 33). `layout::make` keeps its range check, since tools pass other counts. The Series S version's heap fits the constant too: our Series S runs sent nothing past a heap's end. Tests pass in both workspaces and clippy is clean. No validation run was needed: the used path is untouched (rule 30), and you ran one anyway. The task lists what is left (https://github.com/vktory6/VKtory/commit/1cee55c).
This discussion has been locked. Commenting is limited to contributors.
No description provided.