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

Open
opened 2026-11-28 07:44:31 +00:00 by Vladimir-Human · 3 comments
Vladimir-Human commented 2026-11-28 07:44:31 +00:00 (Migrated from github.com)
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by Vladimir-Human on 2026-11-28T07:44:31Z.


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).

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:6661365404 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/401). Originally posted by [Vladimir-Human](https://github.com/Vladimir-Human) on 2026-11-28T07:44:31Z. --- 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 commented 2026-11-28 15:22:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by Vladimir-Human on 2026-11-28T15:22:51Z.


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://github.com/TaynanGT/Vice-Tay/pull/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://github.com/TaynanGT/Vice-Tay/pull/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://github.com/TaynanGT/Vice-Tay/pull/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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7241422112 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/401#issuecomment-7241422112). Originally posted by [Vladimir-Human](https://github.com/Vladimir-Human) on 2026-11-28T15:22:51Z. --- 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://github.com/TaynanGT/Vice-Tay/pull/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://github.com/TaynanGT/Vice-Tay/pull/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://github.com/TaynanGT/Vice-Tay/pull/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.
TaynanGT commented 2026-11-29 11:36:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T11:36:01Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7255221828 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/401#issuecomment-7255221828). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-29T11:36:01Z. --- 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 commented 2026-11-30 17:00:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:00:39Z.


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?

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285577177 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/401#issuecomment-7285577177). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T17:00:39Z. --- `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?
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
TaynanGT/Vice-Tay#401
No description provided.