Repository navigation
Recompiler: handle packed ISG1 vertex inputs sharing a register (#105) - #313
Michael-Glaser wants to merge 1 commit into
Conversation
|
A Windows run for this draft, and a note that #297 (draft) fixes the same packed-ISG1 case in another way; the two conflict in This PR: Cross-check with #297 (
So on the one test that draws (packed TEXCOORD0 .xy / TEXCOORD1 .zw through an R32G32 input layout), both fixes give the expected pixels on NVIDIA and on RDNA2; the failing cross cases only assert the other PR's member names. Both read a component no element covers as Not tested: AI use: Claude Code with Claude Opus 5.5 ran the builds and the cross-check and wrote this comment; the numbers come from those runs. |
…l#105) In Mode::Vertex, struct XclIn named fields a{e.register} and VGPR initialisation looked up the first element matching e.register while ignoring e.mask. When two ISG1 vertex inputs pack into one register (e.g. TEXCOORD0 .xy and TEXCOORD1 .zw in register 1), XclIn emitted duplicate field names (failing DXC compilation) and upper channels read from the first element instead of the packed element's components. Name XclIn fields by element index (a{k}, matching Mode::Pixel) and match each VGPR channel against e.mask, indexing the packed element starting from component 0 while keeping the unmasked fallback for single elements that rely on IA defaults. Assisted-by: Antigravity (Gemini 4 Neon)
18ca3b6 to
3875b45
Compare
Part of #105.
Mode::VertexnamedXclInfieldsa{e.register}and ignorede.mask, emitting duplicate field names and reading wrong channels when twoISG1inputs share a register. Overlaps #297 (same packed-ISG1 issue, different approach).What is in it
crates/xcl/src/gpu/recomp/emit.rs: nameXclInfieldsa{k}by index (matchingMode::Pixel) and map VGPR channels usinge.mask.crates/xcl/src/gpu/recomp/tests.rs: unit testvertex_packed_isg1_inputs_get_distinct_fields_and_components.Tested
aarch64-apple-darwin, Rust 1.100.0):cargo check --offline --target x86_64-pc-windows-msvc --workspace --tests(0 errors, 0 new warnings).Not tested
cargo test, GPU tests, andscripts/smoke.ps1not run yet.AI use