fix(agc): take RADV's fill-memory kernel as a buffer fill #6543
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6543"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-15T19:34:57Z.
What
The fill HLE now takes RADV's
fill_memorycompute kernel as a buffer fill. RADV initializes and fast-clears DCC keys with this kernel, so the DCC key tracking now sees those key fills where they are in the command stream. This fixes vkQuake's black frames: for the length of every item-pickup flash, the scene went black and only the HUD was drawn.Title. vkQuake (PPSA99010): mihawk-99's PS5_vkQuake, rendering through their RADV fork PS5_Mesa (Mesa 25.2).
Cause. On a pickup, vkQuake's
r_passes.cruns its screen effects:color_buffers[1]instead of[0].color_buffers[0](0x4007000000, 3840x2160 A2B10G10R10, DCC keys at 0x4008fe0000) from UNDEFINED to GENERAL. RADV'sradv_init_color_image_metadatathen fills its keys withDCC_CLEAR_0000throughradv_fill_memory.screen_effectscompute pass reads[1], blends in the bonus-flash colour and writes[0]as a storage image.[0], and the post-process subpass presents it.radv_fill_memoryuses a compute kernel for 4 KiB and up (here 0x28000 bytes). The kernel stores through a global address, so as an ordinary dispatch its writes name no range: the recorder notes no write over the keys, andWaitForKeyWritershas nothing to wait for. The tracking first saw the new keys once the GPU had run the fill. That was partway through recording the UI pass, after the compute pass had already written[0].StorageTexture::Refreshthen read "uncompressed → 0000" as a fast clear made after those results: it dropped all 510 pending units and cleared the image to black.Debug traces of one pickup frame (local prints, not in this PR):
[0]dirty while its guest keys still read uncompressed, so no first-write store happens;With
APS5_STORE_AT_LABEL=1the pickup frames render correctly, at about 11 fps.How.
MatchClampedGlobalFill(BufferFill.cpp) matches the 16-byte variant of the kernel.v_mad_u32_u24, fourv_mov_b32of the value,v_lshlrev_b32by 4,v_min_u32with the largest offset,global_store_dwordx4,s_endpgm).user[2..3], the largest store offset inuser[4]and the value inuser[5], which is RADV'sfill_constants.min(thread * 16, user[4]), so the fill coversmin(threads * 16, user[4] + 16)bytes.fillBuffertries it afterMatchConstantDwordFill. From there the existing path applies:storeBufferFillclassifies the range, a key fill reachesNoteKeysFill/NoteKeysFillOnGpu, and the fill is recorded on the GPU.b8d306035): the compute pass stores uncompressed keys, and the UI pass keeps its results.MatchConstantDwordFill(b83755ac9).libSceAgcDriver.mdlists what is not covered:Where it matters. Titles and ports that render through PS5 RADV. The fills RADV runs through this exact kernel now go through the fill HLE instead of a recompiled dispatch: DCC initializations, fast clears and
vkCmdFillBuffer, when they use the 16-byte variant with this dispatch shape and a 16-byte aligned address and largest offset. RADV's source allows 4-byte alignment; those fills, and other encodings of the kernel, still run as dispatches.According to @milescoviello's measurements, Ruffle (PPSA68091), Rush 2 (PPSA69423) and Wave Race 64 (PPSA69424) clear their CMASK, FMASK and DCC with the same kernel. On its own this PR makes Ruffle stop: its CMASK clear to
0xccnow lands before the target's first use, andmainreads that code as a DCC key. #6669 reads multisampled CMASK by its MSAA codes and fixes that. @milescoviello and @screamm both ran Ruffle to the limit with this PR and #6669 together, so this PR depends on #6669.Related: @gjonn's #5497 reads DCC keys behind another fill kernel's fast clear. It is a different kernel; neither PR depends on the other.
Tested
Windows 11, MinGW-w64 GCC 15.2.0, Release. The tests ran on this branch rebased onto main
51cee9031; the vkQuake runs used the first head, on main03c4cb5e7.vkQuake (PPSA99010), RTX 4060 Laptop, driver 591.86, 3840x2160, demo loop with
r_rtshadows 0andANYPS5_PRESENT_MODE=immediate. Each run dumps every second presented frame at 1/16 scale (APS5_DUMP_FRAMES=500 APS5_DUMP_FRAMES_EVERY=2 APS5_DUMP_SCALE=16), and a dump counts as black when its mean RGB is under 3 per channel:main
fa9365ca7(the change does not touch anything that differs between it and03c4cb5e7): 25 of 500 dumps black, in two runs of 13 and 12 consecutive dumps, one at each of the demo's first two pickups. In an earlier run of a branch build, 30 of 500 were black, in three runs.this PR: 0 of 500 black.
The demo's first two pickups ("You got the Grenade Launcher", "You get 3 rockets") show the scene under the pickup messages (attached image: top row main, bottom row this PR, at the same pickups). The
[dcc-keys]trace now showstitle fills keys 0x4008fe0000+0x28000 with 00000000 ...at each fill.Tests
New
agc_driver_clamped_global_fill, which submits everything throughsceAgcDriverSubmitDcb:0000, the same image store, and an end-of-pipe label;It passes 3 of 3 on the RTX 4060, and on the Intel UHD (
VK_LOADER_DRIVERS_DISABLE=*nv-vk*) and lavapipe.Negative check with
APS5_NO_FILL_HLE=1, so the kernel runs as onmain:once the fill landed, the keys read 0000 against uploaded uncompressed, so the next key read drops the write;the flush did not wait for the fill's range, the race @fma-rc described.RTX 4060, one at a time, on the first head:
agc_dcc_key_sharing,agc_display_buffer_dcc,agc_storage_integer_clear,agc_metadata_pass,agc_driver_cmask_fast_clear,agc_driver_constant_dword_fill,agc_driver_dcc_keys_first_write,agc_driver_depth_fast_clear,agc_driver_depth_fast_clear_submit,agc_driver_depth_htile_write,agc_driver_dword_pattern_fill,agc_driver_fill_cover_keys,agc_driver_memory_value_fill,agc_driver_multisample_fill_host_only,agc_driver_pattern_buffer_fill,agc_driver_pipelined_fill,agc_driver_staged_clear_sampled_read,agc_driver_native_depth_clears,agc_driver_native_depth_clear_refusalsandagc_driver_resource_cache_storage_clearpass. On the rebased head,cmask_fast_clear,constant_dword_fill,dcc_keys_first_write,dword_pattern_fill,fill_cover_keys,memory_value_fill,pattern_buffer_fillandpipelined_fillpass again.Intel UHD and lavapipe:
constant_dword_fill,dcc_keys_first_write,fill_cover_keys,pattern_buffer_fillandpipelined_fillpass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)BufferFill.cpp(the dword pattern-fill matcher), and many open PRs add lines tolibSceAgcDriver.md; the overlap is textual only.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T20:24:11Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
docs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdImported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-16T00:51:07Z.
Review: CHANGES_REQUESTED
The matcher reads the kernel the way RADV writes it (I decoded the 11 words: thread id times 16,
v_min_u32against the largest offset, oneglobal_store_dwordx4), and with the PRagc_driver_clamped_global_fillpasses on an RTX 5080, RADV (Radeon 610M) and lavapipe on main5d9dcc42d.The test does not show the problem the PR fixes, though. With
APS5_NO_FILL_HLE=1, so the dispatch takes main's ordinary path,ExecuteTestsfails on all three devices withmismatch at 0 ... got 3405691582. With a 200 ms sleep added afterFlushGpuWrites, the same run passes 3 of 3 on each device: the ordinary dispatch writes the right bytes, only after the readback.WaitIdlewaits for the driver to handle the submission (Lifecycle.cpp:167) andFlushForAccessonly syncs on pending writes a descriptor named (Recorder.cpp:1024), so nothing waits for these global stores. The red on main is that race, not the late DCC key tracking. Could the test assert what a later reader sees, for example that the fill's range is noted as a pending write when the dispatch is decoded, so a flush or a key wait syncs on it?Correction to my earlier note here, which said vkQuake did not get far enough to check: that run had
r_rtshadowson. With your settings (r_rtshadows 0, the demo loop,ANYPS5_PRESENT_MODE=immediate, 500 dumps of every second present at 1/16 scale, black meaning a mean RGB under 3) on a laptop with a Rembrandt iGPU (RADV), main5d9dcc42dgave 25 of 500 black dumps and this PR 0 of 500. The black dumps show only the HUD and the pickup text; the PR's dumps at the same points show the scene. I also ran the ps5-opengl showcase 1.0.2 (PPSA99005), Animal Well and Balatro to their menus on main and with this PR, 90 to 120 s each: same pictures, no stop. PS5_RetroArch 2.0.0-beta-2 (PPSA99169) exits at start on both builds here, so it tells nothing about this change.Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T03:35:09Z.
A title that runs this kernel, with one interaction to know about. Ruffle (PPSA68091), Rush 2 (PPSA69423) and Wave Race 64 (PPSA69424) all clear their CMASK, FMASK and DCC with it. Their dispatches match exactly: user data
0, 0, address, address high, last offset, pattern.The interaction is with Ruffle's multisampled target, whose CMASK it clears to
0xccevery frame. With this kernel as a fill, that clear is ordered before the target's first use, and the CMASK seed then reads0xcc.maindoesn't model that code (0xccisCMASK_MSAA_FMASK_CLEAR_0_COLOR_EXPANDED, whichmainreads as a DCC key), so Ruffle stops on it. Without this PR the seed usually reads before the clear lands, somainruns. Linux, RTX 4070 Ti, NVIDIA 595.99, 60 s with scripted pad input, three runs each:main5d9dcc42d2fc4fe5e0)the CMASK 0x4004600000 of a multisampled color target reads as mixed, which is not modeled(3 of 3)#6669 reads the multisampled CMASK by its MSAA codes, so
0xcc,0xddand0xeecount as "no fast clear" like0xff. With both, Ruffle runs about 1,250 of these fills per minute as buffer fills, and presents stay the same. Merging #6669 first, or together, avoids the regression.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-16T07:38:34Z.
Independent component validation of head
2fc4fe5e0adc822ea8f7689053ec289c765d1926, integrated onto main5d9dcc42d2ec5401aebd089028b8d4d7410a77b4:clamped_global_fill,constant_dword_fill,dword_pattern_fill,memory_value_fill,pattern_buffer_fill,pipelined_fill,fill_cover_keys, anddcc_keys_first_write(all prefixedagc_driver_). This is 80 test processes; longest was 5.54 seconds. Library, convention and test-registration checks passed.10de:2c02, driver 610.62) and AMD Radeon(TM) Graphics (1002:13c0, driver 32.0.21036.18), Windows 11 Enterprise 10.0.26200. Including the initial and restored checks, the new fixture passed 15 processes per physical GPU.Driver::fillBuffer, keeping its implementation and the original public fixture. That produced the expected output assertion failure five times per GPU. Restoring the exact positive composition passed five times per GPU. This is an omission control, not an unmodified-main comparison.BufferFill.cppandClampedGlobalFill.cpp(14.87 seconds total analysis).I also cross-checked the public RADV caller and NIR builder at that pinned source revision. The 64-thread group, clamped offset and repeated value agree with the matcher's range calculation for its guarded 16-byte-aligned subset. This does not establish other compiler encodings.
Two coordination points:
These are bounded public component tests; I did not rerun vkQuake, Ruffle or Sonic, and make no new title/FPS claim. Project shader caching was disabled; driver caches were not controlled. AI-assisted validation and report: yes.
Carry-forward validation on main585, 2026-10-17 UTC
Your exact2fc4 commit is now carried with original authorship into fork integration6146eef46b, on main5859889 plus our retained bring-up fixes. The historical broad stack already had an equivalent11-word constant-fill matcher; our narrower integration had omitted it. This restores the existing PR's implementation rather than creating a duplicate.
Full Windows/Linux relinker/library builds pass.
clamped_global_fill,constant_dword_fill,fill_cover_keysand4-samplemsaa_dcc_cleareach pass3/3 on verified NVIDIA RTX5080 (10de:2c02, driver32.0.16.1062) and AMD Radeon Graphics (1002:13c0,32.0.21036.18), Windows11 Enterprise26200/GCC15.2r7:12 passes per GPU, zero skips. The same groups give12 passes on Ubuntu24.04/GCC13.3/llvmpipe LLVM20.1.2. Selected Cppcheck/clang-tidy parse both changed TUs cleanly; conventions pass.A normal Sonic PPSA99902 RTX5080 run with all127 rebuilt libraries still reaches NOW LOADING and the resident8x DCC refusal at
0x40819f4000+0x87000after28.101s. Seven captures, no input/timeout, exit0xC0000409. Standard a515 conversion and the isolated prior runtime assets/user state were reused; no fresh-state or isolated-PR causal comparison is claimed. Protected originals remain unchanged;142 prior code/frame/user/config files were hash-verified restored, and new code/captures are separately retained. This run has no producer observer, so it supplies no exact program-address attribution. #5336 tracks the remaining resident-clear transition. No AMD title run or gameplay result is claimed.AI-assisted validation/reporting: Codex; author responsible.
Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-16T08:33:40Z.
Windows cross-check of this PR alone and with #6669, on
main5d9dcc42d(this PR2fc4fe5e0, #66695fb0245a6, merged without conflicts). Windows 11 Pro 26220, RTX 4070, NVIDIA 596.21, WinLibs GCC 15.2.0, Release. Titles relinked per run, 125 s limit.Ruffle (PPSA68091), Cross pressed at 8, 11 and 14 s ("Play the demo"):
mainwhat(): AGC graphics: the CMASK 0x4004600000 of a multisampled color target reads as mixed, which is not modeledSo the Linux result above reproduces on Windows/NVIDIA: this PR should land together with or after #6669. With both, the demo's presented frames look the same as on
main(on this busy host the demo runs at about 4 fps and presents black onmaintoo; that is not from either PR).vkQuake (PPSA99010), shareware data, demo loop,
r_rtshadows 0,ANYPS5_PRESENT_MODE=immediate, 500 dumps of every second present at 1/16, black = mean RGB under 3:mainOne run with this PR stopped at 107.9 s on
guest texture descriptor uses corner sampling which is not implemented; the same line also appears in an unrelatedmainrun of vkQuake on this machine, so I don't count it against the PR.Tests:
agc_driver_clamped_global_fill3 of 3 alone and on the stack. With theMatchClampedGlobalFillcall removed fromfillBufferit fails 3 of 3 withmismatch at 0 (groups 1, largest offset 1008): got 3405691582, expected 0, the same race @fma-rc describes, so I agree the execution test doesn't show the key-ordering fix. On the stack, 12 relatedagc_driver_tests (fills, DCC keys, CMASK, multisample) pass 3 of 3;agc_driver_store_over_untrackedis flaky here onmaintoo (46 of 65 pass onmain, 23 of 45 on the stack, 13 vs 12 of 20 when interleaved). Non-GPU suite on the stack: 834 of 837 pass, 2 skipped,hardware_oracle_comparehit its 20 s ctest limit once and passed on rerun.check_conventions.pyandgit diff --checkclean.Not checked: AMD or Intel, Linux, the full GPU
agc_driver_suite, Rush 2 / Wave Race 64.Written with Claude Code assistance (validation by a subagent, reviewed in this session).
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-17T19:36:48Z.
A data point for this PR, on Linux with an RTX 4070 Ti (NVIDIA 595.99.02), base
main5859889b2.With this PR (2fc4fe5e0), the CMASK and DCC clears of Rush 2 (PPSA69423), Wave Race 64 (PPSA69424) and Ruffle (PPSA68091) arrive as buffer fills. Without it, the multisampled target is imported before its clear lands, and all three stop at
multisampled DCC CMASK compression or register clear is not implemented.With #7250 on top, which takes those fills as the target's fast clear:
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-18T00:57:55Z.
Thanks, all. I've pushed 7bfb645ff, rebased onto main
51cee9031.@fma-rc, you're right: the old execution test failed on
mainonly because of the read-back race, not because of the key order. The test now does vkQuake's sequence directly:0000, the same store, and an end-of-pipe label;With
APS5_NO_FILL_HLE=1it fails every time: 3 of 3 on an RTX 4060, and once each on an Intel UHD and lavapipe. The message isthe keys read 0000 against uploaded uncompressed, so the next key read drops the write, which is the vkQuake failure. With the PR it passes on all three. The range part stays, now worded as what it checks: a flush right after the fill reads the filled dwords. Thanks also for the vkQuake run on the Rembrandt iGPU.@milescoviello, @screamm, thanks for finding Ruffle. I've added #6669 under Depends on and noted why in the description: this PR orders Ruffle's
0xccCMASK clear before the target's first use. Thanks too for Rush 2 and Wave Race 64, and for the Windows vkQuake numbers.@Amoenus, done: the description now says only this kernel shape with a 16-byte aligned address and largest offset is taken, and that RADV's 4-byte-aligned fills and other encodings still run as dispatches.
Imported from boykopovar/AnyPS5. Originally posted by karanvora2599 on 2026-10-18T01:30:34Z.
vkQuake (PPSA99010) at the demo's first two pickups, from the dense dumps in the description (every second present at 1/16 scale). The top row is
mainfa9365ca7: the scene is black and only the HUD and the pickup text are drawn. The bottom row is this PR at the same pickups: the scene is drawn under the pickup messages.Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-18T01:45:30Z.
Review: APPROVED
Reran
agc_driver_clamped_global_fillon 7bfb645ff on the Rembrandt iGPU (680M, RADV). WithAPS5_NO_FILL_HLE=1it failed 3 of 3 withthe keys read 0000 against uploaded uncompressed, so the next key read drops the write; without it, it passed 3 of 3. The test now fails for the vkQuake reason and not the read-back race, which was my objection, so I'm clearing my earlier review. I have not run it on NVIDIA or lavapipe this time.Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-18T13:47:02Z.
Rechecked on head
7bfb645ff, merged ontomain0d078f75dwithout conflicts. Windows 11 Pro 26220, RTX 4070 (driver 596.21), WinLibs GCC 15.2.0 r7, Release.agc_driver_clamped_global_fillpasses 3 of 3, both alone and with #7250. WithAPS5_NO_FILL_HLE=1it fails 3 of 3 on both:a write recorded after RADV's key fill: once the fill landed, the keys read 0000 against uploaded uncompressed, so the next key read drops the write. So on NVIDIA too, the test goes red and green for the vkQuake reason.agc_driver_graphicsandagc_driver_msaa_dcc_*pass 3 of 3.r_rtshadows 0, demo loop,ANYPS5_PRESENT_MODE=immediate, 500 dumps of every second present at 1/16). Black dumps: 45 and 51 of 500 onmain(HUD and pickup text only), 0 and 0 of 500 with this PR. No run stopped.mainstops 2 of 2 at about 14 s onmultisampled DCC CMASK compression or register clear is not implemented.writes to a resident multisampled DCC target or its metadata are not implemented. #6869's text names the range: DCC0x4004606000+0x14000, 4 samples.reads as mixedstop did not appear in any of 5 runs.main, Ruffle's target takes #5939's DCC path, so it never reaches the CMASK seed that #6669 changes. Ruffle ran to the limit with this PR and #7250 and without #6669, so for Ruffle the partner PR is now #7250. I didn't retest #6669 itself.check_conventions.pyandgit diff --checkare clean.Not checked: AMD, Intel, Linux, Rush 2, Wave Race 64.
Written with Claude Code assistance (validation by a subagent, reviewed in this session).
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-18T18:30:13Z.
An update to my data point from yesterday, on the current heads. #7253 is in
mainnow, so these two titles need only this PR and #7250. Linux, RTX 4070 Ti (595.99.02), 60 s with pad input:main13e48ed290multisampled DCC CMASK compression or register clear is not implementedmain385ed71f2c+ this PRwrites to a resident multisampled DCC target or its metadata are not implementedmain5057673804+ this PR (7bfb645ffa) + #7250 (5be36f095e)AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T07:38:32Z.
Rebased onto current main (only conflict: the
libSceAgcDriver.mddebt adjacency) and rebuilt;agc_driver_clamped_global_filland the rest of the suite pass on the rebased head. The matcher, its alignment and dispatch-shape guards and the key-order test check out, and the independent runs in the thread cover NVIDIA, RADV and lavapipe. Merging through the queue.