Repository navigation
D3D12.X: console list #31 SetPredication gets its placement delta and survives kickoffs - #1349
emirduran707 wants to merge 2 commits into
Conversation
|
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! |
|
Independent Windows check on 6337e42. RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC, DXC 1.8.2502.11. The clean A scratch fixture called the #31 implementation with an injected 8-byte placement delta on a real D3D12 direct list. Offset 0 would have read a nonzero value, while translated offset 8 read zero. GPU readback showed the conditional copies were suppressed both before and after This probes the #31 implementation and real kickoff, with slot mapping covered by the stock test. No guest ABI call, mid-list wait split or retail smoke was run. AI use: Codex (GPT-6, exact variant unspecified) wrote the fixture, ran the checks and drafted this report. |
…elta A title's xcl-dev#31 is the PC's SetPredication (xcl-dev#55, `console_remap`), but no XCL code ran on it: slot 31 was in neither `console_slots` nor `NEWER_LIST_SLOTS`. XCL places some buffers below the title's address and keeps the difference in `BUFFER_DELTA`; every other PC method that takes a buffer offset adds `buffer_delta(res)` (ResolveQueryData, CopyBufferRegion, CopyTextureRegion, ExecuteIndirect). SetPredication did not, so after ResolveQueryData(heap, BINARY_OCCLUSION, i, 1, buf, off) wrote the predicate at off + delta, SetPredication(buf, off, op) read it at off. `set_predication_x` adds the delta (a null buffer passes through) and is installed at xcl-dev#31. Tests: with a delta of 0x200, xcl-dev#31 at offset 0x10 reaches the PC method at 0x210 (it reached it at 0x10 before), and console slot 31 has the handler. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
KickoffX and the Wait64 mid-list split close, submit and reset the PC list mid-recording, and set again what the title had set: on the console a kickoff leaves the list's state as it was (`Bindings`). They re-applied predication only from `ListState::predication`, which only xcl-dev#85 SetPredicationBufferX sets; `restore_bindings` had none. So predication set through xcl-dev#31 SetPredication was lost at a kickoff or a split, and the draws after it ran unpredicated. `set_predication_x` records the PC call (buffer, offset with the buffer's delta, operation) in `Bindings` (none for a null buffer) and `restore_bindings` issues it again on direct and compute lists. The last of xcl-dev#31 and xcl-dev#85 is the one in effect, as on the PC list: xcl-dev#31 clears xcl-dev#85's op (its buffer still goes back to COMMON at Close / KickoffX through `pred_in_state`), xcl-dev#85 clears the xcl-dev#31 record, and xcl-dev#85's copy into its predication buffer first disarms a xcl-dev#31 predicate too, so the copy is not predicated away. Test: with a delta of 0x200, after xcl-dev#31 at offset 0x10 a restore issues SetPredication(buf, 0x210, op) on direct and compute lists (none before); none after xcl-dev#31 with a null buffer or xcl-dev#85 with none; xcl-dev#85 after xcl-dev#31 disarms first and leaves only xcl-dev#85's state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6337e42 to
96ecec1
Compare
|
Finding after comparing this PR with current The newer I did not find another open PR for the native #31 tracking. AI-assisted. |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
Console command lists'
SetPredication(#31) went straight to the PC's #55 (console_remap); no XCL code ran on it. That broke two things.place_at_title_addressrecordsbuffer_delta), and every other PC method that takes a buffer offset adds it: ResolveQueryData, CopyBufferRegion, CopyTextureRegion, ExecuteIndirect. A title that resolves an occlusion query intobufatoff, then predicates onbufatoff(the pair in Microsoft's predication sample), had the result written atoff + deltabut the predicate read atoff.What is in it (two commits)
D3D12.X: list #31 SetPredication adds the buffer's placement delta:set_predication_xinlist_x.rs, installed at slot 31 inreal.rs;set_predication_x_adds_the_buffer_deltaandtitle_slot_31_runs_set_predication_x.D3D12.X: KickoffX and mid-list splits keep #31 SetPredication:restore_bindingson direct and compute lists. The last of Launcher: honor configured executable before auto-detection #31 and xgameruntime: add XAccessibility closed caption and high contrast fallback #85 wins; xgameruntime: add XAccessibility closed caption and high contrast fallback #85's copy into its own buffer switches Launcher: honor configured executable before auto-detection #31's predicate off first;set_predication_x_is_restored_after_a_pc_reset.Tested
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4on 96ecec1 (rebased ontomain1a0bbe3): 1251 passed, 2 failed, 46 ignored; 8 SKIPPED (6 inlower_dxil::tests::{f16,f32}_programs_on_the_gpu;heap_window_out_of_memory_falls_back_to_the_switch_form;pso_measurement_compiles_an_exact_synthetic_record)gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1,gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3) fail identically on unmodifiedmain1a0bbe3on this GPU (seeds 722 and 1599).(buffer, 528, 1). With the changes they pass.Regression run
main:
this PR:
Not tested
AI use
main1a0bbe3(a conflict in the test modules at the end ofcrates/xcl/src/hle/d3d12x/real.rs; both kept) and reran the suite and smoke runs above.🤖 Generated with Claude Code