victory-shader: RO-SRV/SLOT_STRIDES GVN+LICM, SLOT_SAMPLED dedup, branchless PORT_CBV, Wave32/BFE/RCP codegen & faster translation #3501

Closed
Rulemore wants to merge 10 commits from upstream-pr/3501 into main
Rulemore commented 2026-11-30 00:08:07 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Rulemore on 2026-11-30T00:08:07Z.


Summary

This PR collects self-contained victory-shader DXIL optimization, codegen, and translation-speed improvements targeting both GPU execution time and cold shader compilation latency, with zero changes outside crates/victory-shader/.

Key Changes

  1. Pure SLOT_STRIDES & Read-Only SRV GVN/LICM + Branchless PORT_CBV (crates/victory-shader/src/emit/bitcode/opt.rs, lower.rs, mod.rs)
    • Marks SLOT_STRIDES raw loads and read-only SRV buffer loads eligible for GVN and LICM, and ignores telemetry UAV writes (SLOT_SAMPLED / SLOT_FAULTS) plus wave/quad ops in has_resource_writes so enabling VICTORY_SAMPLED_MARKS=1 no longer disables RO-SRV GVN/LICM.
    • Emits branchless PORT_CBV s_buffer_load / diamond dispatch and adds LEGACY_PLAIN (bit 16) / TRIG_PLAIN (bit 32) flags under VICTORY_RDNA_FLOAT.
  2. SLOT_SAMPLED Dominator Deduplication & IR-Block Handle Reuse (crates/victory-shader/src/emit/lower.rs, lower/tests.rs)
    • Splitting self.cur inside mark_sampled previously invalidated self.handles (keyed by DXIL block) and re-emitted createHandleFromHeap + rawBufferLoad(SLOT_SAMPLED) + atomicBinOp on every texture tap — reaching up to 1,547 duplicate atomics in a single shader and 160+ in CS_lightAtlas_Sprite.
    • Adds ir_handles (keyed by IR block when guard_depth == 0) and marked_at + ir_dominates deduplication so each descriptor/index is marked at most once per dominating IR block while leaving per_lane waterfall handles free of wave ops.
  3. Native DXIL Ibfe/Ubfe & fdiv arcp Hardware Reciprocal (lower.rs, valu_tests.rs)
    • Lowers v_bfe/s_bfe directly to DXIL Ibfe/Ubfe intrinsics instead of shift/mask sequences.
    • Emits fdiv arcp for v_rcp_f32/f16 so DXC compiles to native hardware reciprocal instructions (MUFU.RCP on NVIDIA).
  4. Wave32 DXIL Codegen Improvements (lower.rs)
    • Gates meet tallies, uses waveIsFirstLane for uniform LDS stores, strided zero_meet_slots, fused exchange_halves_two, and leaner Wave32 ballots.
  5. Faster Shader Translation (bitcode.rs, opt.rs, shader.rs, structure.rs)
    • Replaces default SipHash with FxHash in hot compiler tables, caches Module metadata, uses allocation-free dx.op lookups, and removes unnecessary clones in opt and trace_ptr.

Measurements (RTX 4070 SUPER, 2560×1440, release build)

  • RO-SRV GVN/LICM + branchless PORT_CBV: −2.74 ms GPU overall (CS_Gather −44%).
  • SLOT_SAMPLED dominator deduplication (VICTORY_SAMPLED_MARKS=1): CS_lightAtlas_Sprite (2561af9577c47289) dropped from 105 ms → 2.12 ms (~50×); giant shaders dropped from 1,547 → ~140 atomicBinOp calls.

