Repository navigation
Conversation
Route FSPX/ACCC compute containers directly through direct_compute when the direct DXIL backend is active instead of falling through to the HLSL translator. When direct DXIL translation returns an error for an FSPX container, fall back automatically to the existing HLSL compilation path so unsupported opcodes or layouts keep working. AI-assisted: Antigravity (Gemini 4 Neon)
|
Review of In short: The PR sends FSPX (driver) compute containers, the ones FSR4 builds its passes from, through the direct DXIL translator. It uses the interface the HLSL path derives for them, and the HLSL path stays the fallback. The code matches the HLSL path's handling, and the new test fails without the change. Nothing blocks it, but nothing shows a real FSR4 pipeline going through the new default route. Medium
Nit
Checked and fine
Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point. |
Driver (FSPX) compute containers – the console driver's own container (an
ACCCpart holdingFSPX) that the FidelityFX upscaler builds its passes from – only went through the HLSL path:pso::direct_computerefused them. They now go through the direct DXIL translator like FSSM compute shaders, with the same interface the HLSL path already derives for them (CsInterface::from_rsrc2(threads, rsrc2), wave64 from the code, no constant data in the code region). When the direct translator refuses a program, the HLSL path stays the fallback, as for every other compute shader.TRANSLATOR_VERSIONgoes 12 → 13 because these programs' containers change; their cached DXIL is rebuilt once.What is in it
crates/xcl/src/gpu/recomp/pso.rs:direct_computeaccepts an FSPX blob (fspx(blob)), the shared body moves todirect_compute_program. New testfspx_compute_routes_through_direct_compute: synthetic wave32 and split-wave64 FSPX containers translate throughdirect_computeand validate; with DXC present the wave32 one disassembles with the direct DXIL producer andnumthreads(32, 1, 1).crates/xcl/src/gpu/dxil/kernel.rs:TRANSLATOR_VERSION13.Tested
cargo test -p xcl --lib gpu::recomp::pso(includingfspx_compute_routes_through_direct_compute): 43 passed, 0 failed, 1 ignored (baselinemain078358a0full workspace: 3006 passed, 0 failed, 52 ignored, 28 SKIPPED)scripts/smoke.ps1(clean worktree at2936f61e90786790b716326c90cc0fb9c80fa9c7vsmain078358a058f7ba5d16690dba8dc4e55d2c88ae0a)Regression run
main (
078358a0):PR (
2936f61e):Not tested
AI use
xcl-smoke v1runs were executed directly on local hardware.