Skip to content

Recompiler: complete remaining RDNA2 integer CLAMP=1 saturation (#105) - #202

Open
JGonzalezRodriguez wants to merge 1 commit into
ivall:mainfrom
JGonzalezRodriguez:fix/recomp-int-clamp-followup
Open

JGonzalezRodriguez wants to merge 1 commit into
ivall:mainfrom
JGonzalezRodriguez:fix/recomp-int-clamp-followup

Conversation

@JGonzalezRodriguez

@JGonzalezRodriguez JGonzalezRodriguez commented Nov 23, 2026 •

Copy link
Copy Markdown

Part of #105 item 4 (follow-up to #119). Completes the remaining RDNA2 (GFX10.3) integer CLAMP=1 saturation paths in crates/xcl/src/gpu/recomp/emit.rs and fixes v_mad_i64_i32 SDST sign-bit calculation.

What is in it

  • valu16 & valu_pk (16-bit integer CLAMP=1, preserving untouched half & OP_SEL): v_add_nc_u16, v_sub_nc_u16, v_add_nc_i16, v_sub_nc_i16, v_mul_lo_u16, v_pk_mul_lo_u16, v_mad_u16, v_mad_i16 (plus pre-existing aliases v_add_u16/v_sub_u16/v_subrev_u16). On RDNA2 (GFX10.3), both v_mul_lo_u16 (VOP3) and v_pk_mul_lo_u16 (VOP3P) saturate to 0xFFFFu under CLAMP=1 (confirmed in AMD rocjitsu Rdna2Profile and LLVM VOP3PInstructions.td / llvm-mc -mcpu=gfx1030).
  • valu (32-bit 24×24 / 16×16 MUL & MAD, SAD/MSAD, carry add/sub): v_mul_u32_u24, v_mul_i32_i24, v_mad_u32_u24, v_mad_i32_i24, v_mad_u32_u16, v_mad_i32_i16, v_sad_u32, v_sad_u8, v_sad_hi_u8, v_sad_u16, v_msad_u8, v_add_co_u32, v_sub_co_u32, v_subrev_co_u32, v_add_co_ci_u32, v_sub_co_ci_u32, v_subrev_co_ci_u32 (preserving unclamped SDST/VCC carry/borrow, including VOP2_VOP_SDWA CLAMP=1).
  • valu64 (v_mad_u64_u32, v_mad_i64_i32): Saturates 64-bit VDST under CLAMP=1, and fixes v_mad_i64_i32 SDST to write bit 64 (sign bit of the exact 65-bit signed sum) instead of unsigned carry-out.
  • v_cvt_pkrtz_f16_f32: Left untouched (VOP3 OMOD/CLAMP do not apply on RDNA2 per Mesa ACO b63aa2bb8e and rocjitsu), with regression tests asserting VOP3 OMOD/CLAMP are ignored.
  • Prelude helpers:
    • sat_i16(int r) using select(...) to avoid an NVIDIA 610.57.4 SPIR-V bug that dropped & 0xFFFFu on clamp(r, -32768, 32767) & 0xFFFFu.
    • Branchless sat_u32(uint64_t r) ((uint)r | (0u - min((uint)(r >> 32), 1u))) so Windows SDK DXC 1.7–1.9.2602 does not emit invalid llvm.umul.with.overflow.i32 DXIL (caught by @Kalmarv).

Tested

  • Cross-compiled on Linux (CachyOS, Ryzen 9 7950X3D, rustc 1.98.1 x86_64-pc-windows-msvc via clang-cl 23.1.1 + lld-link + xwin SDK 10.0.26100, DXC 1.9.2609, Proton Experimental + local relaxed vkd3d-proton):
    • cargo build --release --workspace & cargo test --no-run --package xcl --lib: 0 errors, 0 warnings.
    • NVIDIA GeForce RTX 4090 (610.57.4, wave32): gpu::recomp::tests:: — 111 passed, 0 failed, 17 ignored (incl. int_clamp_hlsl_codegen, 3 new GPU clamp tests, and gpu_sparse_vram_descriptors_buffers_and_xmem); xcl_testtitle.exe 47/50 passed (all 18 D3D12.X checks pass).
    • AMD Radeon(TM) Graphics / Raphael RDNA2 (radv 26.2.4, native wave64 + wave32): gpu::recomp::tests:: — 107 passed, 0 failed, 17 ignored (skipping #175 + 3 pre-existing unrelated RADV f64/FMA failures; all new int_clamp tests pass in both wave64 and wave32); xcl_testtitle.exe 47/50 passed (all 18 D3D12.X checks pass).
  • Native Windows 11 (community verifications on head 6c6b000 below):
    • @WarmMilkCodes (AMD Radeon RX 6600 XT RDNA2, Windows 11 23H2): cargo test --workspace -- --test-threads=4 — 655 passed, 0 failed, 0 GPU tests skipped.
    • @PHeitor1 (RTX 5060 Ti, driver 621.24, Windows 11 Pro 26300): cargo test --workspace -- --test-threads=4 — 655 passed, 0 failed, 40 ignored (2 skips: no wave64).
    • @Kalmarv (RTX 5070 Ti, driver 610.74, Windows 11 + SDK DXC 1.7.2308.16): gpu::recomp:: — 186 passed, 0 failed, 18 ignored (and 187/187 merged with #246).

Regression run

  • Not run here (no retail game files on this host); awaiting a scripts/smoke.ps1 run by a tester with a retail title.

Not tested

  • Retail shader packs / retail Xbox titles / scripts/smoke.ps1 regression run.

AI use

  • Antigravity (Gemini frontier model) assisted with implementation, ISA research, dual-GPU tests, independent adversarial code review, and PR summary; all local builds and GPU tests above were executed and verified.

@ethandepstein-del

Copy link
Copy Markdown

Independent static code & RDNA2 ISA audit of c06f53b38 (code inspection only — cargo test not run on macOS; no game files):

Verified clean

  • 16-bit unsigned/signed clamping (emit.rs:2633-2638, 2855-2876): min(a + b, 0xFFFFu), select borrow clamping, sat_i16, and v_mad_u16/v_mad_i16 all stay within 32-bit uint/int without overflow, and sat_i16 masks to 0xFFFF so the OP_SEL high/low-half merge cannot bleed sign bits into the untouched half. Leaving v_pk_mul_lo_u16 wrapping also matches RDNA2 hardware (VOP3P mul_lo ignores CLAMP).
  • 32-bit / 64-bit / carry ops: 24-bit and 16-bit MAD/MUL widening to 64-bit, SAD family, computing {t}_c carry/borrow before saturating VDST, and v_mad_u64_u32 / v_mad_i64_i32 overflow/underflow checks all check out by hand.

Concerns / items to check before undrafting

  1. v_cvt_pkrtz_f16_f32 applies OMOD (emit.rs:3154): Calling Self::out_mods(&m, &fs(..)) applies both OMOD and CLAMP to the f32 inputs before f16_rtz. Per the AMD RDNA2 ISA, OMOD is not supported / ignored on v_cvt_pkrtz_f16_f32 (and pre-conversion OMOD diverges from post-conversion at f16 overflow such as 40000.0 * 2.0 and subnormals). Worth confirming on RDNA2 hardware or restricting v_cvt_pkrtz_f16_f32 to CLAMP only (saturate per half).
  2. v_mad_i64_i32 carry-out (emit.rs:2959-2988): Carry-out remains unsigned w < c (pre-existing), and the new test only checks that clamped and unclamped SDST match (sgpr[30..31] == sgpr[32..33]) rather than asserting expected carry values.
  3. SDWA + CLAMP with sub-dword DST_SEL: Clamps at 32 bits before vwrite truncates to byte/word; only DST_SEL=6 (DWORD) is tested.
  4. Test-coverage gaps (tests.rs:1099-1590):
    • v_subrev_nc_u16, v_add_u16, v_sub_u16, and v_subrev_u16 clamp arms have no tests yet.
    • In the v_add_co_ci_u32 clamp test, odd lanes already produce 0xFFFFFFFF unclamped, so asserting v[16] == 0xFFFFFFFF only distinguishes clamp from wrap on even lanes.
    • Adding exact boundary pairs (0xFFFF + 0 vs + 1, 32767 + 0 vs + 1, -32768 - 0 vs - 1) would tighten regression coverage.

(AI-assisted)

@Kalmarv

Kalmarv commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

One of the three new GPU tests can't pass yet: DXC turns sat_u32 of the 24-bit multiply (emit.rs:3242, helper at line 5321) into llvm.umul.with.overflow.i32 and invalid extractvalues, so the shader fails DXIL validation (DXC 1.7, 1.8 and 1.9 alike). Having the helper return (uint)r | (0u - min((uint)(r >> 32), 1u)) compiles on all three, and with that in the emitted HLSL all three tests pass on an RTX 5070 Ti.

Tested

The head fixes two of its three new GPU tests on Windows/Blackwell. The third reaches a DXIL validation error before dispatch.

Wave32 tests 956a476 and 6da33fa + PR tests PR head c06f53b and merge e43abb8
16-bit integer clamp Failed, wrapped v_add_nc_u16 Passed
Carry and 64-bit MAD Failed, wrapped v_add_co_u32 Passed
32-bit MAD/MUL/SAD and PKRTZ Failed, wrapped v_mad_u32_u16 DXC rejected shader

At crates/xcl/src/gpu/recomp/emit.rs:3242, the unsigned 24-bit multiply feeds sat_u32 at line 5321. Compiling that expression alone as cs_6_6 -HV 2021 produces llvm.umul.with.overflow.i32 and invalid extractvalue instructions with SDK DXC 1.7.2308.16, 1.8.2505.32, and 1.9.2602.17. The complete failing PR test reproduced with both 1.7 and 1.9. The reduced shader compiles on all three when the helper returns (uint)r | (0u - min((uint)(r >> 32), 1u)). With that expression substituted in the emitted HLSL only, all three original PR tests passed on the 5070 Ti, including the packed f16 assertions.

RTX 5070 Ti, 610.74, native Windows D3D12, default SDK DXC 1.7 for the module. Built with cargo test -p xcl --lib --no-run -j 2 and ran gpu::recomp:: --test-threads=1. Direct head: 167 passed, 1 failed, 18 ignored. Merged onto 6da33fa: 173 passed, 1 failed, 18 ignored. The shared 6da33fa control passed 171 existing tests and failed the three carried #202 tests plus two independent #138 probes.

Not tested

Native wave64, Vulkan/vkd3d-proton, and retail shaders. The standalone compiler reduction was a compile-only check.

AI use — Codex, GPT-6.2 Astra.

Follow-up to ivall#119 (issue ivall#105 item 4), covering the remaining RDNA2 VALU
integer instructions that support CLAMP=1 saturation and previously
ignored it:

- 16-bit integer (valu16 / valu_pk): v_add_nc_u16, v_sub_nc_u16,
  v_add_nc_i16, v_sub_nc_i16, v_mul_lo_u16, v_mad_u16, v_mad_i16, and
  v_pk_mul_lo_u16 (plus the legacy u16 aliases already matched in valu16)
- 32-bit 24x24 / 16x16 mul/mad: v_mul_u32_u24, v_mul_i32_i24,
  v_mad_u32_u24, v_mad_i32_i24, v_mad_u32_u16, v_mad_i32_i16 (including
  SDWA CLAMP=1 forms via Self::mods)
- 32-bit SAD/MSAD: v_sad_u32, v_sad_u8, v_sad_hi_u8, v_sad_u16, v_msad_u8
- 32-bit carry-out / carry-in: v_add_co_u32, v_sub_co_u32,
  v_subrev_co_u32, v_add_co_ci_u32, v_sub_co_ci_u32, v_subrev_co_ci_u32
  (VOP3 + SDWA; saturates VDST while preserving unclamped carry/borrow in
  SDST/VCC)
- 64-bit integer MAD (valu64): v_mad_u64_u32 and v_mad_i64_i32 (saturates
  64-bit VDST while preserving the unclamped 65-bit SDST bit: unsigned
  carry-out for u64, bit 64 sign bit of the true 65-bit signed sum for
  v_mad_i64_i32)

Compiler / backend fixes in the HLSL prelude:
- sat_u32(uint64_t) uses branchless (uint)r | (0u - min((uint)(r >> 32), 1u))
  instead of select(r > 0xFFFFFFFFu, ...): Windows SDK DXC 1.7-1.9.2602
  lowers the select form on 64-bit products (v_mul_u32_u24 CLAMP=1) into
  forbidden llvm.umul.with.overflow.i32, failing DXIL validation.
- Adds sat_i16(int) using select instead of
  ((uint)clamp(r, -32768, 32767) & 0xFFFFu) across 16-bit signed saturation
  sites: NVIDIA 610.57.4 (Vulkan / vkd3d-proton) drops the & 0xFFFF mask
  after SMin(SMax(r, -32768), 32767), leaking sign bits into the upper half
  of the destination VGPR.

Adds GPU tests (wave64 + wave32) and a CPU-only HLSL codegen test
covering CLAMP=1 saturation, CLAMP=0 wrapping, boundary pairs, SDST/VCC
masks, SDWA CLAMP=1, and confirming v_cvt_pkrtz_f16_f32 ignores VOP3
OMOD/CLAMP.
@JGonzalezRodriguez
JGonzalezRodriguez force-pushed the fix/recomp-int-clamp-followup branch from c06f53b to 6c6b000 Compare November 23, 2026 21:39
@JGonzalezRodriguez JGonzalezRodriguez changed the title Recompiler: complete integer CLAMP=1 saturation and v_cvt_pkrtz_f16_f32 mods (#105) Recompiler: complete remaining RDNA2 integer CLAMP=1 saturation (#105) Nov 23, 2026
@JGonzalezRodriguez

Copy link
Copy Markdown
Author

Thanks @Kalmarv and @ethandepstein-del for the thorough testing and static ISA review! Rebased onto main (6da33fa) and pushed 6c6b000 addressing every item:

  1. Windows SDK DXC 1.7–1.9.2602 validation failure on sat_u32 (@Kalmarv):
    • Huge catch (our local Linux DXC is 1.9.2609, which didn't trigger the llvm.umul.with.overflow.i32 lowering). Switched sat_u32 to your exact branchless formula (uint)r | (0u - min((uint)(r >> 32), 1u)) and added a CPU-only codegen test (int_clamp_hlsl_codegen) that locks it down and runs on GPU-less Windows CI.
  2. v_cvt_pkrtz_f16_f32 OMOD / CLAMP (@ethandepstein-del & our independent review):
    • Reverted v_cvt_pkrtz_f16_f32 back to f16_rtz(fs(0)) | (f16_rtz(fs(1)) << 16) (verified via Mesa ACO b63aa2bb8e dst(noMods(PkF16)) and AMD rocjitsu that neither OMOD nor VOP3 CLAMP applies on RDNA2, while source ABS/NEG still apply), and updated tests to assert VOP3 CLAMP=1 and OMOD=1 are ignored.
  3. v_mad_i64_i32 SDST (@ethandepstein-del & our independent review):
    • Fixed v_mad_i64_i32 to write bit 64 (the sign bit of the exact 65-bit signed sum sext65(p) + sext65(c)) to SDST instead of unsigned carry-out w < c, simplified signed saturation directly from bit 64 vs bit 63, and replaced clamp == wrap with exact expected SDST bitmask assertions for both v_mad_i64_i32 (0x8E8E_8E8E) and v_mad_u64_u32.
  4. RDNA2 v_mul_lo_u16 & v_pk_mul_lo_u16 CLAMP=1 (note for @ethandepstein-del):
    • Added CLAMP=1 saturation (min(a * b, 0xFFFFu)) for both. There is cross-generation confusion here: RDNA2 (GFX10.3) specifically saturates both, whereas RDNA1 and RDNA3+ wrap — confirmed in AMD's first-party ROCm/rocm-systems rocjitsu (Rdna2Profile: packed_mul_lo_u16_clamp = True, mul_lo_u16_clamp_encodings = {'ENC_VOP3'}, explicitly verified in test_profile_properties.py::test_packed_u16_multiply_clamp: RDNA2 True, RDNA1/RDNA3/RDNA3.5/RDNA4 False) and LLVM AMDGPU (VOP3PInstructions.td V_PK_MUL_LO_U16 + llvm-mc -arch=amdgcn -mcpu=gfx1030).
  5. Additional test coverage (@ethandepstein-del):
    • Added exact 16-bit boundary pairs (0xFFFF + 0/+1, 32767 + 0/+1, -32768 - 0/-1), v_cvt_i16_f16 NaN/+inf/-inf, v_add_co_ci_u32 / v_sub_co_ci_u32 / v_subrev_co_ci_u32 0xFFFF_FFFF carry/borrow wraparound cases, SDWA CLAMP=1 tests for V_MUL_I32_I24 / V_ADD_CO_CI_U32 / V_SUB_CO_CI_U32, and regression checks confirming min/max/med3_i16 are unaffected by the NVIDIA 610.57.4 sign-leak bug.

Re-verified on both RTX 4090 (110/110 + gpu_sparse_vram_descriptors_buffers_and_xmem) and AMD Raphael RDNA2 / RADV (107/107, wave64 + wave32). Moving out of draft now.

AI-assisted.

@JGonzalezRodriguez
JGonzalezRodriguez marked this pull request as ready for review November 23, 2026 21:39
@Kalmarv

Kalmarv commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Re-checked 6c6b000 against my earlier comment.

Tested

RTX 5070 Ti, driver 610.74, native Windows D3D12, SDK DXC 1.7.2308.16. Built with cargo test -p xcl --lib --no-run -j 2, run with --test-threads 1.

build #202 tests + gpu_clamp_and_omod_per_instruction gpu::recomp::
main 60565c4 + 6c6b000 5 passed 186 passed, 0 failed, 18 ignored
the same + #246 e120969 6 passed (with valu64_clamp_and_omod_hlsl) 187 passed, 0 failed, 18 ignored

Not tested

  • AMD hardware, native wave64, Vulkan/vkd3d-proton, and DXC 1.8 / 1.9 on this run.
  • I didn't verify the RDNA2-specific claims (v_mul_lo_u16 / v_pk_mul_lo_u16 saturating under CLAMP, and v_mad_i64_i32 SDST as bit 64 of the 65-bit sum) on console hardware. Here they only pass the PR's own tests.

🤖 Claude Opus 5.5

@WarmMilkCodes

Copy link
Copy Markdown
Contributor

Tested #202 6c6b000 merged onto main 9ab7d76 on AMD Radeon RX 6600 XT (RDNA2), driver 32.0.21045.29003, Windows 11 23H2 (22631.6199): pass

cargo test --workspace --no-fail-fast -- --test-threads=4, no XCL_SAMPLE_* data: main 651 passed / 0 failed; this 655 passed / 0 failed, 0 GPU tests skipped. The PR's 4 new tests pass on real RDNA2 hardware; no new failures.

@PHeitor1

Copy link
Copy Markdown

Tested 6c6b000 merged onto main 9ab7d76 on RTX 5060 Ti 8 GB (Blackwell, 32-lane waves), NVIDIA 621.24, Ryzen 5 5600X, Windows 11 Pro 26300 (native), rustc 1.100.0 MSVC, debug, cargo test --workspace --no-fail-fast -- --test-threads=4, no XCL_SAMPLE_*. Baseline main 9ab7d76: 651 passed, 0 failed, 40 ignored.

Pass: 655 passed, 0 failed, 40 ignored. GPU skips: the same 2 as on main (no wave64).

Run and written with Claude Code (Claude Opus 5.5).

@requiemsnkrp

Copy link
Copy Markdown

Tested 6c6b000 on NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.1714 / 617.14, 32-lane waves), Ryzen 5 5600X, Windows 11 Pro 25H2 (26200.9974), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17 (Windows SDK), debug: pass.

Tested

  • cargo test --workspace -j 4 --no-fail-fast -- --test-threads=4 --skip test_title_runs_and_game_folder_is_untouched --skip test_title_draws_with_a_root_signature_under_the_debug_layer: 623 passed, 0 failed, 40 ignored
  • SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware
  • PR's tests: gpu_int_clamp_16bit ... ok, gpu_int_clamp_32bit_mad_mul_sad ... ok, gpu_int_clamp_carry_and_64bit ... ok, int_clamp_hlsl_codegen ... ok (GPU ones ran, not skipped, on Ampere)
  • main 4017f8f on the same machine, same command: 650 passed, 0 failed, 40 ignored, same 2 SKIPPED. The head is on 6da33fa, 55 commits behind main, hence the lower total.
  • Tested the head itself; it merges cleanly into main 4017f8f (git merge-tree), the merge result was not tested.
  • Not run here: the two e2e tests that run the test title (test_title_runs_and_game_folder_is_untouched, test_title_draws_with_a_root_signature_under_the_debug_layer): they open the XCL game window and this PC was in use (the 2 "filtered out").

Not tested

  • Retail title regression run (no game copy here).
  • The merged tree (head on current main).

AI use: Claude Code with Claude Opus 5.5 (ran the tests and wrote this report).

@Rednaxeh

Copy link
Copy Markdown

RDNA3: Radeon RX 7800 XT (native 64-lane waves) – 6c6b000 merged onto main 85bdf21: 669 passed, 0 failed; regression run on a retail title (no removal, no crash, frames ≥ main)

Tested the merge commit 07b7ba0 = main 85bdf21 + this PR's head 6c6b000 (clean merge, no uncommitted changes). No XCL_SAMPLE_* variables set, no game data for the test suite.

GPU / driver AMD Radeon RX 7800 XT (16 GB, RDNA3), driver 32.0.32029.2010; 32–64-lane waves, mesh shaders, SM 6.6
CPU / RAM AMD Ryzen 7 7800X3D, 32 GB DDR5-6000
OS Windows 11 Pro 26300 (native)
Toolchain rustc 1.100.0 x86_64-pc-windows-msvc, debug; DXC 1.9.2602.17 (Windows SDK 10.0.26100); system XGameRuntime 10.0.26100.9656

Whole suite – .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4) with XCL_REQUIRE_GPU=wave64,mesh, so a skipped GPU test would have failed:

passed failed ignored SKIPPED
main 85bdf21 665 0 41 0
this PR merged (07b7ba0) 669 0 41 0

The 4 extra passes are this PR's tests (int_clamp_hlsl_codegen, gpu_int_clamp_16bit, gpu_int_clamp_32bit_mad_mul_sad, gpu_int_clamp_carry_and_64bit). By exact name with --test-threads=1: 4 passed natively and 4 passed with XCL_SPLIT_WAVE64=1 (the 32-lane split form on AMD); gpu::recomp:: under XCL_SPLIT_WAVE64=1: 186 passed, 0 failed, 18 ignored. So the clamped forms compile in the AMD driver's compiler and give the expected values on 64-lane hardware, in both wave forms.

Regression run – scripts/smoke.ps1 -Game <folder> on a retail title, release builds of main 85bdf21 and of the merge 07b7ba0, no uncommitted changes, same machine, the three runs one after the other in this order. All three: exit 0x0, 0 device removals, 0 crashes. The gpu: line names the wrong adapter (the script's known issue, #281 / #282 / #285); the GPU was the RX 7800 XT. Blocks unedited.

  1. main, first run on an empty cache/ (the First run of a title: the coherent window is 512 MB until uma_coherent.txt has been learned (menus at ~12 fps, then 30) #284 first-run window; a warm-up, not for comparison):
xcl-smoke v1
commit: 85bdf2193e7a793d568485b35f9cae5e8159bc39
gpu: Meta Virtual Monitor
title: retail-game6
seconds: 60
exit: 0x0
frames shown: 372 (PresentX 372)
presents per 2 s (last 3): 8 8 7
device removals: 0
crashes: 0
peak commit: 15626 MB
  1. main 85bdf21, second run:
xcl-smoke v1
commit: 85bdf2193e7a793d568485b35f9cae5e8159bc39
gpu: Meta Virtual Monitor
title: retail-game6
seconds: 60
exit: 0x0
frames shown: 421 (PresentX 421)
presents per 2 s (last 3): 8 8 8
device removals: 0
crashes: 0
peak commit: 15565 MB
  1. this PR merged onto main (07b7ba0), first run with its exe:
xcl-smoke v1
commit: 07b7ba0d119806559a40f72e928fda3302135526
gpu: Meta Virtual Monitor
title: retail-game6
seconds: 60
exit: 0x0
frames shown: 816 (PresentX 816)
presents per 2 s (last 3): 8 7 8
device removals: 0
crashes: 0
peak commit: 15550 MB

Reading: more frames than main (816 vs 421) and a slightly lower peak (15550 vs 15565 MB), no device removal, no crash. The 7–8 presents per 2 s at the end of the minute are the same on both builds: since #283 (9bd7635, in 85bdf21) the title's intro movie is drawn instead of green, and its per-frame plane upload is what sets the rate during the movie (8–9 presents / 2 s on an RX 7800 XT in the #283 thread too, with the detile profiled there). Not this PR's doing; on 9ab7d76 the same minute ran at 60 / 2 s with the green movie (see my #245 comment).

Not tested: release build of the test suite not run; no RDNA4 / RDNA2 here (RDNA2 is in the RX 6600 XT comment above).

Report written with Claude Code (Claude Fable 5.1) from the runs above; the commands and counts are from this machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants