shader/lower: prioritize zero operands over q_nan in v_div_fixup_f32 #32

Closed
github-bot wants to merge 1 commit from gh-pr/32/head into gh-pr/32/base
Owner

@⁠Androtim on GitHub · 2026-11-28 09:54 UTC · original
Androtim:feat/iter47-div-fixup-zero-priority → main · +163 −5 · 2 files · 1 commits · closed without merging

Summary

Port rustno1-coder/VIctory-NVIDIA eb90ad ( ix(shader): prioritize zero operands in division fixup):

  • In crates/victory-shader/src/emit/lower.rs, update _div_fixup_f32 lowering so make_zero (d_inf | n_zero) selects signed zero before q_nan selects signed_inf, reserving make_inf for
    _inf | d_zero.
  • In crates/victory-shader/src/emit/mod.rs, add div_fixup_corner_fixture, div_fixup_corner_program_lowers_without_gpu, and the 12-case D3D12 hardware compute shader test div_fixup_corner_program_executes_on_gpu (verified directly on the RTX 4060 Ti).

Rig Specs Tested On

  • CPU: 13th Gen Intel(R) Core(TM) i7-13700F
  • GPU & VRAM: NVIDIA GeForce RTX 4060 Ti (8 GiB VRAM)
  • System RAM: 32 GiB
  • OS & GPU Driver: Windows 11 Home (Build 26300) / Driver 32.0.16.2124

Run Settings & Profile

  • Build & Commit SHA:
    elease @ $sha (static/lowering + D3D12 hardware compute shader execution tests + CI full workspace suite; no separate live runtime capture for this targeted division-instruction corner fix)
  • Console Profile & Internal Resolution / Scale: N/A (hardware compute shader unit verification; full ictory-shader + ictory-gpu suite verified via CI)
  • Ray Tracing: N/A
  • Upscaling: N/A
  • Frame Generation: N/A
  • Launcher Command / Preset & Extra VICTORY_ Overrides:* N/A
  • Scene / Area & Session Length: N/A

Measurements & Verification

  • Base FPS (without Frame Gen): N/A (shader instruction lowering fix)
  • Frame-Gen FPS (if enabled): N/A
  • VRAM / RAM Usage: N/A
  • Crashes / DRED Resets: N/A
  • Automated Checks:
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-shader --lib div_fixup_corner_program_lowers_without_gpu (1 passed; 0 failed)
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-shader --lib valu_div_f32_sequence_executes_on_gpu (1 passed; 0 failed on RTX 4060 Ti)
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-shader --lib div_fixup_corner_program_executes_on_gpu -- --ignored (1 passed; 0 failed — all 12 corner cases bit-exact on RTX 4060 Ti)
    • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy (sset policy: 294 files ok)
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask (6 passed; 0 failed)
    • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings (0 warnings)
    • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features victory-gpu/diagnostics -- -D warnings (0 warnings)
    • cargo +1.98.1-x86_64-pc-windows-gnu build --release -p victory + objdump -p check (0 non-system MinGW DLLs)
    • Full ictory-shader + ictory-gpu test suite via GitHub Actions CI (local SDK dxil.dll 101.6.2104.33 fails 3 pre-existing PSV0 validator tests unrelated to _div_fixup_f32)
