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. |
18ca3b6 to
3875b45
Compare
…dev#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)
3875b45 to
40f90f7
Compare
|
This and #297 (opened 28 minutes earlier) both fix the packed ISG1 vertex inputs of #105: two elements in one register become two
Both have tests. They edit the same lines of AI-assisted (Claude Code). |
|
Two contributors checked independently and found that #297 #1371 solves the same problem (for #105) in a different way: #1607, group D20. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
|
Regression run of Against the limits in CONTRIBUTING.md: 101 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
|
Tested Independent native Windows run for #313 at STOR-WINLAB, Windows 11 Enterprise Evaluation 25H2 x64 (build 26200.9974), AMD Ryzen 7 3800X, Rust and Cargo 1.100.0 ( cargo test --locked -p xcl --lib gpu::recomp::tests::vertex_packed_isg1_inputs_get_distinct_fields_and_components -- --exact --nocapture --test-threads=1Exit 0. 1 passed, 0 failed, 0 ignored, 0 skipped, 719 filtered out. The synthetic fixture asserts complete HLSL translation, distinct Not tested Separate DXIL validation, D3D12 pipeline creation, GPU execution, retail titles, the workspace suite, and comparison with #1371. AI use T3 Code / Codex (gpt-6.2-sol) inspected the fixture, ran the existing test, and wrote this report. Raw evidence: |
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