fix(agc): refuse mesh-path draws on a device without mesh shaders before validating them #6523

Merged
billythemenace2 merged 1 commit from upstream-pr/6523 into main 2026-10-19 04:08:34 +00:00
billythemenace2 commented 2026-10-15 18:41:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by billythemenace2 on 2026-10-15T18:41:45Z.


Requested by billy

What

Before: on a device without VK_EXT_mesh_shader, a draw on the mesh path (an NGG geometry or fast-launch program) was validated before anything checked for mesh shader support. A mesh shader that uses subgroup operations then stopped on a misleading error. Sackboy: A Big Adventure (PPSA01289) on an AMD Radeon RX 5700 XT (RDNA1, no mesh shaders on AMD's Windows driver) stopped with:

AGC graphics: subgroup capability 61 is unsupported for shader stage 128

The device does not support mesh shaders check in Draw.cpp came only after validation.

After: ValidateShaders takes the device's mesh shader support and refuses a mesh-path draw first, so the same draw stops with:

AGC graphics: device does not support mesh shaders

Nothing new runs. This only reports the real cause, so a tester on a GPU without mesh shaders knows the draw cannot work there rather than chasing a subgroup problem.

How

ValidateShaders gets a trailing meshShader parameter (default true, so existing callers and tests keep their behaviour), and Draw.cpp passes context.meshShader. The check sits right after the existing path and stage-configuration checks, before any shader is inspected. Graphics.cpp adds a case: the decoded NGG mesh state is validated with meshShader false and must fail with the new message.

Tested

Windows 11 (26200), MinGW-w64 GCC 15, Release, AMD Radeon RX 5700 XT (driver 32.0.21045.5002), on main b7cedd900. agc_driver_graphics passes, and fails with the check removed. tools/check_conventions.py --base origin/main passes. Sackboy (PPSA01289), with #6236 and APS5_PLAYGO_UNLISTED_CHUNKS=absent, now stops with device does not support mesh shaders instead of the subgroup error. Not tested: Linux, a GPU with mesh shaders (the check passes there because meshShader is true).

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 under Silent stubs in their library's technical debt file
  • 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
  • Unblocks: none (it only makes PPSA01289's stop on GPUs without mesh shaders report its cause)
  • GPUs tested: AMD Radeon RX 5700 XT, driver 32.0.21045.5002, Windows 11
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4878152623 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6523). Originally posted by [billythemenace2](https://github.com/billythemenace2) on 2026-10-15T18:41:45Z. --- <!-- claude-projects-attribution --> _Requested by **billy**_ ### What Before: on a device without `VK_EXT_mesh_shader`, a draw on the mesh path (an NGG geometry or fast-launch program) was validated before anything checked for mesh shader support. A mesh shader that uses subgroup operations then stopped on a misleading error. Sackboy: A Big Adventure (PPSA01289) on an AMD Radeon RX 5700 XT (RDNA1, no mesh shaders on AMD's Windows driver) stopped with: ``` AGC graphics: subgroup capability 61 is unsupported for shader stage 128 ``` The `device does not support mesh shaders` check in `Draw.cpp` came only after validation. After: `ValidateShaders` takes the device's mesh shader support and refuses a mesh-path draw first, so the same draw stops with: ``` AGC graphics: device does not support mesh shaders ``` Nothing new runs. This only reports the real cause, so a tester on a GPU without mesh shaders knows the draw cannot work there rather than chasing a subgroup problem. ### How `ValidateShaders` gets a trailing `meshShader` parameter (default `true`, so existing callers and tests keep their behaviour), and `Draw.cpp` passes `context.meshShader`. The check sits right after the existing path and stage-configuration checks, before any shader is inspected. `Graphics.cpp` adds a case: the decoded NGG mesh state is validated with `meshShader` false and must fail with the new message. ### Tested Windows 11 (26200), MinGW-w64 GCC 15, Release, AMD Radeon RX 5700 XT (driver 32.0.21045.5002), on `main` `b7cedd900`. `agc_driver_graphics` passes, and fails with the check removed. `tools/check_conventions.py --base origin/main` passes. Sackboy (PPSA01289), with #6236 and `APS5_PLAYGO_UNLISTED_CHUNKS=absent`, now stops with `device does not support mesh shaders` instead of the subgroup error. Not tested: Linux, a GPU with mesh shaders (the check passes there because `meshShader` is true). ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Unblocks: none (it only makes PPSA01289's stop on GPUs without mesh shaders report its cause) - [x] GPUs tested: AMD Radeon RX 5700 XT, driver 32.0.21045.5002, Windows 11 - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-15 19:30:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T19:30:59Z.


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 1191 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4040 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
PR 5431 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5499 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5500 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6194 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6202 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6235 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6280 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6292 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6457 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6479 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6481 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6503 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
PR 6529 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6535 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6539 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6548 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6563 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6612 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6615 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6639 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6647 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6683 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6718 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6727 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6730 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6762 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6763 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6804 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6808 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6820 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6941 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
PR 6946 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6947 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
PR 6970 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6972 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7085 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7254 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7310 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7332 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7340 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7369 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7410 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6200573033 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6523#issuecomment-6200573033). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T19:30:59Z. --- <!-- pr-overlap --> 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 1191](https://www.github.com/boykopovar/AnyPS5/pull/1191) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6202](https://www.github.com/boykopovar/AnyPS5/pull/6202) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 6457](https://www.github.com/boykopovar/AnyPS5/pull/6457) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6479](https://www.github.com/boykopovar/AnyPS5/pull/6479) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6503](https://www.github.com/boykopovar/AnyPS5/pull/6503) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp` | | [PR 6529](https://www.github.com/boykopovar/AnyPS5/pull/6529) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6535](https://www.github.com/boykopovar/AnyPS5/pull/6535) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6563](https://www.github.com/boykopovar/AnyPS5/pull/6563) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 6639](https://www.github.com/boykopovar/AnyPS5/pull/6639) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6647](https://www.github.com/boykopovar/AnyPS5/pull/6647) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6718](https://www.github.com/boykopovar/AnyPS5/pull/6718) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 6727](https://www.github.com/boykopovar/AnyPS5/pull/6727) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 6730](https://www.github.com/boykopovar/AnyPS5/pull/6730) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6762](https://www.github.com/boykopovar/AnyPS5/pull/6762) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6763](https://www.github.com/boykopovar/AnyPS5/pull/6763) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 6804](https://www.github.com/boykopovar/AnyPS5/pull/6804) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6820](https://www.github.com/boykopovar/AnyPS5/pull/6820) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 6941](https://www.github.com/boykopovar/AnyPS5/pull/6941) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp` | | [PR 6970](https://www.github.com/boykopovar/AnyPS5/pull/6970) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6972](https://www.github.com/boykopovar/AnyPS5/pull/6972) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7254](https://www.github.com/boykopovar/AnyPS5/pull/7254) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7310](https://www.github.com/boykopovar/AnyPS5/pull/7310) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7340](https://www.github.com/boykopovar/AnyPS5/pull/7340) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 7369](https://www.github.com/boykopovar/AnyPS5/pull/7369) | `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` | | [PR 7410](https://www.github.com/boykopovar/AnyPS5/pull/7410) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp` |
coltken95 commented 2026-10-15 19:56:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-15T19:56:14Z.


Tested on Linux x86-64 (Release build, lavapipe / llvmpipe LLVM 20.1.2), with 4e35f3a9f merged into main 44df21632:

  • With the PR: all 8 tests built from Graphics.cpp pass, including the new device does not support mesh shaders check in agc_driver_graphics.
  • No comparison against main: the new check calls ValidateShaders with the mesh-support argument this PR adds, so Graphics.cpp doesn't build without the change.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6201030695 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6523#issuecomment-6201030695). Originally posted by [coltken95](https://github.com/coltken95) on 2026-10-15T19:56:14Z. --- Tested on Linux x86-64 (Release build, lavapipe / llvmpipe LLVM 20.1.2), with 4e35f3a9f merged into main 44df21632: - With the PR: all 8 tests built from `Graphics.cpp` pass, including the new `device does not support mesh shaders` check in `agc_driver_graphics`. - No comparison against main: the new check calls `ValidateShaders` with the mesh-support argument this PR adds, so `Graphics.cpp` doesn't build without the change. AI-assisted: yes (Claude Code)
blawesom commented 2026-10-16 17:34:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-16T17:34:51Z.


Rebase handoff — rebased onto current main (authorship unchanged). The conflicts were the ValidateShaders signature in three files: main added shaderTerminateInvocation as the next-to-last flag while this PR appends meshShader, so the merged signature carries both. Two merge adaptations were needed for your test in Graphics.cpp: the positional-false call needed one more argument so meshShader is actually false rather than left at its = true default (otherwise the mesh refusal never fires and the stage-count check fails instead), and the arity fix follows from the same drift.

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV):

  • builds; tools/check_conventions.py --base origin/main passes
  • full suite: 1286/1287 — the only consistent failure is the known main regression (agc_driver_tessellation segfault, #4727)
  • one observation: agc_driver_same_queue_label_wait failed in 2 of 4 parallel (-j8) runs on this head but passes solo and in re-runs — I could not tie it to this PR's validation-only diff, but flagging it in case it rings a bell; it did not fail on main today

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/6523
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is 68e90bb3d.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6221146660 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6523#issuecomment-6221146660). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-16T17:34:51Z. --- **Rebase handoff** — rebased onto current `main` (authorship unchanged). The conflicts were the `ValidateShaders` signature in three files: `main` added `shaderTerminateInvocation` as the next-to-last flag while this PR appends `meshShader`, so the merged signature carries both. Two merge adaptations were needed for your test in `Graphics.cpp`: the positional-`false` call needed one more argument so `meshShader` is actually `false` rather than left at its `= true` default (otherwise the mesh refusal never fires and the stage-count check fails instead), and the arity fix follows from the same drift. Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): - builds; `tools/check_conventions.py --base origin/main` passes - **full suite: 1286/1287** — the only consistent failure is the known `main` regression (`agc_driver_tessellation` segfault, #4727) - one observation: `agc_driver_same_queue_label_wait` failed in 2 of 4 parallel (`-j8`) runs on this head but passes solo and in re-runs — I could not tie it to this PR's validation-only diff, but flagging it in case it rings a bell; it did not fail on `main` today **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/6523 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `68e90bb3d`.
blawesom commented 2026-10-16 18:07:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-16T18:07:00Z.


Correction on the agc_driver_same_queue_label_wait observation above: I've since root-caused that flake to my machine, not this PR — after hours of continuous GPU test load the card heat-soaks (junction ~95°C) and that test's timing measurement (extra label-collect bumps vs. waits) flips; after four minutes idle (68°C) it passes again on the same build. Same commit, clean caches, unchanged driver — purely thermal. Please disregard the flake remark; nothing here to look at.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6221736843 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6523#issuecomment-6221736843). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-16T18:07:00Z. --- **Correction on the `agc_driver_same_queue_label_wait` observation above:** I've since root-caused that flake to my machine, not this PR — after hours of continuous GPU test load the card heat-soaks (junction ~95°C) and that test's timing measurement (extra label-collect bumps vs. waits) flips; after four minutes idle (68°C) it passes again on the same build. Same commit, clean caches, unchanged driver — purely thermal. Please disregard the flake remark; nothing here to look at.
billythemenace2 commented 2026-10-16 21:12:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by billythemenace2 on 2026-10-16T21:12:45Z.


@blawesom thank you for the rebase and the full-suite run. I've taken it as is: the branch is now at 68e90bb3d on main 66e290f1c, and GitHub reports it mergeable again. Thanks also for following up on the label-wait flake.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6224790129 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6523#issuecomment-6224790129). Originally posted by [billythemenace2](https://github.com/billythemenace2) on 2026-10-16T21:12:45Z. --- @blawesom thank you for the rebase and the full-suite run. I've taken it as is: the branch is now at `68e90bb3d` on `main` `66e290f1c`, and GitHub reports it mergeable again. Thanks also for following up on the label-wait flake. AI-assisted (Claude Code).
MaxLikesCode commented 2026-10-19 02:56:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MaxLikesCode on 2026-10-19T02:56:37Z.


A run on a GPU that has mesh shaders, to check that nothing changes where the new refusal does not apply: NVIDIA GeForce RTX 4090, driver 617.42, Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON with every execution test built. This head (68e90bb3d) merged into main ad502d717.

  • agc_driver_graphics passes, and the build has no warnings.
  • The 975 of 1553 tests tools/select_tests.py selects for this change: 957 pass, 15 skip and 3 fail.
    • agc_driver_bda_device (#7584) and agc_driver_image_table_reuse (#7710) fail on main on this GPU too.
    • agc_driver_storage_file_write failed once in the parallel run and passed 6 of 6 when rerun alone, so I take it for load-dependent and unrelated.
    • agc_driver_pixel_lds (#7708), which fails on main here, passed in this run; it depends on timing.
  • tools/check_skips.py --job windows accepts the skips.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258661903 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6523#issuecomment-6258661903). Originally posted by [MaxLikesCode](https://github.com/MaxLikesCode) on 2026-10-19T02:56:37Z. --- A run on a GPU that has mesh shaders, to check that nothing changes where the new refusal does not apply: NVIDIA GeForce RTX 4090, driver 617.42, Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON` with every execution test built. This head (68e90bb3d) merged into `main` ad502d717. - `agc_driver_graphics` passes, and the build has no warnings. - The 975 of 1553 tests `tools/select_tests.py` selects for this change: 957 pass, 15 skip and 3 fail. - `agc_driver_bda_device` (#7584) and `agc_driver_image_table_reuse` (#7710) fail on `main` on this GPU too. - `agc_driver_storage_file_write` failed once in the parallel run and passed 6 of 6 when rerun alone, so I take it for load-dependent and unrelated. - `agc_driver_pixel_lds` (#7708), which fails on `main` here, passed in this run; it depends on timing. - `tools/check_skips.py --job windows` accepts the skips. AI-assisted: yes (Claude Code)
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!6523
No description provided.