Repository navigation
Recompiler: deduplicate packed ISG1 vertex input struct fields (#105) - #1371
slopgobblercobbler wants to merge 1 commit into
Conversation
- Prevent duplicate XclIn field names a{e.register} when multiple packed ISG1 vertex elements share an input register (xcl-dev#105).
- Deduplicate struct fields with _{dup} suffixes in vs_input_names and route channel reads to the element declaring the channel via vs_input_slot.
- Add unit and HLSL translation regression tests verifying non-colliding fields and valid channel reads for packed vertex inputs.
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
ivall#1379 Integrate 22 open upstream PRs targeting world rendering, shader correctness, DirectStorage terrain loads, and crash/memory stability: - ivall#1321 (ivall#1307): fall back to pc blocks when structured CFG HLSL grows oversized (eliminates the 148 MB HLSL / 1 GB/s commit explosion from b8b1f49 so XCL_PSO_PRELOAD=1 stays flat at ~5.4 GiB) - ivall#549, ivall#1312: DirectStorage late page-array queue hold (fixes 0x89240009 terrain read failures) and 0-byte memory-source requests - ivall#1365 (ivall#1361): GFX10.30 scratch SADDR 0x7F addresses the immediate offset alone instead of adding v0 - ivall#1368: translated compute PSOs use NodeMask 0 - ivall#1371 (ivall#105): deduplicate packed ISG1 vertex input struct fields - ivall#1375 (ivall#1360): ES s_setpc_b64 ends block before gs_start - ivall#1350, ivall#1351, ivall#1352, ivall#1353, ivall#1349: VS layer/viewport outputs, PS sample index/fixed-point position & SV_Coverage, depth+UAV initial states, console SetPredication - ivall#1305, ivall#1306, ivall#1314, ivall#1319, ivall#1322, ivall#1334, ivall#1339, ivall#1355, ivall#1357, ivall#1379: console_list UMA hold on Release, v_cmp_class_f32 bitwise abs/neg, late_release vram queue wait, root arg clamping, empty BVH / NaN rays, NULL IASetIndexBuffer clearing, MSAA MipLevels=1, VFS lazy-page commits, coherent VirtualFree validation, cpu_writes PAGE_GUARD & stale fence wakeups - README.md: document the integrated PRs, XCL_PSO_PRELOAD=1, and 16 GiB cap Verified on RX 9060 XT / GE-Proton11-14: release build clean, targeted unit tests pass (75 passed, 0 failed), and 80 s run with XCL_PSO_PRELOAD=1 and XCL_MEM_LIMIT=12G stays flat at 5340-5413 MB with 512+ pipelines preloaded (1385 frames, exit 0x0). Assisted-by: Antigravity (Google DeepMind)
ivall#1379 Integrate 22 open upstream PRs targeting world rendering, shader correctness, DirectStorage terrain loads, and crash/memory stability: - ivall#1321 (ivall#1307): fall back to pc blocks when structured CFG HLSL grows oversized (eliminates the 148 MB HLSL / 1 GB/s commit explosion from b8b1f49 so XCL_PSO_PRELOAD=1 stays flat at ~5.4 GiB) - ivall#549, ivall#1312: DirectStorage late page-array queue hold (fixes 0x89240009 terrain read failures) and 0-byte memory-source requests - ivall#1365 (ivall#1361): GFX10.30 scratch SADDR 0x7F addresses the immediate offset alone instead of adding v0 - ivall#1368: translated compute PSOs use NodeMask 0 - ivall#1371 (ivall#105): deduplicate packed ISG1 vertex input struct fields - ivall#1375 (ivall#1360): ES s_setpc_b64 ends block before gs_start - ivall#1350, ivall#1351, ivall#1352, ivall#1353, ivall#1349: VS layer/viewport outputs, PS sample index/fixed-point position & SV_Coverage, depth+UAV initial states, console SetPredication - ivall#1305, ivall#1306, ivall#1314, ivall#1319, ivall#1322, ivall#1334, ivall#1339, ivall#1355, ivall#1357, ivall#1379: console_list UMA hold on Release, v_cmp_class_f32 bitwise abs/neg, late_release vram queue wait, root arg clamping, empty BVH / NaN rays, NULL IASetIndexBuffer clearing, MSAA MipLevels=1, VFS lazy-page commits, coherent VirtualFree validation, cpu_writes PAGE_GUARD & stale fence wakeups - README.md: document the integrated PRs, XCL_PSO_PRELOAD=1, and 16 GiB cap Verified on RX 9060 XT / GE-Proton11-14: release build clean, targeted unit tests pass (75 passed, 0 failed), and 80 s run with XCL_PSO_PRELOAD=1 and XCL_MEM_LIMIT=12G stays flat at 5340-5413 MB with 512+ pipelines preloaded (1385 frames, exit 0x0). Assisted-by: Antigravity (Google DeepMind)
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, wave32), adding a 60 s retail regression smoke run on clean head Tested
Regression run PR head ( Not tested: debug build, AI use: Antigravity ( |
|
Read at In the new test, The test only checks the HLSL text, so it pins the unshifted index rather than catching it; a draw with distinct data in UV0 and UV1 would. (Unrelated to #105: the PR also changes AI use: Claude Code (Claude Opus 5.5) read the diff; not run on a GPU. Checked by the user before posting. |
|
Two contributors checked independently and found that #297 #313 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. |
Addresses #105 Item 4 (Packed ISG1 vertex input struct field deduplication):
When multiple packed ISG1 vertex attributes share an input register (e.g. UV0 and UV1 packing into 2-channel halves of a single register),
Mode::Vertexpreviously emitted duplicateXclInfield names (a{e.register}), causing HLSL compilation errors under DXC.What is in it
crates/xcl/src/gpu/recomp/mod.rs:vs_input_names(inputs)generates deduplicated field names with_{dup}suffixes for shared registers.vs_input_slot(vs, register, chan)routes channel indexing to the element declaring that component.crates/xcl/src/gpu/recomp/emit.rs:Mode::Vertex, emits deduplicatedXclInstruct members and indexes the corresponding field for each channel.crates/xcl/src/gpu/recomp/tests.rs:vs_packed_isg1_vertex_input_dedupverifies non-colliding fields (a0,a0_1,a1) and valid DXCvs_6_6compilation.Tested
cargo test -p xcl -- recomp(190 passed, 0 failed).cargo test --workspace(707 passed, 0 failed).upstream/main(930e8b4).Not tested
AI use
author-recomp-isg1,verify-recomp-isg1). Verified and reviewed independently.