Recompiler: route mesh parameter exports through the output register table #1703
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1713"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by tylerstraub on 2026-11-24T19:37:02Z.
Mesh parameter exports can name a different register from the one implied by signature order. XCL already reads the console's output table for vertex shaders. This change uses the same table to route mesh exports to the pixel shader.
Native Windows GPU test requested. Please test commit
2b6c096on native Windows with a mesh-shader-capable GPU. Runcargo build --workspacefollowed bycargo test --workspace -- --test-threads=4and share the pass, fail, ignore and skip counts along with your GPU and driver. This is the outstanding validation before the draft is ready for review.What is in it
Tested
c160d86ef, the identity control matched 256/256 pixels and the swapped case matched 0/256. On the candidate,cargo test -p xcl --lib synthetic_mesh_parameter_table(cross-target, Proton runner) matched 256/256 in each of the four cases on each translation path. The direct translator reported four translations and zero fallbacks. The existinggpu_mesh_mode_two_passestest also passed independently in both configurations.Regression run
I ran the unchanged upstream smoke script with PowerShell 7.4.13 on Linux, using a Wine launcher for XCL. Both used the same title, isolated prefix setup and 60-second limit. Proton reported zero for peak process commit on both runs, so the blocks cannot establish a memory comparison.
Not tested
Native Windows, AMD hardware, console reference output, and a visible change during world gameplay.
AI use
Codex (GPT-6) implemented the change and synthetic test, ran the comparisons, and prepared this description.
Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-24T19:45:38Z.
Native Windows GPU validation of
2b6c096360eac8ccb1aa28e48a4f3f18128e809aon the Radeon iGPU and RTX 5090. The mesh parameter test matched all four cases on both GPUs and both translation paths.Tested
cargo build --workspace --lockedpassed.cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-outputwith default shader settings reported 859 passed, 0 failed, 42 ignored on each GPU. I selected the adapters withXCL_ADAPTER.heap_window_out_of_memory_falls_back_to_the_switch_formon both GPUs (no heap windows). The RTX 5090 also skippedgpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no native wave64).cargo test --locked -p xcl --lib gpu::recomp::tests::synthetic_mesh_parameter_table -- --exact --nocapturewithXCL_DIRECT_DXIL=0and=1on each GPU: per invocation 1 passed, 0 failed, 0 ignored, no skips. Identity, swapped, empty and invalid tables each matched 256/256 covered pixels in all four invocations.XCL_DIRECT_DXIL_STATS=1reported 4 direct mesh translations, 0 HLSL fallbacks on each GPU's direct run.cargo test --locked -p xcl --lib gpu::recomp::tests::gpu_mesh_mode_two_passes -- --exact --nocapturealso passed with both settings on both GPUs (1 passed, 0 failed, 0 ignored per invocation, no skips).synthetic_mesh_parameter_tableontoc160d86ef2efe3a07e4dfb473e4fa72eafb413c0and ran the same command on the Radeon withXCL_DIRECT_DXIL=0and=1. Both runs matched 256/256 for identity and 0/256 for swapped, failing at the expected swapped-case assertion. The baseline worktree was restored afterward.Not tested
Retail-title output, console reference captures, or timing on this setup.
AI use
OpenAI Codex (GPT-6 family, exact variant unavailable) ran the tests, checked the logs, and wrote this report.
Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-24T20:37:35Z.
Independent Windows release verification on NVIDIA RTX 3060 Ti (
2b6c096360eac8ccb1aa28e48a4f3f18128e809avs basemainc160d86ef2efe3a07e4dfb473e4fa72eafb413c0).Setup
8024 MiB VRAM, wave32), driver32.0.16.210131.8 GBRAM26200rustc 1.100.0, DXC1.9.2602.17,--releaseWorkspace tests (
cargo test --workspace --release --no-fail-fast -- --test-threads=4)0: 859 passed, 0 failed, 42 ignored across 20 result blocks (SKIPPED: 2no wave64, 2no D3D12 debug layer,heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows).Regression run (
scripts/smoke.ps1, 60 s,XCL_NETWORK=0, title folder name redacted)main:1569 / 1538frames (102.0%),15216 / 16245 MBpeak commit (93.7%),0device removals,0crashes.Base (
mainc160d86):PR head (
2b6c096):Not tested: debug build, AMD / wave64 hardware, retail mesh shader visual diff beyond the 60 s smoke.
AI use: Antigravity (
Gemini 4 Neon) built and ran the test suite and smoke pair on this hardware and drafted this report from the captured outputs; reviewed before posting. No game files attached.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:19:00Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Pull request closed