Proposal (up for grabs): native SM 6.2 half/i16, SamplerDescriptorHeap/sharded PSO, and startup hardware autotune #401

Open
opened 2026-11-28 07:51:01 +00:00 by github-bot · 3 comments
Owner

@⁠Vladimir-Human on GitHub · 2026-11-28 07:44 UTC · original

We are nearing the end of our current AI quota budget and have wrapped up rebases/fixes for our 21 open PRs (#193–#299). Before pausing, we want to share 3 larger unbuilt architecture items ("Wave 8B") as concise specs for anyone in the community (or after Nov 30) who would like to pick any of them up:


1. Native SM 6.2 half / i16 (NativeLowPrecision, SFI0 1 << 23) in victory-shader

  • Problem: Converted FP16 shaders currently widen/emulate via legacyF16ToF32 / F32ToF16, inflating DXIL IR size and VGPR pressure on cold/live runs.
  • Suggested direction:
    • Emit TypeDef::Half (bitcode.rs) and native 16-bit arithmetic (lower.rs) strictly gated behind device D3D12_FEATURE_DATA_D3D12_OPTIONS4::Native16BitShaderOpsSupported (RDNA2+, Turing+, Arc).
    • Keep strict validation (victory-shader DXIL validator clean) and verify shader output parity against WARP and real hardware across NVIDIA, AMD, and Intel before enabling by default (highest risk of driver/visual quirks, so gate opt-in first).

2. Full SamplerDescriptorHeap[] + Sharded PSO Library

  • Problem: Static samplers inside root signatures can trigger monolithic PSO library misses/recompiles on NVIDIA (allows_static_samplers), while a single monolithic host-pipelines.bin grows large and rewrites whole-file snapshots.
  • Note: PR #395 (static sampler slot ordering, similar to fxceless/victory-fork@9e90746) already tackles deterministic driver table slots cleanly with small blast radius; migrating to full SamplerDescriptorHeap[] indirection + sharded PSDB files is the longer-term architectural step once smaller PRs settle.

3. Startup Hardware autotune Probe & Profile Config (victory-core)

  • Problem: Tuning relies on hundreds of manual VICTORY_* environment variables and static launch presets that do not adapt to low-RAM laptops, APU/UMA systems, hybrid P/E-core topologies, or 4–8 GB VRAM cards.
  • Suggested direction:
    • ~200 ms startup hardware probe reading DXGI adapter/VRAM budget, ReBAR availability, D3D12_FEATURE_DATA_ARCHITECTURE1 UMA flags, display-output LUID affinity, and CPU P/E-core or CCD layout, generating an inspectable config file (e.g. victory.toml) while keeping explicit env vars highest priority.
    • Note: our rebased opt-in multi-GPU scorer / diagnostic UMA branch (Vladimir-Human/Vice-Tay:feat/smart-adapter-uma-optin) and pre-TDR driver event watch (Vladimir-Human/Vice-Tay:feat/optin-driver-watch, ported opt-in from fxceless/victory-fork@a7ee5df) are staged on our fork once development resumes.

Feel free to claim any piece independently (#1, #2, or #3).

**@⁠Vladimir-Human** on GitHub · 2026-11-28 07:44 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/401) We are nearing the end of our current AI quota budget and have wrapped up rebases/fixes for our 21 open PRs (`#193`–`#299`). Before pausing, we want to share **3 larger unbuilt architecture items ("Wave 8B")** as concise specs for anyone in the community (or after Nov 30) who would like to pick any of them up: --- ### 1. Native SM 6.2 `half` / `i16` (`NativeLowPrecision`, SFI0 `1 << 23`) in `victory-shader` - **Problem:** Converted FP16 shaders currently widen/emulate via `legacyF16ToF32` / `F32ToF16`, inflating DXIL IR size and VGPR pressure on cold/live runs. - **Suggested direction:** - Emit `TypeDef::Half` (`bitcode.rs`) and native 16-bit arithmetic (`lower.rs`) strictly gated behind device `D3D12_FEATURE_DATA_D3D12_OPTIONS4::Native16BitShaderOpsSupported` (RDNA2+, Turing+, Arc). - Keep strict validation (`victory-shader` DXIL validator clean) and verify shader output parity against WARP and real hardware across NVIDIA, AMD, and Intel before enabling by default (highest risk of driver/visual quirks, so gate opt-in first). ### 2. Full `SamplerDescriptorHeap[]` + Sharded PSO Library - **Problem:** Static samplers inside root signatures can trigger monolithic PSO library misses/recompiles on NVIDIA (`allows_static_samplers`), while a single monolithic `host-pipelines.bin` grows large and rewrites whole-file snapshots. - **Note:** PR `#395` (static sampler slot ordering, similar to `fxceless/victory-fork@9e90746`) already tackles deterministic driver table slots cleanly with small blast radius; migrating to full `SamplerDescriptorHeap[]` indirection + sharded PSDB files is the longer-term architectural step once smaller PRs settle. ### 3. Startup Hardware `autotune` Probe & Profile Config (`victory-core`) - **Problem:** Tuning relies on hundreds of manual `VICTORY_*` environment variables and static launch presets that do not adapt to low-RAM laptops, APU/UMA systems, hybrid P/E-core topologies, or 4–8 GB VRAM cards. - **Suggested direction:** - ~200 ms startup hardware probe reading DXGI adapter/VRAM budget, ReBAR availability, `D3D12_FEATURE_DATA_ARCHITECTURE1` UMA flags, display-output LUID affinity, and CPU P/E-core or CCD layout, generating an inspectable config file (e.g. `victory.toml`) while keeping explicit env vars highest priority. - Note: our rebased opt-in multi-GPU scorer / diagnostic UMA branch (`Vladimir-Human/Vice-Tay:feat/smart-adapter-uma-optin`) and pre-TDR driver event watch (`Vladimir-Human/Vice-Tay:feat/optin-driver-watch`, ported opt-in from `fxceless/victory-fork@a7ee5df`) are staged on our fork once development resumes. Feel free to claim any piece independently (`#1`, `#2`, or `#3`).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 07:51:01 +00:00
Author
Owner

@⁠Vladimir-Human on GitHub · 2026-11-28 15:22 UTC · original

Update: we built, verified, and opened standalone strictly opt-in (default 0) PRs on TaynanGT/Vice-Tay covering the three architecture tracks above:

  1. Native SM 6.2 half foundation (VICTORY_NATIVE_FP16=1): #420 (Native16BitShaderOpsSupported gated, dxil.dll validator + HW/WARP parity tests pass, byte-identical baseline when OFF).
  2. Sharded PSO Library (VICTORY_SHARDED_PSO=1): #419 (64 lazy shards, dirty-only atomic flush, corrupt-shard isolation; HW/WARP pipeline:: 58/58).
    • Remaining SamplerDescriptorHeap[] indirection roadmap for a dedicated follow-up PR: pipeline/host.rs:571-597,1039-1049 (direct indexing enabled -> replace static declarations with runtime bindings), emit/shader.rs:465-489,567-595 & emit/sampler.rs:36-93 (heap handles + filter/LOD/border), list.rs:1711-1713 / draw.rs:1788-1848 / descriptor/host.rs:1818-1835 (shared heap without colliding with slot 2047), replay/record.rs capture, and shader_cache.rs / pipeline/library.rs ABI rekeying + cold NVIDIA reload parity.
  3. Startup Hardware autotune & victory.toml (VICTORY_AUTOTUNE=1): #418 (DXGI VRAM/ReBAR/UMA/LUID + P/E/NUMA/L3 topology probe, strict VICTORY_* env override precedence, UMA auto-enable kept disabled per Radeon 8060S finding; victory-core 15/15, HW/WARP 14/14).

Runtime A/B gameplay profiling on real titles remains for maintainers once PRs settle.

**@⁠Vladimir-Human** on GitHub · 2026-11-28 15:22 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/401#issuecomment-7241422112) Update: we built, verified, and opened standalone strictly opt-in (`default 0`) PRs on `TaynanGT/Vice-Tay` covering the three architecture tracks above: 1. **Native SM 6.2 `half` foundation (`VICTORY_NATIVE_FP16=1`):** https://git.gtahub.st/github/TaynanGT--Vice-Tay/pulls/420 (`Native16BitShaderOpsSupported` gated, `dxil.dll` validator + HW/WARP parity tests pass, byte-identical baseline when OFF). 2. **Sharded PSO Library (`VICTORY_SHARDED_PSO=1`):** https://git.gtahub.st/github/TaynanGT--Vice-Tay/pulls/419 (64 lazy shards, dirty-only atomic flush, corrupt-shard isolation; HW/WARP `pipeline::` 58/58). - *Remaining `SamplerDescriptorHeap[]` indirection roadmap for a dedicated follow-up PR:* `pipeline/host.rs:571-597,1039-1049` (direct indexing enabled -> replace static declarations with runtime bindings), `emit/shader.rs:465-489,567-595` & `emit/sampler.rs:36-93` (heap handles + filter/LOD/border), `list.rs:1711-1713` / `draw.rs:1788-1848` / `descriptor/host.rs:1818-1835` (shared heap without colliding with slot 2047), `replay/record.rs` capture, and `shader_cache.rs` / `pipeline/library.rs` ABI rekeying + cold NVIDIA reload parity. 3. **Startup Hardware `autotune` & `victory.toml` (`VICTORY_AUTOTUNE=1`):** https://git.gtahub.st/github/TaynanGT--Vice-Tay/pulls/418 (DXGI VRAM/ReBAR/UMA/LUID + P/E/NUMA/L3 topology probe, strict `VICTORY_*` env override precedence, UMA auto-enable kept disabled per Radeon 8060S finding; `victory-core` 15/15, HW/WARP 14/14). Runtime A/B gameplay profiling on real titles remains for maintainers once PRs settle.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-29 11:36 UTC · original

Thanks for splitting the three architecture tracks into #418, #419 and #420. The RTX 3080 results on native FP16 argue against enabling it by default. Keep the sampler-heap ABI work independent, with replay and cache-key compatibility explicitly covered.

**@⁠TaynanGT** on GitHub · 2026-11-29 11:36 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/401#issuecomment-7255221828) Thanks for splitting the three architecture tracks into #418, #419 and #420. The RTX 3080 results on native FP16 argue against enabling it by default. Keep the sampler-heap ABI work independent, with replay and cache-key compatibility explicitly covered.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 17:00 UTC · original

main has moved to a new line of the code and everything is now named Vice-Tay: vice-tay.exe play, and VICE_TAY_* switches instead of VICTORY_* (details in #468). Could you check whether this still happens on the current main and say so here, with a log if you can?

**@⁠TaynanGT** on GitHub · 2026-11-30 17:00 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/401#issuecomment-7285577177) `main` has moved to a new line of the code and everything is now named Vice-Tay: `vice-tay.exe play`, and `VICE_TAY_*` switches instead of `VICTORY_*` (details in #468). Could you check whether this still happens on the current `main` and say so here, with a log if you can?
This discussion has been locked. Commenting is limited to contributors.
No description provided.