perf(agc): handle the zero dword fill kernel as a buffer fill #4012

Merged
queeeef merged 2 commits from upstream-pr/4012 into main 2026-10-13 13:21:01 +00:00
queeeef commented 2026-10-11 21:15:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by queeeef on 2026-10-11T21:15:27Z.


What

A wave64 compute kernel that stores dword 0 at group * 64 + thread through a buffer descriptor is run as a buffer fill of zeros, next to the existing dword pattern-fill kernel (#2081). The kernel is 6 words:

v_lshl_add_u32 v0, s4, 6, v0
v_mov_b32 v1, 0
buffer_store_dword v1, v0, s[0:3], 0 idxen
s_endpgm

Palworld (PPSA23126) clears the DCC keys of its render targets with it every frame. As a shader dispatch its stores were unknown to the DCC key proofs, so each later refresh of those keys waited for the GPU to finish.

MatchZeroDwordFill takes a dispatch as this fill only when all of these hold, and otherwise leaves it to the recompiler:

  • the 6 code words match exactly;
  • 4 user SGPRs, so the group id is in s4;
  • group id X enabled, 64×1×1 threads, not a partial dispatch, 1×1 groups in Y and Z;
  • the descriptor has stride 4, no swizzle, no add_tid and out-of-bounds select 0;
  • the filled range min(groups * 64, records) dwords is a non-zero multiple of 16 bytes at a 16-byte-aligned base.

Tested

Windows 11 Pro 26300, i5-13600K, RTX 2080 Ti (NVIDIA 610.74), MinGW-w64 GCC 15.2.0 (WinLibs r7), configured like the Windows CI job (-G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON), at fed11bde:

  • ctest --timeout 120 --parallel 12: 844 tests, 839 passed, 5 skipped (video_out_flip_* and guest_video_out_wqhd_detection_no_vulkan), 0 failed.
  • The new agc_driver_zero_dword_fill test:
    • Matching: the kernel matches, and these do not:
      • one bit flipped in any code word, or truncated code;
      • stride 8, add_tid, out-of-bounds select 3, an unaligned base, or 102 records;
      • an extra user SGPR, a partial dispatch, or no group id.
    • A 256-byte descriptor clamps the fill.
    • Execution: 8 dispatches through Submit, comparing every dword of the buffer with what the kernel writes. Fill-shaped dispatches and ones it refuses are both included (100 and 102 records, stride 8, a 70-thread partial dispatch, 0 groups). It also passes with APS5_NO_FILL_HLE=1, where the recompiled shader runs instead.
    • Writing 1s instead of 0s in the fill makes it fail.
  • tools/check_test_registration.py, tools/check_conventions.py --base upstream/main and git diff --check pass.
  • Linux not tested.
  • Title: Palworld (PPSA23126, 01.102.999), main menu, with the other open PRs it needs (#2648):
    • the kernel runs about 15 times a frame and now goes through the fill path;
    • the main menu renders the same;
    • frame rate measured only together with other local changes, so no number is claimed for this change alone.

I don't know which compiler or engine emits this kernel. Only the exact code words above match.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4822406059 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4012). Originally posted by [queeeef](https://github.com/queeeef) on 2026-10-11T21:15:27Z. --- ### What A wave64 compute kernel that stores dword 0 at `group * 64 + thread` through a buffer descriptor is run as a buffer fill of zeros, next to the existing dword pattern-fill kernel (#2081). The kernel is 6 words: ``` v_lshl_add_u32 v0, s4, 6, v0 v_mov_b32 v1, 0 buffer_store_dword v1, v0, s[0:3], 0 idxen s_endpgm ``` Palworld (PPSA23126) clears the DCC keys of its render targets with it every frame. As a shader dispatch its stores were unknown to the DCC key proofs, so each later refresh of those keys waited for the GPU to finish. `MatchZeroDwordFill` takes a dispatch as this fill only when all of these hold, and otherwise leaves it to the recompiler: - the 6 code words match exactly; - 4 user SGPRs, so the group id is in `s4`; - group id X enabled, 64×1×1 threads, not a partial dispatch, 1×1 groups in Y and Z; - the descriptor has stride 4, no swizzle, no `add_tid` and out-of-bounds select 0; - the filled range `min(groups * 64, records)` dwords is a non-zero multiple of 16 bytes at a 16-byte-aligned base. ### Tested Windows 11 Pro 26300, i5-13600K, RTX 2080 Ti (NVIDIA 610.74), MinGW-w64 GCC 15.2.0 (WinLibs r7), configured like the Windows CI job (`-G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON`), at `fed11bde`: - `ctest --timeout 120 --parallel 12`: 844 tests, 839 passed, 5 skipped (`video_out_flip_*` and `guest_video_out_wqhd_detection_no_vulkan`), 0 failed. - The new `agc_driver_zero_dword_fill` test: - Matching: the kernel matches, and these do not: - one bit flipped in any code word, or truncated code; - stride 8, `add_tid`, out-of-bounds select 3, an unaligned base, or 102 records; - an extra user SGPR, a partial dispatch, or no group id. - A 256-byte descriptor clamps the fill. - Execution: 8 dispatches through `Submit`, comparing every dword of the buffer with what the kernel writes. Fill-shaped dispatches and ones it refuses are both included (100 and 102 records, stride 8, a 70-thread partial dispatch, 0 groups). It also passes with `APS5_NO_FILL_HLE=1`, where the recompiled shader runs instead. - Writing 1s instead of 0s in the fill makes it fail. - `tools/check_test_registration.py`, `tools/check_conventions.py --base upstream/main` and `git diff --check` pass. - Linux not tested. - Title: Palworld (PPSA23126, 01.102.999), main menu, with the other open PRs it needs (#2648): - the kernel runs about 15 times a frame and now goes through the fill path; - the main menu renders the same; - frame rate measured only together with other local changes, so no number is claimed for this change alone. I don't know which compiler or engine emits this kernel. Only the exact code words above match. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
oneandonlydean commented 2026-10-11 23:20:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:20:21Z.


Could you measure the Palworld menu with and without this PR on the same base? Perf PRs need numbers for the change itself (#218); frame time, or the key-refresh waits per frame, is enough.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115037078 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4012#issuecomment-6115037078). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T23:20:21Z. --- Could you measure the Palworld menu with and without this PR on the same base? Perf PRs need numbers for the change itself (#218); frame time, or the key-refresh waits per frame, is enough.
queeeef commented 2026-10-12 03:35:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by queeeef on 2026-10-12T03:35:25Z.


Measured on the Palworld main menu, idle, with and without this change on the same build.

Setup

  • Windows 11 Pro 26300, RTX 2080 Ti (NVIDIA 610.74), MinGW-w64 GCC 15.2.0 (WinLibs r7), RelWithDebInfo.
  • Base: main plus the open PRs the title needs (#2648), this PR, and local changes such as #4072. All runs use the same build.
  • The "without" runs set a local environment check that makes MatchZeroDwordFill return std::nullopt, so only this change is off. APS5_NO_FILL_HLE would also turn off the existing pattern fills.
  • Four runs, alternated with, without, with, without. Each value is the mean of the last four 10 s windows of a run, from APS5_PROFILE_DRAW and APS5_PROFILE_GPU.
  • Key-refresh waits are counted by a local counter around the SyncThrough in WaitForKeyWriters.
Presents / 10 s Frame time Key-refresh waits / frame GPU idle gaps / present
With #4012, run 1 202.0 49.5 ms 2.0 4.6–5.1 ms
Without, run 1 175.8 56.9 ms 15.0 10.7–11.1 ms
With #4012, run 2 199.2 50.2 ms 2.0 4.9–5.2 ms
Without, run 2 174.5 57.3 ms 15.1 10.2–10.9 ms
  • Frame time: about 7 ms (13%) lower with the change, in both pairs.
  • Waits: about 13 fewer per frame. The ones the change removes are on targets whose keys the zero dword fill kernel clears every frame. Most of the waited time was a 960x540 target: 350 waits per 10 s, about 13 ms each.
  • GPU: each wait drained the queue. With fewer of them, the GPU's idle time per present halves. The scene is GPU-bound (about 43 ms of GPU time per frame), so that idle time is what the frame rate gains.

What is left. About 2 waits per frame remain. They are mostly on a 2536x1428 R8 target whose keys another shader writes, about 25 ms each. That shader is a different kernel and not part of this PR.

AI-assisted (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6117273056 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4012#issuecomment-6117273056). Originally posted by [queeeef](https://github.com/queeeef) on 2026-10-12T03:35:25Z. --- Measured on the Palworld main menu, idle, with and without this change on the same build. **Setup** - Windows 11 Pro 26300, RTX 2080 Ti (NVIDIA 610.74), MinGW-w64 GCC 15.2.0 (WinLibs r7), RelWithDebInfo. - Base: `main` plus the open PRs the title needs (#2648), this PR, and local changes such as #4072. All runs use the same build. - The "without" runs set a local environment check that makes `MatchZeroDwordFill` return `std::nullopt`, so only this change is off. `APS5_NO_FILL_HLE` would also turn off the existing pattern fills. - Four runs, alternated with, without, with, without. Each value is the mean of the last four 10 s windows of a run, from `APS5_PROFILE_DRAW` and `APS5_PROFILE_GPU`. - Key-refresh waits are counted by a local counter around the `SyncThrough` in `WaitForKeyWriters`. | | Presents / 10 s | Frame time | Key-refresh waits / frame | GPU idle gaps / present | |---|---|---|---|---| | With #4012, run 1 | 202.0 | 49.5 ms | 2.0 | 4.6–5.1 ms | | Without, run 1 | 175.8 | 56.9 ms | 15.0 | 10.7–11.1 ms | | With #4012, run 2 | 199.2 | 50.2 ms | 2.0 | 4.9–5.2 ms | | Without, run 2 | 174.5 | 57.3 ms | 15.1 | 10.2–10.9 ms | - **Frame time:** about 7 ms (13%) lower with the change, in both pairs. - **Waits:** about 13 fewer per frame. The ones the change removes are on targets whose keys the zero dword fill kernel clears every frame. Most of the waited time was a 960x540 target: 350 waits per 10 s, about 13 ms each. - **GPU:** each wait drained the queue. With fewer of them, the GPU's idle time per present halves. The scene is GPU-bound (about 43 ms of GPU time per frame), so that idle time is what the frame rate gains. **What is left.** About 2 waits per frame remain. They are mostly on a 2536x1428 R8 target whose keys another shader writes, about 25 ms each. That shader is a different kernel and not part of this PR. AI-assisted (Claude Code)
johnmaia commented 2026-10-12 13:35:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-12T13:35:24Z.


Tested on Linux, which the description lists as not tested: Ubuntu, kernel 7.0, RX 7600 (RADV NAVI33, Mesa 25.2.8), GCC Release, head fed11bde6 merged onto main e7c70a2df.

Epic Mickey: Rebrushed (PPSA15657, Unreal Engine 4) uses the same kernel. Base: main + #3763, #2904, #425 and #4363, which it needs to reach the first level. Measured with APS5_PROFILE_DRAW=1, per 10 s in the level:

without this PR with it
DISPATCH_DIRECT through the fill path 0 about 1,080
recorded-store syncs 326 (1.6 s) 181 (1.4 s)
pending-write syncs 190 (1.25 s) 444 (1.6 s)
FPS 4.5 4.8

The kernel matches about 108 times a second, and the level renders the same. Recorded-store syncs (WaitForKeyWriters) drop by about 45%. Total GPU wait and FPS did not move beyond what differs between my runs, which aren't scripted identically. Other writers of the same DCC keys still cause syncs in this title, so that is not a limit of this PR.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6125369064 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4012#issuecomment-6125369064). Originally posted by [johnmaia](https://github.com/johnmaia) on 2026-10-12T13:35:24Z. --- Tested on Linux, which the description lists as not tested: Ubuntu, kernel 7.0, RX 7600 (RADV NAVI33, Mesa 25.2.8), GCC Release, head `fed11bde6` merged onto main `e7c70a2df`. Epic Mickey: Rebrushed (PPSA15657, Unreal Engine 4) uses the same kernel. Base: main + #3763, #2904, #425 and #4363, which it needs to reach the first level. Measured with `APS5_PROFILE_DRAW=1`, per 10 s in the level: | | without this PR | with it | |---|---|---| | `DISPATCH_DIRECT` through the fill path | 0 | about 1,080 | | recorded-store syncs | 326 (1.6 s) | 181 (1.4 s) | | pending-write syncs | 190 (1.25 s) | 444 (1.6 s) | | FPS | 4.5 | 4.8 | The kernel matches about 108 times a second, and the level renders the same. Recorded-store syncs (`WaitForKeyWriters`) drop by about 45%. Total GPU wait and FPS did not move beyond what differs between my runs, which aren't scripted identically. Other writers of the same DCC keys still cause syncs in this title, so that is not a limit of this PR.
AlxcBTW commented 2026-10-12 16:20:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AlxcBTW on 2026-10-12T16:20:18Z.


Sword of the Sea (PPSA25344, UE5) runs this exact kernel every frame to clear DCC keys, so here are two points from testing a buffer-fill version of it on our side.

Output format. The kernel stores with buffer_store_format_x, so the bytes it writes depend on the output V#'s FORMAT (user[3] bits 12-18). With 32_UINT, 32_SINT or 32_FLOAT (20-22) the dword lands unchanged. With another format, the hardware converts the value, and an 8- or 16-bit format writes only 1 or 2 bytes per element. A zero fill of the whole range would then also clear the bytes between those elements. MatchZeroDwordFill doesn't check FORMAT. Accepting only 20-22 would keep the fill and the kernel in step. Your test descriptors use format 20, so they would still pass. #2081's MatchDwordPatternFill has the same gap. We're sending a separate small fix for that one, and #3816's matcher has the same gap too (noted there).

Keys outside storage images. The fill is noted in the GPU key-store memo only when ClassifyFill reports FillCover::Keys, and ClassifyFill reports that only for storage images' keys. In Sword of the Sea, ClassifyFill doesn't report this kernel's fills as Keys, so they never reach the memo and the next key read still waits in WaitForKeyWriters. On a local branch we took this kernel as a fill and also noted a byte-uniform fill from it in the memo, whatever its cover. The key-writer waits behind this kernel then went away: about 415 per 10 s in the menu, Windows 11, RTX 5070 Laptop. We did not measure the fill without the memo note, so we don't know how much the fill path alone removes there. If it's useful, I can send that as a follow-up once this is merged, so this PR stays as it is.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6128216575 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4012#issuecomment-6128216575). Originally posted by [AlxcBTW](https://github.com/AlxcBTW) on 2026-10-12T16:20:18Z. --- Sword of the Sea (PPSA25344, UE5) runs this exact kernel every frame to clear DCC keys, so here are two points from testing a buffer-fill version of it on our side. **Output format.** The kernel stores with `buffer_store_format_x`, so the bytes it writes depend on the output V#'s FORMAT (`user[3]` bits 12-18). With 32_UINT, 32_SINT or 32_FLOAT (20-22) the dword lands unchanged. With another format, the hardware converts the value, and an 8- or 16-bit format writes only 1 or 2 bytes per element. A zero fill of the whole range would then also clear the bytes between those elements. `MatchZeroDwordFill` doesn't check FORMAT. Accepting only 20-22 would keep the fill and the kernel in step. Your test descriptors use format 20, so they would still pass. #2081's `MatchDwordPatternFill` has the same gap. We're sending a separate small fix for that one, and #3816's matcher has the same gap too (noted there). **Keys outside storage images.** The fill is noted in the GPU key-store memo only when `ClassifyFill` reports `FillCover::Keys`, and `ClassifyFill` reports that only for storage images' keys. In Sword of the Sea, `ClassifyFill` doesn't report this kernel's fills as `Keys`, so they never reach the memo and the next key read still waits in `WaitForKeyWriters`. On a local branch we took this kernel as a fill and also noted a byte-uniform fill from it in the memo, whatever its cover. The key-writer waits behind this kernel then went away: about 415 per 10 s in the menu, Windows 11, RTX 5070 Laptop. We did not measure the fill without the memo note, so we don't know how much the fill path alone removes there. If it's useful, I can send that as a follow-up once this is merged, so this PR stays as it is. AI-assisted: yes (Claude Code)
oneandonlydean commented 2026-10-13 02:42:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T02:42:30Z.


MatchZeroDwordFill needs the output-format check that main's MatchDwordPatternFill has had since 4309bffdb (format < 20u || format > 22u, BufferFill.cpp). The kernel stores through the V#'s FORMAT, so with an 8- or 16-bit format it writes 1 or 2 bytes per element and a zero fill of the whole range also clears the bytes between them (AlxcBTW's first point above). Please rebase, add the check and a test row with a format outside 20-22 that is refused.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6137032558 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4012#issuecomment-6137032558). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T02:42:30Z. --- `MatchZeroDwordFill` needs the output-format check that main's `MatchDwordPatternFill` has had since 4309bffdb (`format < 20u || format > 22u`, `BufferFill.cpp`). The kernel stores through the V#'s FORMAT, so with an 8- or 16-bit format it writes 1 or 2 bytes per element and a zero fill of the whole range also clears the bytes between them (AlxcBTW's first point above). Please rebase, add the check and a test row with a format outside 20-22 that is refused.
TideOPL commented 2026-10-13 10:14:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TideOPL on 2026-10-13T10:14:56Z.


Tested #4012 and #4603 together on Minecraft Dungeons II (PPSA16064) gameplay at the Squid Coast spawn: Windows 11, RTX 5070, trace window 25-40 s after the HUD (#4526 trace, APS5_TRACE_SECONDS=25:15). Base: main + #4367 #4515 #4517 + #3816 + #425 + #3763 + local patches MCD2 needs.

MCD2 clears DCC keys with both kernels. Run as shader dispatches, their stores made the key proofs of later render-target refreshes wait for the GPU (StorageTexture::Refresh -> ProvedKeys -> WaitForKeyWriters -> SyncThrough was the largest sync source on queue 0). With both PRs: queue-0 Recorder.Sync 11.7 -> 7.3 per frame (8.7 -> 6.1 ms), GpuMutex.wait.dispatch 6 -> 4 ms per frame.

The two PRs conflict in BufferFill.cpp / DwordPatternFill.hpp; I chained the matchers as pattern, zero, memory value.

Not run: Linux, AMD, the PRs' own tests.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6143311990 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4012#issuecomment-6143311990). Originally posted by [TideOPL](https://github.com/TideOPL) on 2026-10-13T10:14:56Z. --- Tested #4012 and #4603 together on Minecraft Dungeons II (PPSA16064) gameplay at the Squid Coast spawn: Windows 11, RTX 5070, trace window 25-40 s after the HUD (#4526 trace, `APS5_TRACE_SECONDS=25:15`). Base: `main` + #4367 #4515 #4517 + #3816 + #425 + #3763 + local patches MCD2 needs. MCD2 clears DCC keys with both kernels. Run as shader dispatches, their stores made the key proofs of later render-target refreshes wait for the GPU (`StorageTexture::Refresh` -> `ProvedKeys` -> `WaitForKeyWriters` -> `SyncThrough` was the largest sync source on queue 0). With both PRs: queue-0 `Recorder.Sync` 11.7 -> 7.3 per frame (8.7 -> 6.1 ms), `GpuMutex.wait.dispatch` 6 -> 4 ms per frame. The two PRs conflict in `BufferFill.cpp` / `DwordPatternFill.hpp`; I chained the matchers as pattern, zero, memory value. Not run: Linux, AMD, the PRs' own tests. AI-assisted (Claude Code).
adriadam10 commented 2026-10-13 10:36:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T10:36:02Z.


Thanks for the PR and the measurements, and to @AlxcBTW and @oneandonlydean for the review.

Added the output-format check @oneandonlydean asked for as a separate commit on top (99ebc650c), rebased on current main:

  • MatchZeroDwordFill now refuses a V# FORMAT outside 20-22, same as MatchDwordPatternFill, so 8/16-bit formats are not zero-filled over the bytes between elements.
  • Test rows in MatchTests: formats 17 and 23 are refused, 21 and 22 match.

Checked: agc_driver_zero_dword_fill passes, and fails with the check removed; the rest of libSceAgcDriver's tests are green (agc_driver_tessellation crashes inside RADV pipeline linking with and without this change). Merging once the full Build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6143665139 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4012#issuecomment-6143665139). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-13T10:36:02Z. --- Thanks for the PR and the measurements, and to @AlxcBTW and @oneandonlydean for the review. Added the output-format check @oneandonlydean asked for as a separate commit on top (99ebc650c), rebased on current `main`: - `MatchZeroDwordFill` now refuses a V# FORMAT outside 20-22, same as `MatchDwordPatternFill`, so 8/16-bit formats are not zero-filled over the bytes between elements. - Test rows in `MatchTests`: formats 17 and 23 are refused, 21 and 22 match. Checked: `agc_driver_zero_dword_fill` passes, and fails with the check removed; the rest of libSceAgcDriver's tests are green (`agc_driver_tessellation` crashes inside RADV pipeline linking with and without this change). Merging once the full Build is green.
coltken95 commented 2026-10-13 12:06:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-13T12:06:01Z.


Tested on Linux x86-64 (Release build, lavapipe / llvmpipe LLVM 20.1.2), with 99ebc650c cherry-picked onto main 5d50886ee:

  • With the PR: agc_driver_zero_dword_fill passes.
  • With main's sources, the new test doesn't compile:
    'MatchZeroDwordFill' has not been declared in 'AgcDriver::DriverDetail'
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6145151091 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4012#issuecomment-6145151091). Originally posted by [coltken95](https://github.com/coltken95) on 2026-10-13T12:06:01Z. --- Tested on Linux x86-64 (Release build, lavapipe / llvmpipe LLVM 20.1.2), with 99ebc650c cherry-picked onto main 5d50886ee: - With the PR: `agc_driver_zero_dword_fill` passes. - With main's sources, the new test doesn't compile: `'MatchZeroDwordFill' has not been declared in 'AgcDriver::DriverDetail'`
adriadam10 commented 2026-10-13 13:20:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T13:20:51Z.


Checked the zero-fill match (stride, swizzle, add_tid, OOB select, FORMAT 20-22, alignment, partial dispatch, record clamp) and its execution test against the recompiled path; agc_driver_zero_dword_fill passes, and fails to build without the change. Format check requested by @oneandonlydean is in. Merging once the full build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6146504275 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4012#issuecomment-6146504275). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-13T13:20:51Z. --- Checked the zero-fill match (stride, swizzle, add_tid, OOB select, FORMAT 20-22, alignment, partial dispatch, record clamp) and its execution test against the recompiled path; `agc_driver_zero_dword_fill` passes, and fails to build without the change. Format check requested by @oneandonlydean is in. Merging once the full build is green.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!4012
No description provided.