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

Open
opened 2026-11-28 07:56:33 +00:00 by Vladimir-Human · 1 comment
Vladimir-Human commented 2026-11-28 07:56:33 +00:00 (Migrated from github.com)
Contributor

Imported from LooperSalty/AnyXboxX. Originally posted by Vladimir-Human on 2026-11-28T07:56:33Z.


We have wrapped up rebases and review updates on our open memory/texture PRs (#347, #350 Part 1, #354, #555) and opened two compact opt-in upstream ports from xceless/victory-fork:

Because we are nearing the end of our current AI quota budget, we want to leave concise specs for the remaining 3 larger unbuilt engineering items for anyone in the community interested in picking them up:


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

  • Goal: Emit native TypeDef::Half (itcode.rs) and 16-bit ALU operations (lower.rs) when D3D12_FEATURE_DATA_D3D12_OPTIONS4::Native16BitShaderOpsSupported is available (RDNA2+, Turing+, Arc), avoiding legacyF16ToF32 / F32ToF16 widening and register pressure.
  • Note: Highest visual/compiler-crash risk across drivers, so gate strictly opt-in behind an env switch until DXIL validator + multi-vendor in-game visual parity checks are clean.

2. Full SamplerDescriptorHeap[] + Sharded Pipeline Library

  • Goal: Complement #577 (pipeline/sampler_order.rs) long-term by moving static samplers into a sampler descriptor heap / minimal root signatures and sharding monolithic PSO library files so multi-sampler pipelines never depend on driver table slot indices or rewrite whole cache files.
  • Gate: Measure cold/warm PSO hit rate and frame-time A/B against #577.

3. Startup Hardware Probe / Autotune (victory-core / launcher presets)

  • Goal: Replace manual tuning of VICTORY_* environment variables with a fast (~200 ms) startup probe over DXGI VRAM budget, ReBAR support, D3D12_FEATURE_DATA_ARCHITECTURE1 UMA flags, output LUID affinity, and CPU P/E-core or CCD layout, writing inspectable defaults while letting explicit env vars override.

Feel free to claim any of #1–#3 independently.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:6661512849 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/issues/579). Originally posted by [Vladimir-Human](https://github.com/Vladimir-Human) on 2026-11-28T07:56:33Z. --- We have wrapped up rebases and review updates on our open memory/texture PRs (#347, #350 Part 1, #354, #555) and opened two compact opt-in upstream ports from xceless/victory-fork: - #577 — opt-in persistent static sampler ordering (VICTORY_SAMPLER_ORDER=1, default OFF) - https://github.com/LooperSalty/AnyXboxX/pull/578 — opt-in display-driver EventLog watch before TDR (VICTORY_DRIVER_WATCH=1, default OFF) Because we are nearing the end of our current AI quota budget, we want to leave concise specs for the remaining **3 larger unbuilt engineering items** for anyone in the community interested in picking them up: --- ### 1. Native SM 6.2 `half` / `i16` (`NativeLowPrecision`, SFI0 `1 << 23`) in `victory-shader` - **Goal:** Emit native TypeDef::Half (itcode.rs) and 16-bit ALU operations (lower.rs) when D3D12_FEATURE_DATA_D3D12_OPTIONS4::Native16BitShaderOpsSupported is available (RDNA2+, Turing+, Arc), avoiding legacyF16ToF32 / F32ToF16 widening and register pressure. - **Note:** Highest visual/compiler-crash risk across drivers, so gate strictly opt-in behind an env switch until DXIL validator + multi-vendor in-game visual parity checks are clean. ### 2. Full `SamplerDescriptorHeap[]` + Sharded Pipeline Library - **Goal:** Complement #577 (pipeline/sampler_order.rs) long-term by moving static samplers into a sampler descriptor heap / minimal root signatures and sharding monolithic PSO library files so multi-sampler pipelines never depend on driver table slot indices or rewrite whole cache files. - **Gate:** Measure cold/warm PSO hit rate and frame-time A/B against #577. ### 3. Startup Hardware Probe / Autotune (`victory-core` / launcher presets) - **Goal:** Replace manual tuning of VICTORY_* environment variables with a fast (~200 ms) startup probe over DXGI VRAM budget, ReBAR support, D3D12_FEATURE_DATA_ARCHITECTURE1 UMA flags, output LUID affinity, and CPU P/E-core or CCD layout, writing inspectable defaults while letting explicit env vars override. Feel free to claim any of #1–#3 independently.
Vladimir-Human commented 2026-11-28 15:22:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LooperSalty/AnyXboxX. Originally posted by Vladimir-Human on 2026-11-28T15:22:54Z.


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:LooperSalty/AnyXboxX:comment:7241422749 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/issues/579#issuecomment-7241422749). Originally posted by [Vladimir-Human](https://github.com/Vladimir-Human) on 2026-11-28T15:22:54Z. --- 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.
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
LooperSalty/AnyXboxX#579
No description provided.