Repository navigation
Conversation
|
Note Clanker Claude Opus 5.5 is responding on behalf of meetsu Test report for #242 on a second GPU: the RTX 3060 result in the description reproduces on an RTX 5080. Tested
Not tested
AI use
|
|
Test run of Tested
One finding on AMD: the description says a PC device accepts R9G9B9E5_SHAREDEXP neither as a render target nor as a UAV. On this RDNA4 card it accepts both. A small standalone program (not part of XCL) on the same adapter:
So the Review of the change: I checked that every view of a converted texture goes through the new mappings. RTVs ( Not tested: no retail title or Series S profile (I have no unpacked game), no Run and report by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
… current main + ivall#242 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Additional Series X/Anaconda test on NVIDIA: upstream Setup
Tests The first synthetic run produced 49 PASS / 1 FAIL: XMA2 buffer duration was 64 ms versus approximately 100 ms expected. ZIP compression was concurrent; causation is unproven. An isolated repeat produced 50 PASS / 0 FAIL, exit 0. Observed With this patch, both IDs disappeared. The final report showed 155 translated pipelines and zero failed pipelines. The animated intro visibly rendered at approximately 27 FPS. Limits A diagnostic minidump briefly suspended threads for 518 ms approximately 1.7 seconds before the fault, so timing was perturbed. One retail run per configuration; profile and shader caches were reused. No pixel-exact format comparison or full workspace suite was performed. This supports the format/PSO fix on this configuration, but does not demonstrate a fix for the world-loading crash. AI use |
ecdfa5b to
e54a0d4
Compare
|
Thanks to all three of you for the runs. @MesshM: confirmed from your numbers. The conversion now depends on the device, in the one commit (now e54a0d4, rebased on @klNuno: noted that your frames were black. That run had the two local patches, and I have not checked the Series S frames myself either; it is listed under Not tested. @XackiGiFF: thanks for the Series X run; it is in the description (the pipelines naming format 67 as a target get the half-float format on NVIDIA). On the Series S profile I reran Written with Claude Code, Claude Opus 5.5. |
|
Test report on Tested
Regression run Both with Not tested
AI use
Update: the Compared with #605 and #651 (same card, same setup, each merged with #495): none of the three crashes in 180 s, so a run cannot tell them apart here. From the code, checked by me (a comparison drafted by Codex, gpt-6-sol, was the starting point):
|
|
Test report on @XackiGiFF's Series X run above was on Tested
Regression run Base ( This PR ( Not tested
AI use
|
|
Series S mode with this PR on an RTX 3070 (3 runs), and what comes after the R9G9B9E5 format. Not a regression run. Setup: RTX 3070 8 GB (32-lane waves), i9-10900KF, 31.9 GB RAM, Windows 11 Pro 10.0.26200, rustc 1.100.0, release. Build: With this PR the format error from #914 is gone here. The log has What happens next, 3 of 3 runs:
Memory, Series S against the Series X control (same build,
So Series S keeps the machine well clear of the RAM exhaustion I see in Series X (comments on #675), but it does not get as far as the world because of the assert. Not tested: whether the int3 is the title's own check on something Series S specific; the other Series S fix candidates; AMD. AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment. |
Conflicts resolved with upstream's versions where our side held older copies of PRs it has since merged or superseded: - title_textures.rs, vram.rs, device_x.rs: upstream's xcl-dev#248 (ad79932) and xcl-dev#283 replace our earlier merges of xcl-dev#248 / xcl-dev#269 (closed) / xcl-dev#292 (open, conflicts with main now). xcl-dev#242 (R9G9B9E5 targets) is to be merged again on top. - kernelx.rs unmap_away: upstream's condition (also keeps a home the caller committed). - real.rs / host.rs: calls into xcl-dev#292's title_textures::teardown, vram::on_queue_release and title_textures::stats dropped (not in upstream's files); its MADE cache in real.rs stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e54a0d4 to
5683056
Compare
|
Thanks for the three reports. The head is now @MrEjecutor: both of your points are fixed.
@milas6669, @MrEjecutor: the Series S int3 at @yous0serious: thanks for the Series X numbers ( New results on
The details are in the description. (Claude Code, Claude Opus 5.5) |
…refuses them On the Series S profile GTA VI places a 1920x1080 R9G9B9E5_SHAREDEXP texture that is a render target and a UAV (flags 0x300005). NVIDIA refuses the format for both uses (CreatePlacedResourceX: E_INVALIDARG) and the title stops on its own assertion. An AMD RDNA4 card accepts both. When the device is made, CheckFeatureSupport(FORMAT_SUPPORT) for format 67 decides: without RENDER_TARGET, TYPED_UNORDERED_ACCESS_VIEW and UAV_TYPED_STORE, such targets are made R16G16B16A16_FLOAT (pc_resource_desc), and so are their target and pipeline formats (pc_target_format) and their shader views (pc_shader_view_format). Half floats hold every shared-exponent value exactly. A texture that is only sampled stays R9G9B9E5. An R9G9B9E5 shader view of such a target reads alpha as the constant 1 (its component mapping), as the format does: the half floats hold what the pixel shader wrote there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5683056 to
ff28e60
Compare
|
Rebased on
(Claude Code, Claude Opus 5.5) |
|
Independent test run on commit Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
|
I resolved this PR’s conflict with current
The resolution retains the newer B5G6R5/B8G8R8X8 handling from
I could not perform GPU or retail-title validation, so the required smoke/regression runs still need to be repeated on the updated head. AI-assisted (OpenAI Codex, GPT-5). |
On the Series S profile (
device_type = "lockhart"), the retail title places a 1920x1080DXGI_FORMAT_R9G9B9E5_SHAREDEXPtexture that is both a render target and a UAV (flags 0x300005). On NVIDIA the device accepts neither use of that format, soCreatePlacedResourceXgetsE_INVALIDARGand the title stops on its own assertion (a breakpoint exception). That looks like the assertion #156 reports after a refused pipeline on that profile. An AMD RDNA4 card accepts both uses (MesshM's report below), so the format is changed only on a device that does not take it.This handles the format the way XCL already handles the console's R10G10B10 7e3 / 6e4 floats (116 / 117) and B5G5R5A1 / B4G4R4A4 targets. Half floats hold every shared-exponent value exactly: 9 mantissa bits and exponents down to 2^-24 fit in fp16. The texture is a GPU-owned target, a resource of its own, so nothing the CPU lays out depends on its format. Like the B5G5R5A1 case, it costs twice the memory per texel.
What is in it
D3D12.X: R9G9B9E5 render targets / UAVs are half floats on the PC(crates/xcl/src/hle/d3d12x/device_x.rs,crates/xcl/src/hle/d3d12x/real.rs):probe_rgb9e5_targets, called when the device is made:CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT)for format 67. The format is kept when the device hasRENDER_TARGET,TYPED_UNORDERED_ACCESS_VIEWandUAV_TYPED_STORE; otherwiseRGB9E5_AS_HALFis set and the log says which.pc_resource_desc: an R9G9B9E5 texture withALLOW_RENDER_TARGETorALLOW_UNORDERED_ACCESSbecomesR16G16B16A16_FLOATwhenRGB9E5_AS_HALFis set. A texture that is only sampled stays R9G9B9E5.pc_target_format: render target views, pipeline formats and clear values in format 67 follow the same switch.pc_shader_view_format: a shader view in format 67 of a converted texture isR16G16B16A16_FLOAT.pc_srv(real.rs): an R9G9B9E5 shader view of a converted texture reads alpha as the constant 1 (alpha_read_as_one: each read of the fourth component in itsShader4ComponentMappingbecomesFORCE_VALUE_1), as the format does; the half floats hold whatever the title's pixel shader wrote in alpha. Its other component choices stay.console_types_and_descs_become_pc_onestest covers the desc with the switch on and off, the sampled-only case, and the view and target formats;an_rgb9e5_view_of_half_floats_reads_alpha_onecovers the alpha mapping and the views left as they are.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4on ff28e60 (rebased onmainc160d86): 859 passed, 0 failed, 42 ignored over 20 test binaries. SKIPPED:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).R9G9B9E5 render targets / UAVs: half floats (the device does not render into the format or store to it).device_type = "lockhart"),scripts/smoke.ps1 -Seconds 60with that data folder, release builds:mainf4ce27c logsCreatePlacedResourceX ... 1920x1080 format 67 flags 0x300005 – a resource of its own (0x80070057)at 35.3 s and ends on the title's breakpoint exception 0x80000003 (no frame count: the run did not reach its end); this change (e54a0d4) makes the texture, runs the 60 s and shows 937 frames, no crash. The same 60 s on the Series S profile with 5683056 (the previous head, same change): 1330 frames, no crash, peak commit 18417 MB.pc_target_format, the report from XackiGiFF below).9ce2070: the 8 failed pipelines ofmain, among them the debug layer's message 676 (R9G9B9E5 render-target support), went to 0 with this change; the intro ran at about 27 fps.failed_pipelines8 on the base, 0 with this change. milas6669, RTX 3070, Series S: the format error is gone, the first screens run at a steady 30 fps, then the same assertion kernelx: XMemMapPhysicalPagesScatter with no page array unmaps #495 fixes.Regression run
scripts/smoke.ps1 -Game <game folder>(60 s), Series X profile, no input (the title stays at its first menus), release builds;mainat c160d86, this branch's base.main:This PR:
Not tested
AI use
🤖 Generated with Claude Code