Repository navigation
D3D12.X: promote R9G9B9E5_SHAREDEXP render/UAV targets to R11G11B10_FLOAT - #605
Conversation
…LOAT PC D3D12 rejects ALLOW_RENDER_TARGET and ALLOW_UNORDERED_ACCESS on DXGI_FORMAT_R9G9B9E5_SHAREDEXP (67) with E_INVALIDARG (0x80070057). In Series S (Lockhart) mode, a retail title creates a 1920x1080 format-67 target with flags 0x300005 during startup and aborts on the error. Promote format-67 resources with RT/UAV flags and their RTV/UAV/SRV views to DXGI_FORMAT_R11G11B10_FLOAT (26, same 32 bpp unsigned HDR float with full PC RTV/UAV/SRV support), while keeping sampled-only format-67 textures unchanged.
|
Test run and review of Overlap: this fixes the same Series S start-up failure as #242 (still open), the same way except for the target format: #242 makes the format-67 targets Tested
Review
Not tested: no retail title or Series S profile (I have no unpacked game), so the picture with either format was not compared on screen; no regression run, no Run and review by Claude Code (Claude Opus 5.5) on this machine; the value counts come from a short script over the three formats' definitions, the format support from the run on this adapter. |
|
I arrived at the same fix independently a few hours ago (#651, created ~02:24 UTC alongside this one) and my PR covers two things this one does not — while this PR covers something mine was missing. Posting the deltas here since the maintainer will have to pick one anyway, and both halves are worth keeping regardless of which PR carries them. What #605 has that #651 was missing — What #651 has that #605 does not — two clear-value fixes found on the real title, with probe data:
End-to-end result on the title that motivates both PRs (RTX 5070 Ti, lockhart, idle GPU): 21.7 s breakpoint → 27.1 s breakpoint (67's resource fixed, depth clear still broken) → 120 s clean exit, 0 crashes, both refusals gone — with #651's three commits. #605 alone would fix the first refusal; the clear-value follow and the depth-typeless case are what got past the second. Regression runs on the same hardware are in the #651 description (main One scope note for whoever reviews: this title reaches the 67 target only under |
|
Test report on Windows + NVIDIA for Tested
Regression run From the local merge above, not from this PR's head alone. Not tested
AI use
|
|
Test report: retail title, a run confirming the problem this PR fixes Not a run of this PR's head ( Hardware / build
Without the fix
With the fix
Not tested
I post the report here because this PR has the same condition as my patch. #651 does the same with more changes around it. AI use
|
|
Test report on The runs on this PR so far are on the Series S profile; the Series X profile reaches format 67 too, in pipelines (#914 expected it not to). Tested
Regression run Base ( This PR ( Not tested
AI use
|
|
Confirming PR #605 on an RTX 3070 (8 GB VRAM) / 16 GB RAM, Windows 11. Before #605, Series S (lockhart) aborted at startup: the title creates a 1920×1080 R9G9B9E5_SHAREDEXP (67) render target + UAV (flags 0x300005), the host refuses with 0x80070057, and the title hits int3 (0x80000003) after ~234 frames (~80 s) — matches #914. With #605 cherry-picked (plus Remaining on this setup: sampled frames stay black (0 non-black). ID3D12GraphicsCommandList10 #126 and #142 (~2585×/frame) and ID3D12CommandQueue #31 (CopyPageMappingsBatchX, #1031) are still stubbed, so the streamed/mapped content never reaches the GPU views. So #605 clears the Series S startup crash; a visible Series S frame additionally needs those console extensions. Tested with Claude Code (AI-assisted). No game data attached. |
|
Windows comparison on a GTX 1650 (4 GB) I compared retail 1.0.2.1 in the Series S profile on
The last sampled frame in each run had 0 of 129,600 non-dark samples. This confirms that #605 clears the #914 startup assertion on this GPU. The #495 follow-up is in testing. AI use Codex (GPT-6) ran both builds and wrote the report from the generated logs. |
Upstream PR xcl-dev#605 by 0x6461726B (open; the maintainer recommended merging it), applied unchanged: PC D3D12 refuses ALLOW_RENDER_TARGET / ALLOW_UNORDERED_ACCESS on R9G9B9E5_SHAREDEXP (67). A retail title's Series S profile stopped at its first such target (E_INVALIDARG, then the title's assert); on an RTX 4090 with the Series X profile testers saw 8 pipelines refused for a format-67 target. Such resources, their target and shader views and their clear values (pc_clear goes through pc_target_format) are R11G11B10_FLOAT, the same 32 bpp unsigned float layout class; sampled-only R9G9B9E5 textures stay 67. Includes the PR's test lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…v#1791, xcl-dev#605, xcl-dev#1806, xcl-dev#1745) Merges 60 upstream commits through c4d37be, incorporating: - PR xcl-dev#1747 (raylitebull): eliminate multi-heap UpdateTileMappings and per-texture Signal stalls in vram::Pages via contiguous TilePool - PR xcl-dev#1791 (wondercrash): D3D12.X an ExecuteIndirect reads arguments written before it - PR xcl-dev#605 (0x6461726B): promote R9G9B9E5_SHAREDEXP render/UAV targets to R11G11B10_FLOAT - PR xcl-dev#1806 (bmjask): Direct DXIL image_get_lod accepts static samplers - PR xcl-dev#1745 (gefydev): direct per-lane DXIL recompiler lowering backend Assisted-by: Antigravity
Brings xcl-dev#1747, xcl-dev#1791, xcl-dev#605, xcl-dev#1679, xcl-dev#1806, xcl-dev#1745, xcl-dev#1307, xcl-dev#1321 among others. Resolutions: - dxil/kernel.rs: upstream's Lw::new / Lw::finish; the safe s_barrier state and policy and xcl-dev#1741's single-wave bounded exchange move into Lw::new, with a safe_barrier flag (false for the per-lane lowering). - dxil/lower.rs: VAR_BAR_DEAD moves to VAR_BUDGET + 6 (+5 is VAR_F32_MODE). - TRANSLATOR_VERSION 9. - d3d12x/bind.rs: the bounded ExecuteIndirect call runs inside fresh_indirect_arguments. - d3d12x/list_x.rs: tracked_list_type, and transition (pub(super)) over the batched transitions. - recomp/mod.rs: compact backend and per-lane modules both kept; the oversized-structured-code fallback applies to translate after prepare. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
In Xbox Series S (
lockhart) mode, a retail title creates a1920x1080render target / UAV (ALLOW_RENDER_TARGET | ALLOW_UNORDERED_ACCESS, flags0x300005) withDXGI_FORMAT_R9G9B9E5_SHAREDEXP(67) during startup. PC D3D12 forbids render-target and UAV flags on format 67 and failsCreatePlacedResourceXwithE_INVALIDARG(0x80070057), crashing the title (0x80000003) before presenting frames.Promoting format-67 resources with RT/UAV flags and their RTV/UAV/SRV views to
DXGI_FORMAT_R11G11B10_FLOAT(26, same 32 bpp unsigned HDR float with full PC RTV/UAV/SRV support), while keeping sampled-only format-67 textures as format 67, unblocks Series S startup without changing Anaconda behavior.What is in it
67to26inpc_resource_descwhenALLOW_RENDER_TARGETorALLOW_UNORDERED_ACCESS(flags & 5 != 0) is set, and map67 => 26inpc_target_formatand(26, 67) => 26inpc_shader_view_format(crates/xcl/src/hle/d3d12x/device_x.rs), plus unit test cases inconsole_depth_buffers_and_their_views_are_the_pcs.Tested
32.0.16.2135), Intel Core i5-10400F, Microsoft Windows 11 Pro (Build 26300),rustc 1.100.0 (0ef1bc386 2026-11-09)cargo test --workspace -- --test-threads=4(debug): 684 passed, 0 failed, 41 ignoredSKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64lockhart) smoke run (retail title, 60 s, release):maincrashed at startup (exit: 0x80000003, 2 crashes, no frame count logged); this branch ran the full 60 s withexit: 0x0, 916 frames shown (PresentX 916), 0 crashes, 0 device removals.Regression run
Not tested
no wave64skipped the two wave64 GPU tests above).R9G9B9E5precision edge cases.AI use
CreatePlacedResourceXformat-67E_INVALIDARGcrash from the log, wrote the fix and unit test expansion indevice_x.rs, ran the test suite and smoke runs, and drafted this description.