Repository navigation
Recompiler: drop dead raw loads/f16 convs (#2212), specialize const v_perm_b32 (#2267), fold const reversebits - #3503
Merged
Conversation
…ecialize const v_perm_b32 Rebases xcl-dev#2212 and xcl-dev#2267 onto main and adds constant reversebits folding. Co-authored-by: tibzejoker <tibzejoker@users.noreply.github.com> Co-authored-by: ramon-victor <ramon-victor@users.noreply.github.com>
Kalmarv
force-pushed
the
pr/9-dxil-2212-2267-reversebits
branch
from
November 30, 2026 04:14
23b3f5b to
6ff86e3
Compare
dudenudem
pushed a commit
to dudenudem/xcl
that referenced
this pull request
Nov 30, 2026
Keeps upstream's DXIL IR cuts (xcl-dev#3500-xcl-dev#3503/xcl-dev#3495-xcl-dev#3499: sampler waterfall, descriptor windows, split-wave64 mask exchange, per-lane exec, direct PS masks, quad shuffles, packed/normalized buffer decode, commit-aware compiles), xcl-dev#3269 fixed-point optimizer, xcl-dev#3154 compact compute prologue, xcl-dev#2123 split atomic add, xcl-dev#2070 offline 64 MB stacks, xcl-dev#3442 split-whole, xcl-dev#1319 root-constant bounds, xcl-dev#3356 late Reset releases, xcl-dev#1322 empty-BVH/NaN rays, xcl-dev#2753 3-D texture sizing, XMA/VFS/TLS/loader fixes. Resolutions: - real.rs: union of T-156 res_release pinning with upstream's InListReset and abi_rs_for_stages; dropped upstream's warm_graphics (T-095 removed that path); kept ComputeBuild::IndirectChain for our split-chain variant. - dispatch_chain.rs: kept our IndirectBuild split-chain architecture (the T-095 port removed the preload/whole-worker machinery upstream builds on); ported upstream's huge-PSO refusal log. - pso_async.rs: took upstream's commit-aware build_pieces/build_scoped and WORKER_STACK, removed the preload/backlog subsystem our port does not have (and its tests), kept our profile_is_series_s. - late_release.rs: took upstream's Dead enum, Busy/InListReset and hold_pipeline/hold_heap/hold_unmap, with our vram release path (no recycle pool). - emit.rs: upstream's additions moved into emit/memory.rs (ADD_TID_ENABLE), emit/exp.rs (misc-vector layer/viewport), emit/mimg.rs (SampleCmp with bias gradients), emit/valu.rs (abs/neg on shift/align), emit.rs out_struct. - bind.rs: root-constant bounds clamp + its test; kept our bool execute_indirect API. - bvh.rs: our grow/tri_ret/watertight model plus upstream's empty-root bounds and NaN-ray refusal. - kernel.rs: upstream's mask/waterfall/rodata cuts plus our lanes_upper. - shaders.rs: upstream's worker stack helpers and mesh/GS precompile paths, with our PipelineJob record identity. - eh.rs: upstream's CLWB TF guard + test, our termination test. - lower.rs test: 574bda4 makes wave32 SALU words compute S_WQM without quad lanes; assert that and keep the wave64 refusal.
lucsoft
added a commit
to lucsoft/xcl
that referenced
this pull request
Dec 1, 2026
graphics_stages_emit_a_repeated_load_once (from amd-dev, xcl-dev#2446) counts rawBufferLoad calls in vertex and pixel programs whose loaded SGPRs are never observed: a VS or PS writes no SGPRs back at its end. Main's xcl-dev#3503 (6ff86e3) made rawBufferLoad eligible for dead-code elimination and keeps a single raw load only so the shader flags stay valid, so in the merge every program in the test compiled to exactly one load. The store case then failed (1 vs 1 + 4), and the repeat case passed only because both sides were that one surviving load. Neither side's lowering is wrong and the merge did not combine the reload or window code badly: reload.rs, the follow_loads stages and the s_load path are amd-dev's as is. Each program now stores the sum it computes, so the loads it reads stay live and both assertions measure the reload again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebases #2212 (by @tibzejoker) and #2267 (by @ramon-victor) cleanly onto current
mainand folds in constantreversebitssimplification in direct DXIL.What is in it
crates/xcl/src/gpu/dxil/module/opt.rs: drop deaddx.op.rawBufferLoad.*anddx.op.legacyF16ToF32calls while preserving shader flags (from Direct DXIL: unused raw loads and f16 conversions are dropped #2212).crates/xcl/src/gpu/dxil/: specialize constant-selectorv_perm_b32(from Recompiler: specialize constant-selector v_perm_b32 in direct DXIL #2267) and fold constantreversebits.Tested
scripts/smoke.ps1on this exact head queued next.Regression run
main:PR head:
Not tested
AI use