Recompiler: drop dead raw loads/f16 convs (#2212), specialize const v_perm_b32 (#2267), fold const reversebits #3503

Merged
Kalmarv merged 1 commit from upstream-pr/3503 into main 2026-11-30 04:25:35 +00:00
Kalmarv commented 2026-11-30 03:43:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-30T03:43:37Z.


Rebases #2212 (by @tibzejoker) and #2267 (by @ramon-victor) cleanly onto current main and folds in constant reversebits simplification in direct DXIL.

What is in it

  • crates/xcl/src/gpu/dxil/module/opt.rs: drop dead dx.op.rawBufferLoad.* and dx.op.legacyF16ToF32 calls while preserving shader flags (from #2212).
  • crates/xcl/src/gpu/dxil/: specialize constant-selector v_perm_b32 (from #2267) and fold constant reversebits.

Tested

  • Hardware: NVIDIA GeForce RTX 5070 Ti (driver 32.0.16.1074), AMD Ryzen 9 9950X, Windows 11, DXC 1.9.2609
  • Verified in full 24-thread cold archive precompile (23m 28s, errors) and 29-min live title run ( crashes, device removals).
  • scripts/smoke.ps1 on this exact head queued next.

Regression run

main:

xcl-smoke v1
commit: 91244db94d2f402237c6a8e428dbe5da07673c48
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1514 (PresentX 1514)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 15133 MB

PR head:

xcl-smoke v1
commit: 6ff86e30eddab944fc2309aa99a465ec57eac6e3
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 60
exit: 0x0
frames shown: 1586 (PresentX 1586)
presents per 2 s (last 3): 60 60 61
device removals: 0
crashes: 0
peak commit: 15377 MB

Not tested

  • AMD / Intel GPUs

AI use

  • Rebased and verified with Claude Opus / Gemini coding assistants; original optimizations by @tibzejoker (#2212) and @ramon-victor (#2267).
<!-- greyfinch-sync:ivall/xcl:issue:5558577086 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3503). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-30T03:43:37Z. --- Rebases #2212 (by @tibzejoker) and #2267 (by @ramon-victor) cleanly onto current `main` and folds in constant `reversebits` simplification in direct DXIL. **What is in it** - `crates/xcl/src/gpu/dxil/module/opt.rs`: drop dead `dx.op.rawBufferLoad.*` and `dx.op.legacyF16ToF32` calls while preserving shader flags (from #2212). - `crates/xcl/src/gpu/dxil/`: specialize constant-selector `v_perm_b32` (from #2267) and fold constant `reversebits`. **Tested** - Hardware: NVIDIA GeForce RTX 5070 Ti (driver 32.0.16.1074), AMD Ryzen 9 9950X, Windows 11, DXC 1.9.2609 - Verified in full 24-thread cold archive precompile (23m 28s, errors) and 29-min live title run ( crashes, device removals). - `scripts/smoke.ps1` on this exact head queued next. **Regression run** `main`: ``` xcl-smoke v1 commit: 91244db94d2f402237c6a8e428dbe5da07673c48 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1514 (PresentX 1514) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 15133 MB ``` PR head: ``` xcl-smoke v1 commit: 6ff86e30eddab944fc2309aa99a465ec57eac6e3 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 60 exit: 0x0 frames shown: 1586 (PresentX 1586) presents per 2 s (last 3): 60 60 61 device removals: 0 crashes: 0 peak commit: 15377 MB ``` **Not tested** - AMD / Intel GPUs **AI use** - Rebased and verified with Claude Opus / Gemini coding assistants; original optimizations by @tibzejoker (#2212) and @ramon-victor (#2267).
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
xcl-dev/xcl!3503
No description provided.