**@⁠Androtim** on GitHub · 2026-11-28 09:54 UTC · [original](https://github.com/Androtim/MiniVI/pull/32) `Androtim:feat/iter47-div-fixup-zero-priority` → `main` · +163 −5 · 2 files · 1 commits · closed without merging ## Summary Port rustno1-coder/VIctory-NVIDIA eb90ad ( ix(shader): prioritize zero operands in division fixup): - In crates/victory-shader/src/emit/lower.rs, update _div_fixup_f32 lowering so make_zero (d_inf | n_zero) selects signed zero before q_nan selects signed_inf, reserving make_inf for _inf | d_zero. - In crates/victory-shader/src/emit/mod.rs, add div_fixup_corner_fixture, div_fixup_corner_program_lowers_without_gpu, and the 12-case D3D12 hardware compute shader test div_fixup_corner_program_executes_on_gpu (verified directly on the RTX 4060 Ti). ## Rig Specs Tested On - **CPU:** 13th Gen Intel(R) Core(TM) i7-13700F - **GPU & VRAM:** NVIDIA GeForce RTX 4060 Ti (8 GiB VRAM) - **System RAM:** 32 GiB - **OS & GPU Driver:** Windows 11 Home (Build 26300) / Driver 32.0.16.2124 ## Run Settings & Profile - **Build & Commit SHA:** elease @ $sha (static/lowering + D3D12 hardware compute shader execution tests + CI full workspace suite; no separate live runtime capture for this targeted division-instruction corner fix) - **Console Profile & Internal Resolution / Scale:** N/A (hardware compute shader unit verification; full ictory-shader + ictory-gpu suite verified via CI) - **Ray Tracing:** N/A - **Upscaling:** N/A - **Frame Generation:** N/A - **Launcher Command / Preset & Extra VICTORY_* Overrides:** N/A - **Scene / Area & Session Length:** N/A ## Measurements & Verification - **Base FPS (without Frame Gen):** N/A (shader instruction lowering fix) - **Frame-Gen FPS (if enabled):** N/A - **VRAM / RAM Usage:** N/A - **Crashes / DRED Resets:** N/A - **Automated Checks:** - [x] cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-shader --lib div_fixup_corner_program_lowers_without_gpu (1 passed; 0 failed) - [x] cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-shader --lib valu_div_f32_sequence_executes_on_gpu (1 passed; 0 failed on RTX 4060 Ti) - [x] cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-shader --lib div_fixup_corner_program_executes_on_gpu -- --ignored (1 passed; 0 failed — all 12 corner cases bit-exact on RTX 4060 Ti) - [x] cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy (sset policy: 294 files ok) - [x] cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask (6 passed; 0 failed) - [x] cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings (0 warnings) - [x] cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features victory-gpu/diagnostics -- -D warnings (0 warnings) - [x] cargo +1.98.1-x86_64-pc-windows-gnu build --release -p victory + objdump -p check (0 non-system MinGW DLLs) - [ ] Full ictory-shader + ictory-gpu test suite via GitHub Actions CI (local SDK dxil.dll 101.6.2104.33 fails 3 pre-existing PSV0 validator tests unrelated to _div_fixup_f32)
Port trustno1-coder/VIctory-NVIDIA feb90ad: resolve zero/infinity division operands (0 / x and x / +/-Inf) to signed zero before checking a NaN intermediate quotient (q_nan) in v_div_fixup_f32 lowering, and add both CPU lowering and 12-case D3D12 hardware GPU tests (verified on RTX 4060 Ti).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:03:17 +00:00
github-bot closed this pull request 2026-12-01 20:03:17 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-11-28 10:03 UTC · original · edited 2026-11-28 21:02 UTC

Automated triage for the maintainers (not an approval).

Verdict: needs-rebase · CI (check): passing

This PR no longer merges cleanly into main.

To change the verdict: Rebase onto current main and resolve conflicts; CI and triage will run again automatically.


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-11-28 10:03 UTC · [original](https://github.com/Androtim/MiniVI/pull/32#issuecomment-7237638840) · edited 2026-11-28 21:02 UTC <!-- minivi-triage v1 head=7ee9045d7c4a593eb8b14b02f2413a31a5e44296 verdict=needs-rebase ci=passing at=2026-11-28T21:03:04Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-rebase` · **CI (`check`):** `passing` This PR no longer merges cleanly into `main`. **To change the verdict:** Rebase onto current `main` and resolve conflicts; CI and triage will run again automatically. --- _Generated with Antigravity CLI (`agy`)._
Author
Owner

@⁠Androtim on GitHub · 2026-11-28 21:18 UTC · original

Closing as superseded duplicate of merged PR #18.

**@⁠Androtim** on GitHub · 2026-11-28 21:18 UTC · [original](https://github.com/Androtim/MiniVI/pull/32#issuecomment-7245920570) Closing as superseded duplicate of merged PR #18.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Androtim--MiniVI!32
No description provided.