Verification

  • cargo test -p victory-shader --lib (including emit::lower::tests, emit::waterfall_tests, emit::bitcode::opt::tests, bfe_signed_and_unsigned_match_rdna2, rcp_arcp_matches_rdna2_accuracy_and_specials, and new unit test sampled_marks_dedup_across_dominating_blocks): 62 passed, 0 failed.
  • cargo xtask policy --staged: passed on all modified files.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5556636238 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3501). Originally posted by [Rulemore](https://github.com/Rulemore) on 2026-11-30T00:08:07Z. --- ## Summary This PR collects self-contained `victory-shader` DXIL optimization, codegen, and translation-speed improvements targeting both GPU execution time and cold shader compilation latency, with zero changes outside `crates/victory-shader/`. ### Key Changes 1. **Pure `SLOT_STRIDES` & Read-Only SRV GVN/LICM + Branchless `PORT_CBV` (`crates/victory-shader/src/emit/bitcode/opt.rs`, `lower.rs`, `mod.rs`)** - Marks `SLOT_STRIDES` raw loads and read-only SRV buffer loads eligible for GVN and LICM, and ignores telemetry UAV writes (`SLOT_SAMPLED` / `SLOT_FAULTS`) plus wave/quad ops in `has_resource_writes` so enabling `VICTORY_SAMPLED_MARKS=1` no longer disables RO-SRV GVN/LICM. - Emits branchless `PORT_CBV` `s_buffer_load` / diamond dispatch and adds `LEGACY_PLAIN` (bit 16) / `TRIG_PLAIN` (bit 32) flags under `VICTORY_RDNA_FLOAT`. 2. **`SLOT_SAMPLED` Dominator Deduplication & IR-Block Handle Reuse (`crates/victory-shader/src/emit/lower.rs`, `lower/tests.rs`)** - Splitting `self.cur` inside `mark_sampled` previously invalidated `self.handles` (keyed by DXIL block) and re-emitted `createHandleFromHeap` + `rawBufferLoad(SLOT_SAMPLED)` + `atomicBinOp` on every texture tap — reaching up to 1,547 duplicate atomics in a single shader and 160+ in `CS_lightAtlas_Sprite`. - Adds `ir_handles` (keyed by IR block when `guard_depth == 0`) and `marked_at` + `ir_dominates` deduplication so each descriptor/index is marked at most once per dominating IR block while leaving `per_lane` waterfall handles free of wave ops. 3. **Native DXIL `Ibfe`/`Ubfe` & `fdiv arcp` Hardware Reciprocal (`lower.rs`, `valu_tests.rs`)** - Lowers `v_bfe`/`s_bfe` directly to DXIL `Ibfe`/`Ubfe` intrinsics instead of shift/mask sequences. - Emits `fdiv arcp` for `v_rcp_f32`/`f16` so DXC compiles to native hardware reciprocal instructions (`MUFU.RCP` on NVIDIA). 4. **Wave32 DXIL Codegen Improvements (`lower.rs`)** - Gates meet tallies, uses `waveIsFirstLane` for uniform LDS stores, strided `zero_meet_slots`, fused `exchange_halves_two`, and leaner Wave32 ballots. 5. **Faster Shader Translation (`bitcode.rs`, `opt.rs`, `shader.rs`, `structure.rs`)** - Replaces default SipHash with `FxHash` in hot compiler tables, caches `Module` metadata, uses allocation-free `dx.op` lookups, and removes unnecessary clones in `opt` and `trace_ptr`. ### Measurements (RTX 4070 SUPER, 2560×1440, release build) - **RO-SRV GVN/LICM + branchless `PORT_CBV`:** **−2.74 ms GPU** overall (`CS_Gather` **−44%**). - **`SLOT_SAMPLED` dominator deduplication (`VICTORY_SAMPLED_MARKS=1`):** `CS_lightAtlas_Sprite` (`2561af9577c47289`) dropped from **105 ms → 2.12 ms (~50×)**; giant shaders dropped from **1,547 → ~140** `atomicBinOp` calls. ### Verification - `cargo test -p victory-shader --lib` (including `emit::lower::tests`, `emit::waterfall_tests`, `emit::bitcode::opt::tests`, `bfe_signed_and_unsigned_match_rdna2`, `rcp_arcp_matches_rdna2_accuracy_and_specials`, and new unit test `sampled_marks_dedup_across_dominating_blocks`): **62 passed, 0 failed**. - `cargo xtask policy --staged`: passed on all modified files.
davemathews12 commented 2026-11-30 05:08:26 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by davemathews12 on 2026-11-30T05:08:26Z.


I read the riskiest parts for correctness and found no bug:

  • v_bfe/s_bfe → Ubfe/Ibfe (7b2ee617):
    • s_bfe widths ≥ 32 (bits 22:16) keep the shift-only result through the full select, so DXIL's 5-bit width masking never applies to them.
    • Unsigned: Ubfe gives src >> off when w + off ≥ 32, which equals the masked hardware result.
    • Signed: clamping the width to 32 − off takes Ibfe's arithmetic-shift branch, which matches RDNA2 extending from bit 31.
    • Width 0 gives 0 in both.
  • fdiv arcp for v_rcp_* (d1c205c0):
    • The flag is 1 << 4, LLVM 3.7's AllowReciprocal.
    • It is encoded with the SDIV binop code, which LLVM uses for fdiv on float types.
    • The GVN key is distinct from plain fdiv (0x80 | SDiv), so an approximate division is never merged with an exact one.
    • Only v_rcp_f32, v_rcp_iflag_f32 and v_rcp_f16 use it.
  • Type and constant caches (010c12d): constants and types are append-only. prune and the other passes rewrite control flow and phi inputs but never remove or renumber a V::Const or a type, so the cached ids cannot go stale. dx_op caching by bare name matches the old full-name lookup.
  • LICM of read-only SRV loads (9830be7c):
    • Resource loads are hoisted only when guaranteed (they execute on every loop entry, with the same lanes, before any discard).
    • is_speculatable_pure_call lists only arithmetic, so no speculative descriptor or buffer read can be introduced.
    • SRV loads count as pure only when the shader writes no resource except the runtime's own telemetry UAVs.
  • Bools::vars: the quadratic Vec::contains becomes sets, and the order of the returned variables is preserved. In a profile of synthetic programs on main, Bools::vars was among the top self-cost entries, so this is a real fix.

Measured by me on synthetic programs only:

  • On 16 programs (straight-line and EXEC-narrowing, 250–2000 instructions, wave32 pixel shaders), #3501 gave byte-identical DXIL to main.
  • In a callgrind profile of main on such programs, SipHash was ≈40% of all translation instructions, almost all of it the opt::Key tables this PR moves to FxMap.

Not reviewed: the Wave32 codegen commit (04d91440) and the SLOT_SAMPLED commits (2d113517, c2ab0192).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7269389679 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3501#issuecomment-7269389679). Originally posted by [davemathews12](https://github.com/davemathews12) on 2026-11-30T05:08:26Z. --- I read the riskiest parts for correctness and **found no bug**: - **`v_bfe`/`s_bfe` → `Ubfe`/`Ibfe` (7b2ee617):** - `s_bfe` widths ≥ 32 (bits 22:16) keep the shift-only result through the `full` select, so DXIL's 5-bit width masking never applies to them. - Unsigned: `Ubfe` gives `src >> off` when `w + off ≥ 32`, which equals the masked hardware result. - Signed: clamping the width to `32 − off` takes `Ibfe`'s arithmetic-shift branch, which matches RDNA2 extending from bit 31. - Width 0 gives 0 in both. - **`fdiv arcp` for `v_rcp_*` (d1c205c0):** - The flag is `1 << 4`, LLVM 3.7's `AllowReciprocal`. - It is encoded with the `SDIV` binop code, which LLVM uses for `fdiv` on float types. - The GVN key is distinct from plain `fdiv` (`0x80 | SDiv`), so an approximate division is never merged with an exact one. - Only `v_rcp_f32`, `v_rcp_iflag_f32` and `v_rcp_f16` use it. - **Type and constant caches (010c12d):** constants and types are append-only. `prune` and the other passes rewrite control flow and phi inputs but never remove or renumber a `V::Const` or a type, so the cached ids cannot go stale. `dx_op` caching by bare name matches the old full-name lookup. - **LICM of read-only SRV loads (9830be7c):** - Resource loads are hoisted only when `guaranteed` (they execute on every loop entry, with the same lanes, before any discard). - `is_speculatable_pure_call` lists only arithmetic, so no speculative descriptor or buffer read can be introduced. - SRV loads count as pure only when the shader writes no resource except the runtime's own telemetry UAVs. - **`Bools::vars`:** the quadratic `Vec::contains` becomes sets, and the order of the returned variables is preserved. In a profile of synthetic programs on `main`, `Bools::vars` was among the top self-cost entries, so this is a real fix. Measured by me on synthetic programs only: - On 16 programs (straight-line and EXEC-narrowing, 250–2000 instructions, wave32 pixel shaders), #3501 gave **byte-identical DXIL to `main`**. - In a callgrind profile of `main` on such programs, SipHash was ≈40% of all translation instructions, almost all of it the `opt::Key` tables this PR moves to `FxMap`. Not reviewed: the Wave32 codegen commit (04d91440) and the SLOT_SAMPLED commits (2d113517, c2ab0192).
davemathews12 commented 2026-11-30 05:11:20 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by davemathews12 on 2026-11-30T05:11:20Z.


I read the riskiest parts for correctness and found no bug:

  • v_bfe/s_bfe → Ubfe/Ibfe (7b2ee617):
    • s_bfe widths ≥ 32 (bits 22:16) keep the shift-only result through the full select, so DXIL's 5-bit width masking never applies to them.
    • Unsigned: Ubfe gives src >> off when w + off ≥ 32, which equals the masked hardware result.
    • Signed: clamping the width to 32 − off takes Ibfe's arithmetic-shift branch, which matches RDNA2 extending from bit 31.
    • Width 0 gives 0 in both.
  • fdiv arcp for v_rcp_* (d1c205c0):
    • The flag is 1 << 4, LLVM 3.7's AllowReciprocal.
    • It is encoded with the SDIV binop code, which LLVM uses for fdiv on float types.
    • The GVN key is distinct from plain fdiv (0x80 | SDiv), so an approximate division is never merged with an exact one.
    • Only v_rcp_f32, v_rcp_iflag_f32 and v_rcp_f16 use it.
  • Type and constant caches (010c12d): constants and types are append-only. prune and the other passes rewrite control flow and phi inputs but never remove or renumber a V::Const or a type, so the cached ids cannot go stale. dx_op caching by bare name matches the old full-name lookup.
  • LICM of read-only SRV loads (9830be7c):
    • Resource loads are hoisted only when guaranteed (they execute on every loop entry, with the same lanes, before any discard).
    • is_speculatable_pure_call lists only arithmetic, so no speculative descriptor or buffer read can be introduced.
    • SRV loads count as pure only when the shader writes no resource except the runtime's own telemetry UAVs.
  • Bools::vars: the quadratic Vec::contains becomes sets, and the order of the returned variables is preserved. In a profile of synthetic programs on main, Bools::vars was among the top self-cost entries, so this is a real fix.

Measured by me on synthetic programs only:

  • On 16 programs (straight-line and EXEC-narrowing, 250–2000 instructions, wave32 pixel shaders), #3501 gave byte-identical DXIL to main.
  • In a callgrind profile of main on such programs, SipHash was ≈40% of all translation instructions, almost all of it the opt::Key tables this PR moves to FxMap.

Not reviewed: the Wave32 codegen commit (04d91440) and the SLOT_SAMPLED commits (2d113517, c2ab0192).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7269432757 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3501#issuecomment-7269432757). Originally posted by [davemathews12](https://github.com/davemathews12) on 2026-11-30T05:11:20Z. --- I read the riskiest parts for correctness and **found no bug**: - **`v_bfe`/`s_bfe` → `Ubfe`/`Ibfe` (7b2ee617):** - `s_bfe` widths ≥ 32 (bits 22:16) keep the shift-only result through the `full` select, so DXIL's 5-bit width masking never applies to them. - Unsigned: `Ubfe` gives `src >> off` when `w + off ≥ 32`, which equals the masked hardware result. - Signed: clamping the width to `32 − off` takes `Ibfe`'s arithmetic-shift branch, which matches RDNA2 extending from bit 31. - Width 0 gives 0 in both. - **`fdiv arcp` for `v_rcp_*` (d1c205c0):** - The flag is `1 << 4`, LLVM 3.7's `AllowReciprocal`. - It is encoded with the `SDIV` binop code, which LLVM uses for `fdiv` on float types. - The GVN key is distinct from plain `fdiv` (`0x80 | SDiv`), so an approximate division is never merged with an exact one. - Only `v_rcp_f32`, `v_rcp_iflag_f32` and `v_rcp_f16` use it. - **Type and constant caches (010c12d):** constants and types are append-only. `prune` and the other passes rewrite control flow and phi inputs but never remove or renumber a `V::Const` or a type, so the cached ids cannot go stale. `dx_op` caching by bare name matches the old full-name lookup. - **LICM of read-only SRV loads (9830be7c):** - Resource loads are hoisted only when `guaranteed` (they execute on every loop entry, with the same lanes, before any discard). - `is_speculatable_pure_call` lists only arithmetic, so no speculative descriptor or buffer read can be introduced. - SRV loads count as pure only when the shader writes no resource except the runtime's own telemetry UAVs. - **`Bools::vars`:** the quadratic `Vec::contains` becomes sets, and the order of the returned variables is preserved. In a profile of synthetic programs on `main`, `Bools::vars` was among the top self-cost entries, so this is a real fix. Measured by me on synthetic programs only: - On 16 programs (straight-line and EXEC-narrowing, 250–2000 instructions, wave32 pixel shaders), #3501 gave **byte-identical DXIL to `main`**. - In a callgrind profile of `main` on such programs, SipHash was ≈40% of all translation instructions, almost all of it the `opt::Key` tables this PR moves to `FxMap`. Not reviewed: the Wave32 codegen commit (04d91440) and the SLOT_SAMPLED commits (2d113517, c2ab0192).
ExoCalibra commented 2026-11-30 11:00:25 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ExoCalibra on 2026-11-30T11:00:25Z.


Found an NVIDIA D3D12 PSO compilation regression in d1c205c0 when testing #3501 against full in-game shaders on an RTX 3080 Ti (SM 6.8 Wave32), and opened a fix PR directly against Rulemore/VIctory-NVIDIA:pr/shader-opt:

Symptom & Bisection

With this branch enabled (VICTORY_SHADER_OPT=255), dxil.dll / dxv.exe validates cleanly, but NVIDIA's D3D12 compiler rejects all 15 simulated hair strand interpolation compute shaders (smh_gen_{129,130,132,144,193,194,196,208,385,386,388,400,449,450,464}:CS_InterpolateStrands_94d04887_Wrapped, e.g. #8080af82aaac33df, #f7c4f227a2a4c4b2, #a68c4b8fc7bc4b5c) inside CreateComputePipelineState with E_OUTOFMEMORY (0x8007000E), silently dropping dynamic hair simulation in-game.

Bisected with victory.exe translate --validate --pipelines:

  • VICTORY_SHADER_OPT=127 (LICM off): 15 / 15 CS_InterpolateStrands pipelines created.
  • VICTORY_SHADER_OPT=255 (LICM on): 0 / 15 created (0x8007000E on all 15).

Root Cause & Fix

In crates/victory-shader/src/emit/bitcode/opt.rs, d1c205c0 added | Op::FDivArcp(..) to the unconditional true arm of opt::Module::can_hoist(). Previously, v_rcp_* lowered via Op::Bin(Bin::SDiv, ..), whose can_hoist check (self.int_k(*rhs).is_some_and(...)) always returned false for floats, so LICM never hoisted float divisions. Allowing Op::FDivArcp in can_hoist lets LICM speculatively hoist fdiv arcp float 1.0, %x out of a guarded fcmp oeq float 0.0, %x branch inside a loop into the loop preheader, which triggers NVIDIA's 0x8007000E failure on those large compute shaders.

Returning false for Op::FDivArcp(..) in can_hoist() keeps fdiv arcp → MUFU.RCP lowering and GVN (REUSE) intact while restoring pre-d1c205c0 LICM behavior:

Op::FDivArcp(..) => false,

Verification (with https://github.com/Rulemore/VIctory-NVIDIA/pull/1)

  • cargo test -p victory-shader --locked opt::tests -- --test-threads=1: 28 passed, 0 failed (including new licm_does_not_hoist_fdiv_arcp_out_of_loop).
  • cargo test -p victory-shader --locked rcp_arcp -- --test-threads=1: 1 passed, 0 failed.
  • Full RTX 3080 Ti D3D12 PSO sweep (--validate --pipelines, VICTORY_SHADER_OPT=255): 15 / 15 CS_InterpolateStrands pipelines created, 3,945 / 3,945 in-game shaders (779/779 compute, 1,134/1,134 mesh, 2,032/2,032 vertex/pixel) compiled with 0 refusals; verified in-game with intact hair simulation and 0 refused PSOs.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7276397717 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3501#issuecomment-7276397717). Originally posted by [ExoCalibra](https://github.com/ExoCalibra) on 2026-11-30T11:00:25Z. --- Found an NVIDIA D3D12 PSO compilation regression in `d1c205c0` when testing `#3501` against full in-game shaders on an RTX 3080 Ti (SM 6.8 Wave32), and opened a fix PR directly against `Rulemore/VIctory-NVIDIA:pr/shader-opt`: - **Fix PR (1-line fix + regression test):** https://github.com/Rulemore/VIctory-NVIDIA/pull/1 ### Symptom & Bisection With this branch enabled (`VICTORY_SHADER_OPT=255`), `dxil.dll` / `dxv.exe` validates cleanly, but NVIDIA's D3D12 compiler rejects all **15** simulated hair strand interpolation compute shaders (`smh_gen_{129,130,132,144,193,194,196,208,385,386,388,400,449,450,464}:CS_InterpolateStrands_94d04887_Wrapped`, e.g. `#8080af82aaac33df`, `#f7c4f227a2a4c4b2`, `#a68c4b8fc7bc4b5c`) inside `CreateComputePipelineState` with `E_OUTOFMEMORY` (`0x8007000E`), silently dropping dynamic hair simulation in-game. Bisected with `victory.exe translate --validate --pipelines`: - `VICTORY_SHADER_OPT=127` (`LICM` off): **15 / 15** `CS_InterpolateStrands` pipelines created. - `VICTORY_SHADER_OPT=255` (`LICM` on): **0 / 15** created (`0x8007000E` on all 15). ### Root Cause & Fix In `crates/victory-shader/src/emit/bitcode/opt.rs`, `d1c205c0` added `| Op::FDivArcp(..)` to the unconditional `true` arm of `opt::Module::can_hoist()`. Previously, `v_rcp_*` lowered via `Op::Bin(Bin::SDiv, ..)`, whose `can_hoist` check (`self.int_k(*rhs).is_some_and(...)`) always returned `false` for floats, so `LICM` never hoisted float divisions. Allowing `Op::FDivArcp` in `can_hoist` lets `LICM` speculatively hoist `fdiv arcp float 1.0, %x` out of a guarded `fcmp oeq float 0.0, %x` branch inside a loop into the loop preheader, which triggers NVIDIA's `0x8007000E` failure on those large compute shaders. Returning `false` for `Op::FDivArcp(..)` in `can_hoist()` keeps `fdiv arcp` → `MUFU.RCP` lowering and GVN (`REUSE`) intact while restoring pre-`d1c205c0` LICM behavior: ```rust Op::FDivArcp(..) => false, ``` ### Verification (with https://github.com/Rulemore/VIctory-NVIDIA/pull/1) - `cargo test -p victory-shader --locked opt::tests -- --test-threads=1`: **28 passed, 0 failed** (including new `licm_does_not_hoist_fdiv_arcp_out_of_loop`). - `cargo test -p victory-shader --locked rcp_arcp -- --test-threads=1`: **1 passed, 0 failed**. - Full RTX 3080 Ti D3D12 PSO sweep (`--validate --pipelines`, `VICTORY_SHADER_OPT=255`): **15 / 15** `CS_InterpolateStrands` pipelines created, **3,945 / 3,945** in-game shaders (**779/779** compute, **1,134/1,134** mesh, **2,032/2,032** vertex/pixel) compiled with **0 refusals**; verified in-game with intact hair simulation and 0 refused PSOs.
davemathews12 commented 2026-11-30 15:46:22 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by davemathews12 on 2026-11-30T15:46:22Z.


Good catch @ExoCalibra. I checked fdiv arcp and the LICM guards separately and missed how they combine (FDivArcp hoisted by can_hoist). Your fix and the in-game check (3,945/3,945 shaders, 0 refused PSOs) cover it. Thanks.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7283558793 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3501#issuecomment-7283558793). Originally posted by [davemathews12](https://github.com/davemathews12) on 2026-11-30T15:46:22Z. --- Good catch @ExoCalibra. I checked `fdiv arcp` and the LICM guards separately and missed how they combine (`FDivArcp` hoisted by `can_hoist`). Your fix and the in-game check (3,945/3,945 shaders, 0 refused PSOs) cover it. Thanks.
trustno1-coder commented 2026-12-01 18:51:39 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:51:39Z.


Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321690706 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3501#issuecomment-7321690706). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:51:39Z. --- Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

Sign in to join this conversation.
No reviewers
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
trustno1-coder/VIctory-NVIDIA!3501
No description provided.