fix(agc): validate mesh index descriptors on cached draws #5791

Merged
Ondra97 merged 2 commits from upstream-pr/5791 into main 2026-10-15 17:25:12 +00:00
Ondra97 commented 2026-10-14 11:07:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-14T11:07:13Z.


What

Fixes the missing logo, text and language buttons in VLC PPSA85300 v0.4 (#5731, bring-up #5732). NGG draws can share register and SRT state while their DRAW_INDEX_2 packets select different index ranges. The generated index descriptor is absent from the register key and captured SRT memory, so a cache hit can retain the previous draw's index buffer descriptor.

Retain its four words with each mesh stage variant, require them to match before reuse, and include them in variant deduplication. A matching push offset with a different descriptor counts as a differing front stage. The regression checks rendered pixels, count and address changes, miss classification, reuse of each changed descriptor, and return to an earlier descriptor. It shares the existing NGG fixture with the mesh test.

The metadata field and capture sit beside the compiled result, keeping the insertions separate from the relocation fields in #4943 and #5609. Neither PR implements this correction; both merge cleanly with this branch.

Tested

Current head ed26cb81a, based on main a453108cf. Windows 11 Pro 10.0.26300, WinLibs GCC 15.2.0, NVIDIA GeForce RTX 4070 Ti SUPER, driver 32.0.16.1714 / NVIDIA 617.14.

  • Full default Windows build passed. All six focused CTest cases passed in 3.37 s with Vulkan required: agc_shader_memory, agc_driver_mesh, agc_driver_mesh_index_cache, agc_driver_draw_cache_reuse, agc_driver_draw_cache_reuse_off, and agc_driver_prepared_graphics.
  • The mesh-index regression passed three consecutive runs with GPL disabled (1.95 s total). On the preceding main base 84b01f9cd, removing the descriptor match makes it fail at the rendered-pixel assertion when the index count grows from 3 to 6; restoring the match passes again. The subsequent rebase adds only the independent Voice reset-port change.
  • Four visible VLC runs with the normal draw, recipe, GPL and disk shader caches enabled show the logo, headings, all 16 labeled language buttons, and Continue/Skip hints: 20 s, 20 s and 60 s on 8260e3c44, then 60 s on the final rebased head. I checked the original BMP pixels and enlarged crops. All 129 runtime library copies were hash-verified; the final driver contains no temporary diagnostic flags. This validates the welcome page; media playback and input beyond it were not tested.
  • The source is the official PPSA85300 v0.4 release, relinked with --windows --registry --windows-fixed-base 0x400000 and its bundled libc. Executable ELF SHA-256: eec51934aa2debed99152c3996f39a41be25e17d9ca14de01cee2d17b62d8e3f; the unwrapped payload segments were independently verified.
  • Refreshed 461 open PR heads and reviewed the 37 PRs sharing changed files. The repository overlap checker reports no overlap with open pull requests. git merge-tree succeeds with #4943 1c72efdc9 and #5609 d6abd5555. Earlier combined-tree validation with their changes passed eight focused tests on main caee23fd9; that tree was not pushed.
  • Conventions and whitespace checks passed. Shader instruction semantics are unchanged; no performance claim.

Correction to the earlier draft note: I misread the full-frame previews when reporting that the lower three rows were missing. The original BMP files contain all four rows and their labels, including the normal-cache runs. The clean runs above confirm that result; no speculative cache changes or diagnostic code are included.

External validation of earlier rendering-fix heads:

  • YossiYad's Linux/RADV run: Bazzite 44, GCC 16.2, AMD RX 7700 XT, Mesa 26; d41effbac on main 23be5a02b. The mesh-index and draw-cache reuse cases passed three repetitions; the 48 s VLC run showed all 16 buttons and hints. The Linux conversion used #4593 for its fixed base. I did not run Linux locally.
  • LeandroLP23's Windows/AMD runs and screenshots: Windows 11 26300, Radeon 860M, driver 32.0.13058.8001; d1e050d4c on main 9a3e2ac4d. Both 60 s runs showed the complete welcome page; the mesh and mesh-index cases passed three repetitions. These results are for the stated earlier heads.

Window closure still aborts on this rendering branch (0xc0000409), as in the main control and external Windows runs. That separate fix is in #5843, which depends on #5236. Full Linux/Windows runtime CI requires a write-access collaborator to dispatch it under repository policy.

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; no silent stubs added
  • No notes, investigation files or images added to the repository
  • New third-party code is a submodule built from source; none added
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: PPSA85300 #5732 (missing welcome-page rendering)
  • GPUs tested: local NVIDIA GeForce RTX 4070 Ti SUPER, driver 32.0.16.1714 / NVIDIA 617.14, Windows 11 Pro 10.0.26300; external earlier-head validation: AMD RX 7700 XT, RADV/Mesa 26, Bazzite 44 at d41effbac; AMD Radeon 860M, driver 32.0.13058.8001, Windows 11 26300 at d1e050d4c
  • AI-assisted: yes, Codex
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4856931587 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5791). Originally posted by [Ondra97](https://github.com/Ondra97) on 2026-10-14T11:07:13Z. --- ### What Fixes the missing logo, text and language buttons in VLC PPSA85300 v0.4 (#5731, bring-up #5732). NGG draws can share register and SRT state while their `DRAW_INDEX_2` packets select different index ranges. The generated index descriptor is absent from the register key and captured SRT memory, so a cache hit can retain the previous draw's index buffer descriptor. Retain its four words with each mesh stage variant, require them to match before reuse, and include them in variant deduplication. A matching push offset with a different descriptor counts as a differing front stage. The regression checks rendered pixels, count and address changes, miss classification, reuse of each changed descriptor, and return to an earlier descriptor. It shares the existing NGG fixture with the mesh test. The metadata field and capture sit beside the compiled result, keeping the insertions separate from the relocation fields in #4943 and #5609. Neither PR implements this correction; both merge cleanly with this branch. ### Tested Current head `ed26cb81a`, based on main `a453108cf`. Windows 11 Pro 10.0.26300, WinLibs GCC 15.2.0, NVIDIA GeForce RTX 4070 Ti SUPER, driver 32.0.16.1714 / NVIDIA 617.14. - Full default Windows build passed. All six focused CTest cases passed in 3.37 s with Vulkan required: `agc_shader_memory`, `agc_driver_mesh`, `agc_driver_mesh_index_cache`, `agc_driver_draw_cache_reuse`, `agc_driver_draw_cache_reuse_off`, and `agc_driver_prepared_graphics`. - The mesh-index regression passed three consecutive runs with GPL disabled (1.95 s total). On the preceding main base `84b01f9cd`, removing the descriptor match makes it fail at the rendered-pixel assertion when the index count grows from 3 to 6; restoring the match passes again. The subsequent rebase adds only the independent Voice reset-port change. - Four visible VLC runs with the normal draw, recipe, GPL and disk shader caches enabled show the logo, headings, all 16 labeled language buttons, and Continue/Skip hints: 20 s, 20 s and 60 s on `8260e3c44`, then 60 s on the final rebased head. I checked the original BMP pixels and enlarged crops. All 129 runtime library copies were hash-verified; the final driver contains no temporary diagnostic flags. This validates the welcome page; media playback and input beyond it were not tested. - The source is the official PPSA85300 v0.4 release, relinked with `--windows --registry --windows-fixed-base 0x400000` and its bundled libc. Executable ELF SHA-256: `eec51934aa2debed99152c3996f39a41be25e17d9ca14de01cee2d17b62d8e3f`; the unwrapped payload segments were independently verified. - Refreshed 461 open PR heads and reviewed the 37 PRs sharing changed files. The repository overlap checker reports no overlap with open pull requests. `git merge-tree` succeeds with #4943 `1c72efdc9` and #5609 `d6abd5555`. Earlier combined-tree validation with their changes passed eight focused tests on main `caee23fd9`; that tree was not pushed. - Conventions and whitespace checks passed. Shader instruction semantics are unchanged; no performance claim. Correction to the earlier draft note: I misread the full-frame previews when reporting that the lower three rows were missing. The original BMP files contain all four rows and their labels, including the normal-cache runs. The clean runs above confirm that result; no speculative cache changes or diagnostic code are included. External validation of earlier rendering-fix heads: - [YossiYad's Linux/RADV run](https://github.com/boykopovar/AnyPS5/pull/5791#issuecomment-6167220921): Bazzite 44, GCC 16.2, AMD RX 7700 XT, Mesa 26; `d41effbac` on main `23be5a02b`. The mesh-index and draw-cache reuse cases passed three repetitions; the 48 s VLC run showed all 16 buttons and hints. The Linux conversion used #4593 for its fixed base. I did not run Linux locally. - [LeandroLP23's Windows/AMD runs and screenshots](https://github.com/boykopovar/AnyPS5/pull/5791#issuecomment-6168747968): Windows 11 26300, Radeon 860M, driver 32.0.13058.8001; `d1e050d4c` on main `9a3e2ac4d`. Both 60 s runs showed the complete welcome page; the mesh and mesh-index cases passed three repetitions. These results are for the stated earlier heads. Window closure still aborts on this rendering branch (`0xc0000409`), as in the main control and external Windows runs. That separate fix is in #5843, which depends on #5236. Full Linux/Windows runtime CI requires a write-access collaborator to dispatch it under repository policy. ### 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 - [x] Unimplemented paths throw; no silent stubs added - [x] No notes, investigation files or images added to the repository - [x] New third-party code is a submodule built from source; none added - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: PPSA85300 #5732 (missing welcome-page rendering) - [x] GPUs tested: local NVIDIA GeForce RTX 4070 Ti SUPER, driver 32.0.16.1714 / NVIDIA 617.14, Windows 11 Pro 10.0.26300; external earlier-head validation: AMD RX 7700 XT, RADV/Mesa 26, Bazzite 44 at `d41effbac`; AMD Radeon 860M, driver 32.0.13058.8001, Windows 11 26300 at `d1e050d4c` - [x] AI-assisted: yes, Codex
YossiYad commented 2026-10-14 11:23:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-14T11:23:48Z.


Linux check of this PR, and one note on how a mismatch is counted.

Setup: Bazzite 44, GCC 16.2, Release, RX 7700 XT with RADV (Mesa 26), head d41effbac merged onto main 23be5a02b.

  • agc_driver_mesh_index_cache, agc_driver_draw_cache_reuse and agc_driver_draw_cache_reuse_off pass 3 of 3 (--repeat until-fail:3).
  • VLC (PPSA85300, catalog release, with #4593 for --linux-fixed-base 0x400000), first-run page, 48 s, captured at 40 s: on main only the gradient and the page dots; with this PR the logo, "Welcome to VLC", all 16 language buttons with their labels and the Continue/Skip hints, at 59.94 fps. That's the same page APS5_NO_DRAW_KEY gives on main.

The note: in lookupDraw the descriptor check continues before anyLayout = true. So when no variant matches the draw's index range, miss becomes DrawMiss::Layout, and the draw-cache report (APS5_PROFILE_DRAW) shows these draws under "layout (push offset)" instead of "front stage differing". I hit this with a test of my own: four indexed draws of an NGG program with one register key (first range twice, another range, the first again), checking that the third draw misses as a differing front stage. Against this PR the third draw does miss, but it's counted as a layout miss, so a front-stage check reads 0. Marking the mismatch as differing would keep the statistics honest, for example:

if (programs[i].binary.stage == ShaderRecompiler::ShaderStage::Mesh && !std::equal(...)) {
    if (!anyLayout) outcome = EntryOutcome::Differing;
    anyLayout = true;
    continue;
}

Your dedupe change in insertDrawEntry is needed too: without it, a variant that differs only in the descriptor is taken as already present and never inserted, so draws over that range would miss every time.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6167220921 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5791#issuecomment-6167220921). Originally posted by [YossiYad](https://github.com/YossiYad) on 2026-10-14T11:23:48Z. --- Linux check of this PR, and one note on how a mismatch is counted. Setup: Bazzite 44, GCC 16.2, Release, RX 7700 XT with RADV (Mesa 26), head `d41effbac` merged onto `main` `23be5a02b`. - `agc_driver_mesh_index_cache`, `agc_driver_draw_cache_reuse` and `agc_driver_draw_cache_reuse_off` pass 3 of 3 (`--repeat until-fail:3`). - VLC (PPSA85300, catalog release, with #4593 for `--linux-fixed-base 0x400000`), first-run page, 48 s, captured at 40 s: on `main` only the gradient and the page dots; with this PR the logo, "Welcome to VLC", all 16 language buttons with their labels and the Continue/Skip hints, at 59.94 fps. That's the same page `APS5_NO_DRAW_KEY` gives on `main`. The note: in `lookupDraw` the descriptor check `continue`s before `anyLayout = true`. So when no variant matches the draw's index range, `miss` becomes `DrawMiss::Layout`, and the draw-cache report (`APS5_PROFILE_DRAW`) shows these draws under "layout (push offset)" instead of "front stage differing". I hit this with a test of my own: four indexed draws of an NGG program with one register key (first range twice, another range, the first again), checking that the third draw misses as a differing front stage. Against this PR the third draw does miss, but it's counted as a layout miss, so a front-stage check reads 0. Marking the mismatch as differing would keep the statistics honest, for example: ```cpp if (programs[i].binary.stage == ShaderRecompiler::ShaderStage::Mesh && !std::equal(...)) { if (!anyLayout) outcome = EntryOutcome::Differing; anyLayout = true; continue; } ``` Your dedupe change in `insertDrawEntry` is needed too: without it, a variant that differs only in the descriptor is taken as already present and never inserted, so draws over that range would miss every time.
Ondra97 commented 2026-10-14 12:18:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-14T12:18:20Z.


@YossiYad Thanks for checking this on Linux/RADV and confirming the VLC rendering fix on the RX 7700 XT.

I reproduced the statistics issue and corrected it in d1e050d4c. When the push offset matches but the mesh index descriptor differs, I now mark the layout as present and classify the mismatch as EntryOutcome::Differing, preserving the existing first-candidate outcome handling.

I extended agc_driver_mesh_index_cache to check that both range and address changes increment FrontDiffering without incrementing Layout. It also checks cache hits when each changed descriptor is repeated and when returning to the earlier descriptor, covering the deduplication requirement you pointed out. The classification assertion failed before the correction and passes afterward.

I rebased onto main 51031742e. The full Windows Release build and all six focused CTest cases passed; the strengthened regression also passed three consecutive runs with GPL disabled on my RTX 4070 Ti SUPER.

AI-assisted: yes. — Codex

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6168154360 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5791#issuecomment-6168154360). Originally posted by [Ondra97](https://github.com/Ondra97) on 2026-10-14T12:18:20Z. --- @YossiYad Thanks for checking this on Linux/RADV and confirming the VLC rendering fix on the RX 7700 XT. I reproduced the statistics issue and corrected it in `d1e050d4c`. When the push offset matches but the mesh index descriptor differs, I now mark the layout as present and classify the mismatch as `EntryOutcome::Differing`, preserving the existing first-candidate outcome handling. I extended `agc_driver_mesh_index_cache` to check that both range and address changes increment `FrontDiffering` without incrementing `Layout`. It also checks cache hits when each changed descriptor is repeated and when returning to the earlier descriptor, covering the deduplication requirement you pointed out. The classification assertion failed before the correction and passes afterward. I rebased onto main `51031742e`. The full Windows Release build and all six focused CTest cases passed; the strengthened regression also passed three consecutive runs with GPL disabled on my RTX 4070 Ti SUPER. AI-assisted: yes. — Codex
LeandroLP23 commented 2026-10-14 12:50:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-14T12:50:50Z.


Windows/AMD check with VLC (PPSA85300 v0.4, catalog release): Windows 11 (26300), Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), WinLibs GCC 15.2.0, Release. Relinked with --windows --registry --windows-fixed-base 0x400000, 60 s per run, frames from APS5_DUMP_FRAMES (one every 600 presents).

Build Runs Welcome page at the second dump
main 9a3e2ac4d 1 gradient and the four page dots only, as in #5731
main 9a3e2ac4d + this PR (d1e050d4c) 2 logo, "Welcome to VLC", "Choose your language", all 16 language buttons and the Continue/Skip hints, in both runs
main with this PR
main PR

The window title reads 20.0 FPS on main and 27.4 / 29.2 FPS with the PR.

agc_driver_mesh and agc_driver_mesh_index_cache pass 3 of 3 (--repeat until-fail:3) with an empty test shader cache.

Not tested: the new test against main's sources, input past the welcome page. All runs end with abort() (exit 0xc0000409) when the window is closed at 60 s, with and without the PR.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6168747968 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5791#issuecomment-6168747968). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-14T12:50:50Z. --- Windows/AMD check with VLC (PPSA85300 v0.4, catalog release): Windows 11 (26300), Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), WinLibs GCC 15.2.0, Release. Relinked with `--windows --registry --windows-fixed-base 0x400000`, 60 s per run, frames from `APS5_DUMP_FRAMES` (one every 600 presents). | Build | Runs | Welcome page at the second dump | |---|---|---| | `main` 9a3e2ac4d | 1 | gradient and the four page dots only, as in #5731 | | `main` 9a3e2ac4d + this PR (d1e050d4c) | 2 | logo, "Welcome to VLC", "Choose your language", all 16 language buttons and the Continue/Skip hints, in both runs | | `main` | with this PR | |---|---| | ![main](https://raw.githubusercontent.com/LeandroLP23/AnyPS5/preview-catalog-main/5791/main_85300_frame_001.png) | ![PR](https://raw.githubusercontent.com/LeandroLP23/AnyPS5/preview-catalog-main/5791/pr1_85300_frame_001.png) | The window title reads 20.0 FPS on `main` and 27.4 / 29.2 FPS with the PR. `agc_driver_mesh` and `agc_driver_mesh_index_cache` pass 3 of 3 (`--repeat until-fail:3`) with an empty test shader cache. Not tested: the new test against `main`'s sources, input past the welcome page. All runs end with `abort()` (exit 0xc0000409) when the window is closed at 60 s, with and without the PR. AI-assisted: yes (Claude Code)
screamm commented 2026-10-15 01:53:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-15T01:53:41Z.


Windows/NVIDIA check with VLC (PPSA85300 v0.4, catalog release).

  • Head ed26cb81a merged onto main 2559e9623: clean, no conflicts (merge 96f751835). Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, NVIDIA GeForce RTX 4070 (driver 596.21).
  • Build: full default build and libs pass; the only warnings are the existing ones main also has (-Wstringop-overread in PipelineLibrary.cpp/ShaderFusion.cpp, u8path in General.cpp).
  • ANYPS5_REQUIRE_VULKAN=1, --repeat until-fail:3: agc_driver_mesh_index_cache, agc_driver_draw_cache_reuse, agc_driver_draw_cache_reuse_off, agc_driver_mesh, agc_shader_memory, agc_driver_prepared_graphics: 6/6, 3 of 3.
  • Negative control: this head's agc_driver_mesh_index_cache_tests.exe with main's libSceAgcDriver.prx first on PATH exits 1 with AGC graphics: cached mesh draw used another draw's indices: count=6.
  • ctest -R '^agc_' with the display available: 565/565 passed (3 skipped, the same as main's 564/564).
  • ctest -j8 --timeout 120 -E '^agc_driver_|^video_out_flip': 810/812 on the first pass. hardware_oracle_compare (20 s limit) timed out, as it also does on main under -j8. guest_file_lock_process exited 0xc0000409 after 11.6 s under load. Both pass 3 of 3 when rerun alone, guest_file_lock_process passes in the main suite, and neither test involves libSceAgcDriver.
  • VLC relinked with relinker --windows --registry unused-filter=0 --windows-fixed-base 0x400000, 60 s, window captured with PrintWindow at 20 s and 50 s, plus APS5_DUMP_FRAMES at present 1200:
Build On screen (20 s and 50 s) Window title at 60 s
main 2559e9623 gradient and the four page dots only (no text) VLC | FPS: 72.31 (4432)
main + #5791 logo, "Welcome to VLC", "Choose your language", all 16 language buttons with their labels, Continue/Skip hints VLC | FPS: 90.28 (5333)

No stop line in either build. With this PR alone, closing the window still exits 0xC0000409 (after 1.1 s), as on main; #5843 fixes that. FPS varied with other load on the machine, so these figures do not support a performance claim.

Verdict: the missing welcome-page text and buttons are fixed on NVIDIA too, with no AGC test regressions.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6182583622 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5791#issuecomment-6182583622). Originally posted by [screamm](https://github.com/screamm) on 2026-10-15T01:53:41Z. --- Windows/NVIDIA check with VLC (PPSA85300 v0.4, catalog release). - Head `ed26cb81a` merged onto `main` `2559e9623`: clean, no conflicts (merge `96f751835`). Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, NVIDIA GeForce RTX 4070 (driver 596.21). - Build: full default build and `libs` pass; the only warnings are the existing ones `main` also has (`-Wstringop-overread` in `PipelineLibrary.cpp`/`ShaderFusion.cpp`, `u8path` in `General.cpp`). - `ANYPS5_REQUIRE_VULKAN=1`, `--repeat until-fail:3`: `agc_driver_mesh_index_cache`, `agc_driver_draw_cache_reuse`, `agc_driver_draw_cache_reuse_off`, `agc_driver_mesh`, `agc_shader_memory`, `agc_driver_prepared_graphics`: 6/6, 3 of 3. - Negative control: this head's `agc_driver_mesh_index_cache_tests.exe` with `main`'s `libSceAgcDriver.prx` first on `PATH` exits 1 with `AGC graphics: cached mesh draw used another draw's indices: count=6`. - `ctest -R '^agc_'` with the display available: 565/565 passed (3 skipped, the same as `main`'s 564/564). - `ctest -j8 --timeout 120 -E '^agc_driver_|^video_out_flip'`: 810/812 on the first pass. `hardware_oracle_compare` (20 s limit) timed out, as it also does on `main` under `-j8`. `guest_file_lock_process` exited `0xc0000409` after 11.6 s under load. Both pass 3 of 3 when rerun alone, `guest_file_lock_process` passes in the `main` suite, and neither test involves libSceAgcDriver. - VLC relinked with `relinker --windows --registry unused-filter=0 --windows-fixed-base 0x400000`, 60 s, window captured with `PrintWindow` at 20 s and 50 s, plus `APS5_DUMP_FRAMES` at present 1200: | Build | On screen (20 s and 50 s) | Window title at 60 s | |---|---|---| | `main` 2559e9623 | gradient and the four page dots only (no text) | `VLC \| FPS: 72.31 (4432)` | | `main` + #5791 | logo, "Welcome to VLC", "Choose your language", all 16 language buttons with their labels, Continue/Skip hints | `VLC \| FPS: 90.28 (5333)` | No stop line in either build. With this PR alone, closing the window still exits `0xC0000409` (after 1.1 s), as on `main`; #5843 fixes that. FPS varied with other load on the machine, so these figures do not support a performance claim. Verdict: the missing welcome-page text and buttons are fixed on NVIDIA too, with no AGC test regressions. AI-assisted: yes (Claude Code)
github-actions[bot] commented 2026-10-15 12:09:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:09:40Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6454 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp L128

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.

Pull request Shared files not compared
PR 1896 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
PR 3891 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4156 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4396 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4397 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4422 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4423 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4424 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4520 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4521 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4522 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4523 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4566 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4599 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4718 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4740 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4749 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4760 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 4813 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 5021 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
PR 5656 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
PR 5867 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
PR 5884 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/tests/Mesh.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
PR 6235 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191705265 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5791#issuecomment-6191705265). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:09:40Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 6454](https://www.github.com/boykopovar/AnyPS5/pull/6454) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp` [L128](https://github.com/boykopovar/AnyPS5/blob/0029e62f974c453a5f6c7333f3bdb13e770e3903/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp#L128) | | | 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. | Pull request | Shared files not compared | |---|---| | [PR 1896](https://www.github.com/boykopovar/AnyPS5/pull/1896) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp` | | [PR 3891](https://www.github.com/boykopovar/AnyPS5/pull/3891) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4156](https://www.github.com/boykopovar/AnyPS5/pull/4156) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4396](https://www.github.com/boykopovar/AnyPS5/pull/4396) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4397](https://www.github.com/boykopovar/AnyPS5/pull/4397) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4422](https://www.github.com/boykopovar/AnyPS5/pull/4422) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4423](https://www.github.com/boykopovar/AnyPS5/pull/4423) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4424](https://www.github.com/boykopovar/AnyPS5/pull/4424) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4520](https://www.github.com/boykopovar/AnyPS5/pull/4520) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4521](https://www.github.com/boykopovar/AnyPS5/pull/4521) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4522](https://www.github.com/boykopovar/AnyPS5/pull/4522) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4523](https://www.github.com/boykopovar/AnyPS5/pull/4523) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4566](https://www.github.com/boykopovar/AnyPS5/pull/4566) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4599](https://www.github.com/boykopovar/AnyPS5/pull/4599) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4718](https://www.github.com/boykopovar/AnyPS5/pull/4718) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4740](https://www.github.com/boykopovar/AnyPS5/pull/4740) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4749](https://www.github.com/boykopovar/AnyPS5/pull/4749) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4760](https://www.github.com/boykopovar/AnyPS5/pull/4760) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 4813](https://www.github.com/boykopovar/AnyPS5/pull/4813) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp` | | [PR 5656](https://www.github.com/boykopovar/AnyPS5/pull/5656) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp` | | [PR 5867](https://www.github.com/boykopovar/AnyPS5/pull/5867) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp` | | [PR 5884](https://www.github.com/boykopovar/AnyPS5/pull/5884) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Mesh.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp` |
adriadam10 commented 2026-10-15 13:16:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T13:16:28Z.


Checked the three-line change in DrawCapture/DrawLookup/DrawCache against the cache flow: the mesh index descriptor is retained per stage variant, required to match on lookup, and part of the variant dedup. A push-offset match with a different descriptor is counted as FrontDiffering.

Built and ran the AgcDriver tests on the PR merged onto current main: all pass except agc_driver_tessellation, which segfaults on main as well. agc_driver_mesh_index_cache fails when the non-test changes are reverted, so it tests the fix. Thanks to @YossiYad, @LeandroLP23 and @screamm for the Linux/AMD, Windows/AMD and Windows/NVIDIA runs; merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6192980479 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5791#issuecomment-6192980479). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-15T13:16:28Z. --- Checked the three-line change in `DrawCapture`/`DrawLookup`/`DrawCache` against the cache flow: the mesh index descriptor is retained per stage variant, required to match on lookup, and part of the variant dedup. A push-offset match with a different descriptor is counted as `FrontDiffering`. Built and ran the AgcDriver tests on the PR merged onto current main: all pass except `agc_driver_tessellation`, which segfaults on main as well. `agc_driver_mesh_index_cache` fails when the non-test changes are reverted, so it tests the fix. Thanks to @YossiYad, @LeandroLP23 and @screamm for the Linux/AMD, Windows/AMD and Windows/NVIDIA runs; merging.
adriadam10 commented 2026-10-15 20:15:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T20:15:47Z.


Reverted by #6552: agc_driver_mesh_index_cache aborts on the linux job of every main push build since this merged (lavapipe LLVM 20.1.2, LLVM ERROR: Cannot emit physreg copy instruction compiling the test shaders; e.g. run 38786745473). Please reopen with a test shader that the runner's lavapipe compiles; the linux job must pass before it lands.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6201383263 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5791#issuecomment-6201383263). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-15T20:15:47Z. --- Reverted by #6552: `agc_driver_mesh_index_cache` aborts on the linux job of every main push build since this merged (lavapipe LLVM 20.1.2, `LLVM ERROR: Cannot emit physreg copy instruction` compiling the test shaders; e.g. run 38786745473). Please reopen with a test shader that the runner's lavapipe compiles; the linux job must pass before it lands.
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!5791
No description provided.