Repository navigation
Conversation
A title that presents a plane in R11G11B10_FLOAT or R9G9B9E5_SHAREDEXP got no picture for that present: swap_format did not know the format, so backbuffer_like filtered the plane out in present_now and a single-plane present returned before anything was drawn. Such a plane now gets an R16G16B16A16_FLOAT swap chain and goes through the compositor's draw, because a copy cannot change the format. A packed float plane the compositor cannot draw (no compositor, no pipeline, no readable view) is not presented and warns once. Only the first plane is taken in a packed float format; overlays and note_execute are unchanged. Test compositor_converts_a_single_packed_float_plane (WARP) fails without the fix (swap_format(R11G11B10_FLOAT) returned None) and passes with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Ran the packed-float compositor test and the Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.98.1 (48a229cea 2026-09-01), MSVC 14.44.35207, DXC 1.9.2609.5, debug build, Both counts match the description at this exact head: the single packed-float plane conversion test and the 31 tests of the Not tested: the full workspace suite, a title that presents a packed float plane, the AI-assisted (OpenCode), model: MiMo-V2.6-Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
|
@throny I tested both packed-float source formats on my RTX 3080 (driver 616.92) using
The two stripes came back as RGBA I used Codex GPT-6.2 Sol to extend and run the fixture. A separate GPT-6.2 Sol agent checked the source and saved results. Codex GPT-6.2 Astra drafted this comment. I reviewed and approved this comment before posting. |
|
merge-check AI-written and posted by Foniass without a human check of each point. |
|
merge-check claim |
|
merge-check |
A title that presents a plane in a packed float format (
R11G11B10_FLOAT,R9G9B9E5_SHAREDEXP) got no picture for that present:swap_formatdid not know the format, sobackbuffer_likefiltered the plane out inpresent_nowand a single-plane present returned before anything was drawn. Such a plane now gets anR16G16B16A16_FLOATswap chain and goes through the compositor's draw (the path that already scales a sub-rect plane and blends overlay planes), because a copy cannot change the format.What is in it
crates/xcl/src/hle/d3d12x/present.rs:swap_format: the two packed float formats map toR16G16B16A16_FLOAT.plane_view_format/needs_conversion(new, private): the format the compositor samples a plane in, and whether a plane has to be drawn instead of copied.needs_compositor: true for a single full-rect plane that needs conversion; the compositor's SRV usesplane_view_format.Compositor::can_draw(the checksrecordmade, moved out):present_nowasks it beforeensure_swapchain. A packed float plane the compositor cannot draw (no compositor, no pipeline, a plane no view can read) is not presented and warns once: no resize to a float swap chain, no undefined buffer on screen, as before this change.note_execute(the fallback for titles that do not callPresentX) keeps ignoring packed float targets, as before: there they are scene targets, not back buffers.compositor_converts_a_single_packed_float_plane(WARP): the format decision for both formats,can_drawfor a readable and aDENY_SHADER_RESOURCEplane, then anR11G11B10_FLOATplane of (1.0, 0.5, 0.25) drawn into anR16G16B16A16_FLOATtarget and read back.Tested
cargo test -p xcl --lib -j 4 -- compositor_converts_a_single_packed_float_plane --test-threads=2without the fix (test only): 0 passed, 1 failed (swap_format(R11G11B10_FLOAT): leftNone, rightSome(R16G16B16A16_FLOAT)).cargo test -p xcl --lib -j 12 -- present, with the fix: 31 passed, 0 failed, 0 ignored.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 2885 passed, 2 failed, 51 ignored. The two failures:gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16also fails onmain(9dfbe3e), run alone.gpu::recomp::dxc::cache_tests::concurrent_cache_misses_compile_once("cached-only waited 285.6092ms for the compile", a timing check under the suite's load) passes when run alone on this branch and onmain.SKIPPEDlines.no wave64(21, this GPU is wave32 only):gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole,gpu::recomp::lower::tests::{a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu},gpu::recomp::lower_dxil::tests::*(a_per_lane_2d_or_3d_group_runs_on_the_gpu, bridged_dpp, const_and_null_mask_operands, f16 arithmetic and packed, f32 arithmetic / compares / conversions / rounding / three-source / transcendentals, f64, integer arithmetic and carries, mask_ff0_and_flbit),gpu::recomp::tests::{gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware}.Others:
heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap(no heap windows, opt-inXCL_HEAP_WINDOWS=1),shaders::tests::pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache: Windows Developer Mode is required).Regression run (
scripts/smoke.ps1 -Game <title folder>, same title, 60 s)main (9dfbe3e):
this PR's head (1d54e15):
Not tested
PresentXis not read, so the FP16 swap chain is read as linear scRGB: the brightness of a display-referred packed float plane is unverified.R9G9B9E5_SHAREDEXPplane: only the format decision is tested (the draw test usesR11G11B10_FLOAT).present_nowitself (it needs a window, a swap chain and a title queue): the test covers thecan_drawdecision it is made on, on WARP only.Compositor::record; whichever merges second needs a one-line rebase.AI use
main, ran the test suite and the smoke runs, and prepared this PR.🤖 Generated with Claude Code