feat(agc): emulate mesh-fallback barycentrics through tessellation #9387

Open
Alexius0815 wants to merge 4 commits from upstream-pr/9387 into main
Alexius0815 commented 2026-10-21 20:09:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Alexius0815 on 2026-10-21T20:09:01Z.


What

Builds on #9356. On a device without fragmentShaderBarycentric, a mesh-path draw that runs through the compute fallback and whose pixel shader reads barycentrics had no route. The barycentric tessellation emulation from #7308 was limited to the vertex path. This PR feeds the mesh readback vertex shader from #9356 into BuildBarycentricTessellationShaders. The draw then runs as compute pass → readback VS → TCS → TES → fragment, drawn as a 3-control-point patch list.

  • Execution/.../Draw.cpp: a compute-fallback mesh program takes the emulation branch. It requires triangle output, tessellation support and no clip, cull or layer exports, and passes the provoking vertex mode as in #7426.
  • Graphics/src/Draw.cpp: MeshComputeStages accepts the two emulation stages after the mesh stage.
  • Pipeline.cpp: patch-list topology and patchControlPoints = 3 for the emulation patches on the mesh path. Like the vertex path's patches, they need no VK_EXT_provoking_vertex for the last provoking vertex, because the generated evaluation stage writes the provoking vertex's flat values itself (#7426).
  • ShaderValidation.cpp: validates the five-stage mesh layout. The failure text stays "require a triangle list".
  • Recompiler.cpp: a pixel shader whose request runs the mesh program as compute is no longer compiled in mesh mode. Its flat inputs then stay per vertex, as the tessellation evaluation stage in front of it provides them (from @root-over, co-author).
  • MeshReadbackVertexShader.cpp: copies parameterExports so the control stage sees the mesh outputs.
  • core/shader/recompiler/CMakeLists.txt: MeshRecordClipDistances, MeshRecordCullDistances and MeshRecordLayer are recorded in shaderCacheReviewedNames. They are inline decoders of RecompileResult::meshRecordLayout, which is part of the cached result, and Draw.cpp only uses them to refuse draws. They do not reach a RecompileRequest.
  • tests/Mesh.cpp: agc_driver_mesh draws through the compute fallback with fragmentShaderBarycentric disabled, non-indexed and indexed, and compares front/back culling with the ordinary readback draw. A flat-input case with a different value per vertex checks the provoking vertex's value on every triangle, with the first and with the last provoking vertex. The emulated draws give the pixel request the mesh GraphicsCompileContext, as DrawCapture does.
  • docs/dev/debt/libSceAgcDriver.md:
    • lists the mesh-fallback cases that still refuse: clip, cull and layer exports;
    • lists the layered-draw case on devices with mesh shaders, whose pixel request still carries no meshAsCompute.

Overlap: #8083 (now merged) and #8339 each change a condition line in Execution/.../Draw.cpp, and #8083 also changes the triangle-list check in ShaderValidation.cpp. This branch sits on #9356's current head f49a25ae9, which itself conflicts with main again. Once #9356 is rebased, I will rebase this commit onto it and keep the triangle-strip condition and its message next to the mesh stage count.

Tested

Apple M4 (10-core GPU), macOS 27.2, MoltenVK (no mesh shaders, no fragment barycentrics, no VK_EXT_provoking_vertex), x86_64 build under Rosetta 2. Current main does not build its libc on macOS, so the runtime tests ran on the community macOS stack with #9356 and the same changes applied:

  • agc_driver_graphics, agc_driver_mesh (including the flat-input cases with the first and the last provoking vertex) and agc_driver_pixel_barycentric_emulation pass. The stack lacked #7426, so its three code commits were cherry-picked there.
  • The two GPU tests, agc_driver_mesh and agc_driver_pixel_barycentric_emulation, pass with and without VK_LAYER_KHRONOS_validation 1.4.357.0, with no validation errors. agc_driver_graphics is CPU-side. MoltenVK has no VK_EXT_provoking_vertex.
  • Negative controls fail as intended:
    • without the Recompiler.cpp line: the interface mismatch @root-over's titles hit;
    • without the Pipeline.cpp exemption: the VK_EXT_provoking_vertex requirement;
    • with provoking vertex 0 passed to the evaluation stage: vertex 0's value instead of vertex 2's.
  • On this branch, all changed sources and tests/Graphics.cpp compile.
  • The shader-cache key check (ShaderCacheVersion.cmake) passes. Without the three reviewed names it reports the six uses that @wachi35676 and @MarcZX10 hit.
  • tools/check_conventions.py --base origin/main passes.

Independent runs on the previous head (thanks):

  • @wachi35676: Windows, NVIDIA RTX 5070 Ti and an AMD RDNA2 iGPU with APS5_NO_MESH_SHADER=1.
    • agc_driver_mesh passes there, and the negative control fails without the change.
    • Their run found the two issues fixed here.
  • @root-over: Linux, RADV Vega (no mesh shaders, no fragment barycentrics), RADV and lavapipe, with no VUID-.
    • The five catalog titles below run with the Recompiler.cpp change that is now part of this PR. ccleste reaches its title screen.
    • On 75fb6a509, 17 more catalog titles get past main's missing-mesh-shader abort and are still running at 40 s. Four still stop: FMASK in two titles, and Ruffle Flash and Dusklight on this PR's "needs a vertex shader before it" condition (under investigation).

Not tested on titles on macOS (the macOS stack needs further work for ccleste).

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: #9356
  • Fixes: none
  • Unblocks: on devices without mesh shaders and fragment barycentrics, per @root-over's Linux runs (RADV Vega): ccleste (PPSA59322), PSXS5 (PPSA97510), SwanStationPS5 (PPSA98510), PSFlyCast (PPSA99247), Mario 64 (PPSA99310); and past main's "device does not support mesh shaders" abort, still running at 40 s: VLC (PPSA85300), XPSemu (PPSA97358), ReKHCoM (PPSA98511), Mortalfin (PPSA99141), DevilutionX (PPSA99308), Ship of Harkinian (PPSA99320), Wind Waker HD (PPSA99641), Link's Awakening (PPSA99670), RommPS (PPSA76677), PSP5 (PPSA99131), Seedee5 (PPSA99142), PS5SX2 (PPSA99203), PSSwanStation (PPSA99248), Eternal Darkness (PPSA99314), Art Swap (PPSA99318), Porpoise (PPSA99764), vkQuake (PPSA99010). Several of these only reach their own missing-data screen or ran without a dumped frame.
  • GPUs tested: Apple M4 (10-core GPU), MoltenVK (Vulkan 1.4), macOS 27.2 (x86_64 build under Rosetta 2)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4957678113 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9387). Originally posted by [Alexius0815](https://github.com/Alexius0815) on 2026-10-21T20:09:01Z. --- ### What Builds on #9356. On a device without `fragmentShaderBarycentric`, a mesh-path draw that runs through the compute fallback and whose pixel shader reads barycentrics had no route. The barycentric tessellation emulation from #7308 was limited to the vertex path. This PR feeds the mesh readback vertex shader from #9356 into `BuildBarycentricTessellationShaders`. The draw then runs as compute pass → readback VS → TCS → TES → fragment, drawn as a 3-control-point patch list. - `Execution/.../Draw.cpp`: a compute-fallback mesh program takes the emulation branch. It requires triangle output, tessellation support and no clip, cull or layer exports, and passes the provoking vertex mode as in #7426. - `Graphics/src/Draw.cpp`: `MeshComputeStages` accepts the two emulation stages after the mesh stage. - `Pipeline.cpp`: patch-list topology and `patchControlPoints = 3` for the emulation patches on the mesh path. Like the vertex path's patches, they need no `VK_EXT_provoking_vertex` for the last provoking vertex, because the generated evaluation stage writes the provoking vertex's flat values itself (#7426). - `ShaderValidation.cpp`: validates the five-stage mesh layout. The failure text stays "require a triangle list". - `Recompiler.cpp`: a pixel shader whose request runs the mesh program as compute is no longer compiled in mesh mode. Its flat inputs then stay per vertex, as the tessellation evaluation stage in front of it provides them (from @root-over, co-author). - `MeshReadbackVertexShader.cpp`: copies `parameterExports` so the control stage sees the mesh outputs. - `core/shader/recompiler/CMakeLists.txt`: `MeshRecordClipDistances`, `MeshRecordCullDistances` and `MeshRecordLayer` are recorded in `shaderCacheReviewedNames`. They are inline decoders of `RecompileResult::meshRecordLayout`, which is part of the cached result, and `Draw.cpp` only uses them to refuse draws. They do not reach a `RecompileRequest`. - `tests/Mesh.cpp`: `agc_driver_mesh` draws through the compute fallback with `fragmentShaderBarycentric` disabled, non-indexed and indexed, and compares front/back culling with the ordinary readback draw. A flat-input case with a different value per vertex checks the provoking vertex's value on every triangle, with the first and with the last provoking vertex. The emulated draws give the pixel request the mesh `GraphicsCompileContext`, as `DrawCapture` does. - `docs/dev/debt/libSceAgcDriver.md`: - lists the mesh-fallback cases that still refuse: clip, cull and layer exports; - lists the layered-draw case on devices with mesh shaders, whose pixel request still carries no `meshAsCompute`. Overlap: #8083 (now merged) and #8339 each change a condition line in `Execution/.../Draw.cpp`, and #8083 also changes the triangle-list check in `ShaderValidation.cpp`. This branch sits on #9356's current head f49a25ae9, which itself conflicts with main again. Once #9356 is rebased, I will rebase this commit onto it and keep the triangle-strip condition and its message next to the mesh stage count. ### Tested Apple M4 (10-core GPU), macOS 27.2, MoltenVK (no mesh shaders, no fragment barycentrics, no `VK_EXT_provoking_vertex`), x86_64 build under Rosetta 2. Current `main` does not build its `libc` on macOS, so the runtime tests ran on the community macOS stack with #9356 and the same changes applied: - `agc_driver_graphics`, `agc_driver_mesh` (including the flat-input cases with the first and the last provoking vertex) and `agc_driver_pixel_barycentric_emulation` pass. The stack lacked #7426, so its three code commits were cherry-picked there. - The two GPU tests, `agc_driver_mesh` and `agc_driver_pixel_barycentric_emulation`, pass with and without `VK_LAYER_KHRONOS_validation` 1.4.357.0, with no validation errors. `agc_driver_graphics` is CPU-side. MoltenVK has no `VK_EXT_provoking_vertex`. - Negative controls fail as intended: - without the `Recompiler.cpp` line: the interface mismatch @root-over's titles hit; - without the `Pipeline.cpp` exemption: the `VK_EXT_provoking_vertex` requirement; - with provoking vertex 0 passed to the evaluation stage: vertex 0's value instead of vertex 2's. - On this branch, all changed sources and `tests/Graphics.cpp` compile. - The shader-cache key check (`ShaderCacheVersion.cmake`) passes. Without the three reviewed names it reports the six uses that @wachi35676 and @MarcZX10 hit. - `tools/check_conventions.py --base origin/main` passes. Independent runs on the previous head (thanks): - @wachi35676: Windows, NVIDIA RTX 5070 Ti and an AMD RDNA2 iGPU with `APS5_NO_MESH_SHADER=1`. - `agc_driver_mesh` passes there, and the negative control fails without the change. - Their run found the two issues fixed here. - @root-over: Linux, RADV Vega (no mesh shaders, no fragment barycentrics), RADV and lavapipe, with no `VUID-`. - The five catalog titles below run with the `Recompiler.cpp` change that is now part of this PR. ccleste reaches its title screen. - On `75fb6a509`, 17 more catalog titles get past main's missing-mesh-shader abort and are still running at 40 s. Four still stop: FMASK in two titles, and Ruffle Flash and Dusklight on this PR's "needs a vertex shader before it" condition (under investigation). Not tested on titles on macOS (the macOS stack needs further work for ccleste). ### 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: #9356 - [x] Fixes: none - [x] Unblocks: on devices without mesh shaders and fragment barycentrics, per @root-over's Linux runs (RADV Vega): ccleste (PPSA59322), PSXS5 (PPSA97510), SwanStationPS5 (PPSA98510), PSFlyCast (PPSA99247), Mario 64 (PPSA99310); and past main's "device does not support mesh shaders" abort, still running at 40 s: VLC (PPSA85300), XPSemu (PPSA97358), ReKHCoM (PPSA98511), Mortalfin (PPSA99141), DevilutionX (PPSA99308), Ship of Harkinian (PPSA99320), Wind Waker HD (PPSA99641), Link's Awakening (PPSA99670), RommPS (PPSA76677), PSP5 (PPSA99131), Seedee5 (PPSA99142), PS5SX2 (PPSA99203), PSSwanStation (PPSA99248), Eternal Darkness (PPSA99314), Art Swap (PPSA99318), Porpoise (PPSA99764), vkQuake (PPSA99010). Several of these only reach their own missing-data screen or ran without a dumped frame. - [x] GPUs tested: Apple M4 (10-core GPU), MoltenVK (Vulkan 1.4), macOS 27.2 (x86_64 build under Rosetta 2) - [x] AI-assisted: yes
wachi35676 commented 2026-10-21 22:59:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-21T22:59:38Z.


Windows run with the compute fallback forced on NVIDIA and AMD (APS5_NO_MESH_SHADER=1, from #9356), and two problems. Head 1e72d36c (which includes #9356's 6861beb6) merged onto main a6dcea927 (clean merge).

Host: Windows 11 (10.0.26300), Ryzen 5 9600X, WinLibs GCC 15.2.0, Release. GPUs: NVIDIA RTX 5070 Ti (617.42) and AMD Radeon RDNA2 iGPU 1002:13c0 (proprietary 32.0.21042.62, ANYPS5_GPU=AMD). ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1.

  1. The build fails. The shader disk cache key check (ShaderCacheVersion.cmake) stops the libSceAgcDriver build:
    core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp uses ShaderRecompiler::MeshRecordClipDistances, which has not been reviewed for the shader disk cache key ...
    
    It fails the same way for MeshRecordCullDistances and MeshRecordLayer, in both Execution/.../Draw.cpp and Graphics/src/Draw.cpp. These uses come from this PR's commit. Main + #9356 alone builds. The check already exists at this branch's base 1698d1ea6, so the head should fail the same way there. Adding the three names to shaderCacheReviewedNames in core/shader/recompiler/CMakeLists.txt (next to #9356's MeshRecordBytes) lets it build. Everything below uses that local three-line addition.
  2. agc_driver_graphics fails on both GPUs: unexpected failure: AGC graphics: emulated barycentrics through tessellation require triangle output. ValidateShaders changed the message from "… require a triangle list" to "… require triangle output". tests/Graphics.cpp:7899 still does expectFailure(..., "require a triangle list"). On main + #9356 this test passes on both GPUs.

With the build fix:

  • With APS5_NO_MESH_SHADER=1, agc_driver_mesh passes on both GPUs and prints Mesh fallback barycentric pixels and front/back culling passed. Without the variable, both devices have mesh shaders and the new case is not entered.
  • Negative control: I reverted this commit's Graphics/src/{Draw,Pipeline,ShaderValidation}.cpp and MeshReadbackVertexShader.cpp and kept the test. agc_driver_mesh then fails with Barycentric geometry SPIR-V: fragment parameter 0 is not exported by the vertex shader.
  • The related set (agc_driver_mesh*, pixel_barycentric_emulation, layered_volume*, agc_mesh_output_budget, agc_fragment_barycentric, request_serializer, agc_shader_memory, agc_driver_graphics*), with and without APS5_NO_MESH_SHADER=1: everything except agc_driver_graphics (item 2) passes on both GPUs. The five agc_driver_mesh_* execution tests skip under APS5_NO_MESH_SHADER=1, as they also do on main + #9356.
  • On AMD the tessellation-based emulation draws correctly here, although agc_driver_tessellation fails on this AMD driver on main.
  • tools/check_conventions.py --base a6dcea927 passes.

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6328445098 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9387#issuecomment-6328445098). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-21T22:59:38Z. --- Windows run with the compute fallback forced on NVIDIA and AMD (`APS5_NO_MESH_SHADER=1`, from #9356), and two problems. Head `1e72d36c` (which includes #9356's `6861beb6`) merged onto main `a6dcea927` (clean merge). Host: Windows 11 (10.0.26300), Ryzen 5 9600X, WinLibs GCC 15.2.0, Release. GPUs: NVIDIA RTX 5070 Ti (617.42) and AMD Radeon RDNA2 iGPU `1002:13c0` (proprietary 32.0.21042.62, `ANYPS5_GPU=AMD`). `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`. 1. **The build fails.** The shader disk cache key check (`ShaderCacheVersion.cmake`) stops the `libSceAgcDriver` build: ``` core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp uses ShaderRecompiler::MeshRecordClipDistances, which has not been reviewed for the shader disk cache key ... ``` It fails the same way for `MeshRecordCullDistances` and `MeshRecordLayer`, in both `Execution/.../Draw.cpp` and `Graphics/src/Draw.cpp`. These uses come from this PR's commit. Main + #9356 alone builds. The check already exists at this branch's base `1698d1ea6`, so the head should fail the same way there. Adding the three names to `shaderCacheReviewedNames` in `core/shader/recompiler/CMakeLists.txt` (next to #9356's `MeshRecordBytes`) lets it build. Everything below uses that local three-line addition. 2. **`agc_driver_graphics` fails on both GPUs:** `unexpected failure: AGC graphics: emulated barycentrics through tessellation require triangle output`. `ValidateShaders` changed the message from "… require a triangle list" to "… require triangle output". `tests/Graphics.cpp:7899` still does `expectFailure(..., "require a triangle list")`. On main + #9356 this test passes on both GPUs. With the build fix: - With `APS5_NO_MESH_SHADER=1`, `agc_driver_mesh` passes on both GPUs and prints `Mesh fallback barycentric pixels and front/back culling passed`. Without the variable, both devices have mesh shaders and the new case is not entered. - Negative control: I reverted this commit's `Graphics/src/{Draw,Pipeline,ShaderValidation}.cpp` and `MeshReadbackVertexShader.cpp` and kept the test. `agc_driver_mesh` then fails with `Barycentric geometry SPIR-V: fragment parameter 0 is not exported by the vertex shader`. - The related set (`agc_driver_mesh*`, `pixel_barycentric_emulation`, `layered_volume*`, `agc_mesh_output_budget`, `agc_fragment_barycentric`, `request_serializer`, `agc_shader_memory`, `agc_driver_graphics*`), with and without `APS5_NO_MESH_SHADER=1`: everything except `agc_driver_graphics` (item 2) passes on both GPUs. The five `agc_driver_mesh_*` execution tests skip under `APS5_NO_MESH_SHADER=1`, as they also do on main + #9356. - On AMD the tessellation-based emulation draws correctly here, although `agc_driver_tessellation` fails on this AMD driver on main. - `tools/check_conventions.py --base a6dcea927` passes. AI-assisted: yes (Claude Code); results above were run on this machine.
MarcZX10 commented 2026-10-22 06:19:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T06:19:54Z.

Review: CHANGES_REQUESTED


Changes requested I reproduced the build blocker reported in the PR discussion. On this Linux host, cmake --build build --target agc_driver_mesh_tests --parallel 4 stops in ShaderCacheVersion.cmake: the new MeshRecordClipDistances, MeshRecordCullDistances, and MeshRecordLayer uses in both Execution/.../Draw.cpp and Graphics/src/Draw.cpp have not been reviewed for the shader disk cache key. Please establish whether these values can affect recompile output outside RecompileRequest; then either key the input or record the review in shaderCacheReviewedNames in core/shader/recompiler/CMakeLists.txt, as the guard directs, and rerun the focused build. There is also a regression in the existing graphics validation test reported by the independent Windows GPU run: ShaderValidation.cpp changes the failure text from “require a triangle list” to “require triangle output”, but tests/Graphics.cpp still expects the old text (reported at line 7899). agc_driver_graphics fails on both the NVIDIA and AMD configurations in that report. Please update the assertion to the new contract, or preserve the old stable text, then rerun that test on a GPU host. ## Intake, base, and coordination This branch depends on #9356 as stated. Its current head is 521 commits behind main (d6732b51a64f4322799af89b876b224d3aed6efc), so rebase and rerun checks before another review. The PR also notes one-line overlaps with open #8083 and #8339; coordinate merge order with those authors and preserve all three changes. I am refreshing the broader overlap scan separately because several graphics files are shared with active PRs. ## Checks observed - Local python3 tools/check_conventions.py --base upstream/main: passed. - Local git diff --check upstream/main...refs/review/9387: passed. - Local Linux agc_driver_mesh_tests build: failed at the shader-cache review gate with the six helper-use diagnostics above. - No local GPU runtime test: this host has no suitable GPU/driver. The PR's Windows/MoltenVK report and independent Windows NVIDIA/AMD reports provide runtime evidence, but the latter identify the two regressions above. - Existing hosted eligibility, conventions, intake, labels, and report checks passed; product build jobs were skipped.

I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5610022667 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9387#pullrequestreview-5610022667). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T06:19:54Z. **Review:** CHANGES_REQUESTED --- ## Changes requested I reproduced the build blocker reported in the PR discussion. On this Linux host, `cmake --build build --target agc_driver_mesh_tests --parallel 4` stops in `ShaderCacheVersion.cmake`: the new `MeshRecordClipDistances`, `MeshRecordCullDistances`, and `MeshRecordLayer` uses in both `Execution/.../Draw.cpp` and `Graphics/src/Draw.cpp` have not been reviewed for the shader disk cache key. Please establish whether these values can affect recompile output outside `RecompileRequest`; then either key the input or record the review in `shaderCacheReviewedNames` in `core/shader/recompiler/CMakeLists.txt`, as the guard directs, and rerun the focused build. There is also a regression in the existing graphics validation test reported by the independent Windows GPU run: `ShaderValidation.cpp` changes the failure text from “require a triangle list” to “require triangle output”, but `tests/Graphics.cpp` still expects the old text (reported at line 7899). `agc_driver_graphics` fails on both the NVIDIA and AMD configurations in that report. Please update the assertion to the new contract, or preserve the old stable text, then rerun that test on a GPU host. ## Intake, base, and coordination This branch depends on #9356 as stated. Its current head is 521 commits behind `main` (`d6732b51a64f4322799af89b876b224d3aed6efc`), so rebase and rerun checks before another review. The PR also notes one-line overlaps with open #8083 and #8339; coordinate merge order with those authors and preserve all three changes. I am refreshing the broader overlap scan separately because several graphics files are shared with active PRs. ## Checks observed - Local `python3 tools/check_conventions.py --base upstream/main`: passed. - Local `git diff --check upstream/main...refs/review/9387`: passed. - Local Linux `agc_driver_mesh_tests` build: failed at the shader-cache review gate with the six helper-use diagnostics above. - No local GPU runtime test: this host has no suitable GPU/driver. The PR's Windows/MoltenVK report and independent Windows NVIDIA/AMD reports provide runtime evidence, but the latter identify the two regressions above. - Existing hosted eligibility, conventions, intake, labels, and report checks passed; product build jobs were skipped. I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.
root-over commented 2026-10-22 07:41:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by root-over on 2026-10-22T07:41:00Z.


@Alexius0815 a first Linux run, and the first with titles. With this head, all five catalog titles stop on the same interface mismatch. A one-line change fixes it here.

Linux (Ubuntu, kernel 7.0), Ryzen 5 5625U iGPU: Vega/GCN 5, RADV RENOIR, Mesa 26.0.8. Vulkan reports no VK_EXT_mesh_shader and no fragmentShaderBarycentric, so the compute fallback is the only path. GCC 15.2.0, Release.

Compared:

  • this head 1e72d36c1
  • its parent, #9356's 6861beb61

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. RADV and lavapipe were each selected with VK_DRIVER_FILES.

Build. It stops at the shader cache key check for MeshRecordClipDistances, MeshRecordCullDistances and MeshRecordLayer, as @wachi35676 reported on Windows. Everything below adds those three names to shaderCacheReviewedNames.

Tests. ctest -R '^agc_driver_graphics$|mesh|layered_volume|barycentric|prepared_graphics|shader_disk_cache|request_serializer', 21 tests, on RADV and on lavapipe:

  • Everything passes on both drivers except agc_driver_graphics. On RADV that includes agc_driver_mesh with the new case (Mesh fallback barycentric pixels and front/back culling passed). On lavapipe agc_driver_mesh skips, as on #9356.
  • agc_driver_graphics fails on both drivers on the message change @wachi35676 found: unexpected failure: AGC graphics: emulated barycentrics through tessellation require triangle output.
  • No VUID- on either driver, and the layer loaded on both.

Titles. These five catalog titles draw mesh-path pixel shaders that read barycentrics: ccleste (PPSA59322), PSXS5 (PPSA97510), SwanStationPS5 (PPSA98510), PSFlyCast (PPSA99247) and Mario 64 (PPSA99310). Each ran for 40 s on RADV.

Build Result
#9356 6861beb61 all five abort at 3-4 s: a pixel shader on the mesh path reads barycentrics, and this device has neither VK_KHR_fragment_shader_barycentric nor mesh shaders
this head 1e72d36c1 all five abort at 3-4 s: graphics interfaces disagree at location 1 (stage 3 output vertex:f32x4, stage 4 input primitive:f32x4; ...) (ccleste at location 8)
this head + the line below all five run and present frames. ccleste reaches its title screen, Mario 64 shows its own "needs your own copy" dialog and quits by itself at 28 s, and the rest are still running at 40 s.

Cause. The pixel shader is still compiled in mesh mode: Recompiler.cpp sets meshBarycentricPixel for every fragment shader on the mesh path. Its flat inputs are then per-primitive, which the tessellation evaluation stage in front of it can't feed. The agc_driver_mesh case probably passes because its pixel shader has no flat inputs. This is the follow-up @billythemenace2 mentions in #9356's thread ("still compiles its pixel shader in mesh mode"). On a device without mesh shaders, VulkanDevice already sets target.meshAsCompute for every stage, so this is enough here:

-    targetOptions.meshBarycentricPixel = request.shader.stage == ShaderStage::Fragment && request.graphics && request.graphics->mesh;
+    targetOptions.meshBarycentricPixel = request.shader.stage == ShaderStage::Fragment && request.graphics && request.graphics->mesh && !request.target.meshAsCompute;

With it, the 21-test set gives the same results as above on both drivers, again with no VUID-.

A device that has mesh shaders but runs a layered draw as compute (MeshDrawLayers > maxMeshOutputLayers) also needs the fragment request to carry meshAsCompute. DrawCapture.cpp sets it only for the mesh stage, so I extended that condition to program.binary.stage == Stage::Mesh || (program.binary.stage == Stage::Fragment && graphics.stages.mesh) in my own branch. I can't test that case: this GPU has no mesh shaders.

I had the same route through a geometry stage instead of tessellation (eff3479e9, mentioned in #6528 and #9356). Since this PR covers the same draws and also works without geometry shaders, I'm not opening mine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6335471159 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9387#issuecomment-6335471159). Originally posted by [root-over](https://github.com/root-over) on 2026-10-22T07:41:00Z. --- @Alexius0815 a first Linux run, and the first with titles. With this head, all five catalog titles stop on the same interface mismatch. A one-line change fixes it here. Linux (Ubuntu, kernel 7.0), Ryzen 5 5625U iGPU: Vega/GCN 5, RADV RENOIR, Mesa 26.0.8. Vulkan reports no `VK_EXT_mesh_shader` and no `fragmentShaderBarycentric`, so the compute fallback is the only path. GCC 15.2.0, Release. Compared: - this head `1e72d36c1` - its parent, #9356's `6861beb61` `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`. RADV and lavapipe were each selected with `VK_DRIVER_FILES`. **Build.** It stops at the shader cache key check for `MeshRecordClipDistances`, `MeshRecordCullDistances` and `MeshRecordLayer`, as @wachi35676 reported on Windows. Everything below adds those three names to `shaderCacheReviewedNames`. **Tests.** `ctest -R '^agc_driver_graphics$|mesh|layered_volume|barycentric|prepared_graphics|shader_disk_cache|request_serializer'`, 21 tests, on RADV and on lavapipe: - Everything passes on both drivers except `agc_driver_graphics`. On RADV that includes `agc_driver_mesh` with the new case (`Mesh fallback barycentric pixels and front/back culling passed`). On lavapipe `agc_driver_mesh` skips, as on #9356. - `agc_driver_graphics` fails on both drivers on the message change @wachi35676 found: `unexpected failure: AGC graphics: emulated barycentrics through tessellation require triangle output`. - No `VUID-` on either driver, and the layer loaded on both. **Titles.** These five catalog titles draw mesh-path pixel shaders that read barycentrics: ccleste (PPSA59322), PSXS5 (PPSA97510), SwanStationPS5 (PPSA98510), PSFlyCast (PPSA99247) and Mario 64 (PPSA99310). Each ran for 40 s on RADV. | Build | Result | |---|---| | #9356 `6861beb61` | all five abort at 3-4 s: `a pixel shader on the mesh path reads barycentrics, and this device has neither VK_KHR_fragment_shader_barycentric nor mesh shaders` | | this head `1e72d36c1` | all five abort at 3-4 s: `graphics interfaces disagree at location 1 (stage 3 output vertex:f32x4, stage 4 input primitive:f32x4; ...)` (ccleste at location 8) | | this head + the line below | all five run and present frames. ccleste reaches its title screen, Mario 64 shows its own "needs your own copy" dialog and quits by itself at 28 s, and the rest are still running at 40 s. | **Cause.** The pixel shader is still compiled in mesh mode: `Recompiler.cpp` sets `meshBarycentricPixel` for every fragment shader on the mesh path. Its flat inputs are then per-primitive, which the tessellation evaluation stage in front of it can't feed. The `agc_driver_mesh` case probably passes because its pixel shader has no flat inputs. This is the follow-up @billythemenace2 mentions in #9356's thread ("still compiles its pixel shader in mesh mode"). On a device without mesh shaders, `VulkanDevice` already sets `target.meshAsCompute` for every stage, so this is enough here: ```diff - targetOptions.meshBarycentricPixel = request.shader.stage == ShaderStage::Fragment && request.graphics && request.graphics->mesh; + targetOptions.meshBarycentricPixel = request.shader.stage == ShaderStage::Fragment && request.graphics && request.graphics->mesh && !request.target.meshAsCompute; ``` With it, the 21-test set gives the same results as above on both drivers, again with no `VUID-`. A device that has mesh shaders but runs a layered draw as compute (`MeshDrawLayers` > `maxMeshOutputLayers`) also needs the fragment request to carry `meshAsCompute`. `DrawCapture.cpp` sets it only for the mesh stage, so I extended that condition to `program.binary.stage == Stage::Mesh || (program.binary.stage == Stage::Fragment && graphics.stages.mesh)` in my own branch. I can't test that case: this GPU has no mesh shaders. I had the same route through a geometry stage instead of tessellation (`eff3479e9`, mentioned in #6528 and #9356). Since this PR covers the same draws and also works without geometry shaders, I'm not opening mine.
Alexius0815 commented 2026-10-22 14:10:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Alexius0815 on 2026-10-22T14:10:52Z.


Thanks @wachi35676, @root-over and @MarcZX10, both build issues were mine. My compile check built the touched objects directly and so skipped the shader-cache key step. Updated head 3bd6f51ff:

Rebase. The branch is now on main 8b3e39832. #9356 no longer applies to main by itself since 930b9640d split Graphics::Draw into prepare and record. In this branch its commit carries the obvious resolution: the MeshComputeStages call moves to the start of the new Draw, and KnownValidationFailure and DrawWithRecipe merge unchanged. @billythemenace2, FYI. I'll rebase onto #9356 again once you update it.

Shader cache key. MeshRecordClipDistances, MeshRecordCullDistances and MeshRecordLayer are the inline decoders of RecompileResult::meshRecordLayout (Recompiler.hpp). The layout is part of the cached result (#9356's disk cache format). Draw.cpp only reads them to refuse a draw, and nothing they return goes into a RecompileRequest. So I recorded them in shaderCacheReviewedNames. The key check passes now. With the three names removed, it reports exactly the six uses from your logs.

agc_driver_graphics. I kept the old failure text "require a triangle list". It also describes the mesh path, whose readback draw is a triangle list, so tests/Graphics.cpp stays as it is.

Flat inputs. @root-over, thanks for the title runs and the diagnosis. Your Recompiler.cpp line is in the commit, with you as co-author. You're right that the agc_driver_mesh fixture passes without it. Its pixel shader has a single parameter, and making that one flat turns the emulation off, so this case is covered by your title runs rather than by the test. I left out the DrawCapture.cpp part for layered draws on devices with mesh shaders: neither of us can run it, and it changes #9356's layered route. I recorded the gap in the debt entry instead. Happy to add it if you or @billythemenace2 can test it.

Re-run on the M4 (MoltenVK, no mesh shaders, no fragment barycentrics, community macOS stack with the same changes):

  • agc_driver_graphics, agc_driver_mesh and agc_driver_pixel_barycentric_emulation pass, also with the Khronos validation layer and no validation errors.
  • All changed sources compile on this branch.
  • check_conventions.py --base origin/main passes.

Intake. I updated the description. Unblocks now lists the five titles from @root-over's run, and Tested credits both independent runs. On merge order with #8083 and #8339: each overlaps by one condition line, and I'll rebase onto whichever lands first.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6342854805 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9387#issuecomment-6342854805). Originally posted by [Alexius0815](https://github.com/Alexius0815) on 2026-10-22T14:10:52Z. --- Thanks @wachi35676, @root-over and @MarcZX10, both build issues were mine. My compile check built the touched objects directly and so skipped the shader-cache key step. Updated head `3bd6f51ff`: **Rebase.** The branch is now on main `8b3e39832`. #9356 no longer applies to main by itself since 930b9640d split `Graphics::Draw` into prepare and record. In this branch its commit carries the obvious resolution: the `MeshComputeStages` call moves to the start of the new `Draw`, and `KnownValidationFailure` and `DrawWithRecipe` merge unchanged. @billythemenace2, FYI. I'll rebase onto #9356 again once you update it. **Shader cache key.** `MeshRecordClipDistances`, `MeshRecordCullDistances` and `MeshRecordLayer` are the inline decoders of `RecompileResult::meshRecordLayout` (`Recompiler.hpp`). The layout is part of the cached result (#9356's disk cache format). `Draw.cpp` only reads them to refuse a draw, and nothing they return goes into a `RecompileRequest`. So I recorded them in `shaderCacheReviewedNames`. The key check passes now. With the three names removed, it reports exactly the six uses from your logs. **`agc_driver_graphics`.** I kept the old failure text "require a triangle list". It also describes the mesh path, whose readback draw is a triangle list, so `tests/Graphics.cpp` stays as it is. **Flat inputs.** @root-over, thanks for the title runs and the diagnosis. Your `Recompiler.cpp` line is in the commit, with you as co-author. You're right that the `agc_driver_mesh` fixture passes without it. Its pixel shader has a single parameter, and making that one flat turns the emulation off, so this case is covered by your title runs rather than by the test. I left out the `DrawCapture.cpp` part for layered draws on devices with mesh shaders: neither of us can run it, and it changes #9356's layered route. I recorded the gap in the debt entry instead. Happy to add it if you or @billythemenace2 can test it. **Re-run on the M4** (MoltenVK, no mesh shaders, no fragment barycentrics, community macOS stack with the same changes): - `agc_driver_graphics`, `agc_driver_mesh` and `agc_driver_pixel_barycentric_emulation` pass, also with the Khronos validation layer and no validation errors. - All changed sources compile on this branch. - `check_conventions.py --base origin/main` passes. **Intake.** I updated the description. Unblocks now lists the five titles from @root-over's run, and Tested credits both independent runs. On merge order with #8083 and #8339: each overlaps by one condition line, and I'll rebase onto whichever lands first. AI-assisted: yes
adriadam10 commented 2026-10-24 02:30:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-24T02:30:19Z.

Review: CHANGES_REQUESTED


Reviewed 75fb6a509 on top of #9356. The routing, the five-stage validation and the shaderCacheReviewedNames additions (inline decoders of meshRecordLayout, which is part of the cached result) look right. One gap before this can go in:

  • Recompiler.cpp:608 makes the mesh-fallback pixel shader keep flat inputs per vertex, and Draw.cpp passes the provoking vertex mode through, but agc_driver_mesh only exercises PerspectiveCenter with interpolatorSettings[0] = 0 and provoking vertex first. Please add a case with a flat pixel input (distinct values per vertex, checked on the pixel) and one with PROVOKING_VTX_LAST, each of which must fail without this change. Without one, the line that unblocks the catalog titles is unpinned.
  • This branch is stacked on #9356, whose head is now f49a25ae9, and conflicts with main. Once #9356 lands, rebase this commit onto main and keep the strip condition and message from #8083 next to the mesh stage count.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5636427699 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9387#pullrequestreview-5636427699). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-24T02:30:19Z. **Review:** CHANGES_REQUESTED --- Reviewed `75fb6a509` on top of #9356. The routing, the five-stage validation and the `shaderCacheReviewedNames` additions (inline decoders of `meshRecordLayout`, which is part of the cached result) look right. One gap before this can go in: - `Recompiler.cpp:608` makes the mesh-fallback pixel shader keep flat inputs per vertex, and `Draw.cpp` passes the provoking vertex mode through, but `agc_driver_mesh` only exercises `PerspectiveCenter` with `interpolatorSettings[0] = 0` and provoking vertex first. Please add a case with a flat pixel input (distinct values per vertex, checked on the pixel) and one with `PROVOKING_VTX_LAST`, each of which must fail without this change. Without one, the line that unblocks the catalog titles is unpinned. - This branch is stacked on #9356, whose head is now `f49a25ae9`, and conflicts with `main`. Once #9356 lands, rebase this commit onto `main` and keep the strip condition and message from #8083 next to the mesh stage count.
adriadam10 commented 2026-10-28 14:29:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-28T14:29:50Z.

Review: CHANGES_REQUESTED


Re-reviewed 73641399d. The two cases from my last comment are in: agc_driver_mesh now draws a flat pixel input with distinct per-vertex values and checks blue/alpha on every triangle with both the first and the last provoking vertex, which pins Recompiler.cpp:608 and the provoking-vertex handling. The MeshBarycentricPatches change in Pipeline.cpp reads correctly.

What is left is the stack:

  • #9356 is still open, has an unresolved change request and conflicts with main. This PR conflicts with main in the serializer version (RequestSerializer.cpp, RequestSerializerTests.cpp, ShaderMemory.cpp), CacheKey.hpp, Recompiler.hpp/.cpp, ShaderDiskCache.hpp, the SPIR-V emitter state and docs/dev/debt/libSceAgcDriver.md. Those are format-version and field-order conflicts, so the rebase needs judgement and should be done by the stack's authors once #9356 is settled.
  • After #9356 lands, rebase this commit onto main, take the next free serializer/cache versions, and keep the strip condition and message from #8083 next to the mesh stage count. Nothing else is pending from the review side.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5684313446 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9387#pullrequestreview-5684313446). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-28T14:29:50Z. **Review:** CHANGES_REQUESTED --- Re-reviewed `73641399d`. The two cases from my last comment are in: `agc_driver_mesh` now draws a flat pixel input with distinct per-vertex values and checks blue/alpha on every triangle with both the first and the last provoking vertex, which pins `Recompiler.cpp:608` and the provoking-vertex handling. The `MeshBarycentricPatches` change in `Pipeline.cpp` reads correctly. What is left is the stack: - #9356 is still open, has an unresolved change request and conflicts with `main`. This PR conflicts with `main` in the serializer version (`RequestSerializer.cpp`, `RequestSerializerTests.cpp`, `ShaderMemory.cpp`), `CacheKey.hpp`, `Recompiler.hpp`/`.cpp`, `ShaderDiskCache.hpp`, the SPIR-V emitter state and `docs/dev/debt/libSceAgcDriver.md`. Those are format-version and field-order conflicts, so the rebase needs judgement and should be done by the stack's authors once #9356 is settled. - After #9356 lands, rebase this commit onto `main`, take the next free serializer/cache versions, and keep the strip condition and message from #8083 next to the mesh stage count. Nothing else is pending from the review side.
XairRrR commented 2026-10-29 04:05:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T04:05:23Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The change builds on its own base and does what it says: the new agc_driver_mesh cases pass with the compute fallback forced, fail without the change, and log no validation errors. It cannot go in yet because it conflicts with current main in 18 files.

What I ran

  • PR head: 73641399d35dafa6576e1c974bff65e207f1bd20 (on #9356's f49a25ae9f036a1d27e6418faeac7c812be5773e)
  • main: b433c40f2f46aa2e59e19806010a839ac8572d64
  • Merge base: f57e4ef7209ebd3b482b5b2bd2fd34f9884cfd80, 6050 commits behind that main
  • Host: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, in a clean worktree
git fetch origin main pull/9387/head:refs/review/9387
git checkout --detach origin/main
git merge --no-ff --no-edit refs/review/9387          # conflicts, aborted
git checkout --detach refs/review/9387
git diff --check origin/main...refs/review/9387
python3 tools/check_conventions.py --base origin/main
cmake -S . -B build
cmake --build build -j10 --target agc_driver_mesh_tests agc_driver_graphics_tests request_serializer_tests agc_shader_memory_tests agc_driver_pixel_barycentric_emulation_tests
R='^(agc_driver_mesh|agc_driver_graphics|agc_driver_pixel_barycentric_emulation|request_serializer|agc_shader_memory)$'
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer \
  ctest --test-dir build -R "$R" -V -j4 --output-on-failure
APS5_NO_MESH_SHADER=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer \
  ctest --test-dir build -R "$R" -V -j4 --output-on-failure

Results

Check Result
Merge into main b433c40f2f Conflicts in 18 files (list below)
git diff --check Clean
tools/check_conventions.py --base origin/main All conventions checks passed.
Build of the five test targets (PR head) OK
5 focused tests, native mesh shaders 5/5 passed
5 focused tests, APS5_NO_MESH_SHADER=1 5/5 passed; agc_driver_mesh prints the new fallback line
VUID- lines (both runs) 0
was not found but was requested by env var VK_INSTANCE_LAYERS Absent; the loader logged Insert instance layer "VK_LAYER_KHRONOS_validation" for each Vulkan test
Conflicting files against main b433c40f2f
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/debt/libSceAgcDriver.md
ctest, APS5_NO_MESH_SHADER=1 (PR head)
1/5 Test #464: agc_shader_memory ........................   Passed    0.17 sec
2/5 Test   #2: request_serializer .......................   Passed    0.00 sec
3/5 Test #813: agc_driver_pixel_barycentric_emulation ...   Passed    0.47 sec
488: Mesh fallback barycentric pixels, front/back culling and flat inputs with the first and last provoking vertex passed
488: Mesh tests passed
4/5 Test #488: agc_driver_mesh ..........................   Passed    0.96 sec
5/5 Test #486: agc_driver_graphics ......................   Passed    4.20 sec
100% tests passed out of 5

Negative control

The merge conflicts, so I ran both controls on the PR head. "Reverted" means restored from the parent commit, #9356's f49a25ae9. In both I kept tests/Mesh.cpp and set APS5_NO_MESH_SHADER=1.

  1. Reverted all six production files of this commit (Execution/.../Draw.cpp, Graphics/src/Draw.cpp, Pipeline.cpp, ShaderValidation.cpp, Recompiler.cpp, MeshReadbackVertexShader.cpp). agc_driver_mesh fails:
    Barycentric geometry SPIR-V: fragment parameter 0 is not exported by the vertex shader
    
  2. Reverted only Recompiler.cpp. agc_driver_mesh fails on the interface mismatch that @root-over's titles hit:
    AGC graphics: graphics interfaces disagree at location 0 (stage 3 output vertex:f32x4, stage 4 input primitive:f32x4; ...)
    

These match the author's controls and @wachi35676's. Run 2 confirms independently that the new flat-input case pins Recompiler.cpp:609. I did not repeat the Pipeline.cpp provoking-vertex control: this device has VK_EXT_provoking_vertex, so that control cannot fail here.

Findings

Blocking

  • Conflicts with main. The branch is 6050 commits behind b433c40f2f, and the merge conflicts in the 18 files listed above. The conflicts are in the request serializer, the cache key and the SPIR-V emitter state, so the rebase needs a new format version. The checklist line "Based on current main" is ticked, but that is not the case today. @adriadam10 and @wachi35676 already reported this. My result above is the current list against today's main. As already discussed in the thread: once #9356 lands, rebase, take the next free serializer and cache versions, keep #8083's strip condition, and clear fragmentBarycentricBuiltins in the fixture as @Betr0x found.

Non-blocking

  • The readback vertex shader is built twice, once on every draw. At Execution/.../Draw.cpp:894, every emulated mesh-fallback draw builds a fresh BuildMeshReadbackVertexShader result. That includes a SPIR-V Tools validate and optimize pass (MeshReadbackVertexShader.cpp:163). The draw only uses it for its parameterExports, as input to BuildBarycentricTessellationShaders. Meanwhile, Graphics/src/Draw.cpp:902-912 already caches a readback per variant id, and that cached one is what the pipeline binds. The vertex path already rebuilds the two patch stages per draw, so this adds a third SPIR-V Tools pass on the mesh path only. Passing *programResults[0] with its parameterExports, or reusing the cached readback, would avoid it. I did not measure the cost.
  • The error message is out of date. Execution/.../Draw.cpp:880 now also accepts a compute-fallback mesh program, but the message still says the pixel shader "needs a vertex shader before it". Ruffle Flash and Dusklight stop on this message in @root-over's run, and the text no longer says which condition failed. Something like "needs exactly one vertex or compute-fallback mesh program before it" would make those logs actionable.

Not verified

  • The routing in Execution/.../Draw.cpp:864-901 runs on no test. The fixture builds the patches itself, as the author notes. My negative control 1 reverts that file only together with the others, so a mistake in the pass-through or in the refusal conditions would not show here.
  • I did not run the merged tree, because it does not merge. For the same reason I did not run the main side of the validation comparison: main has no mesh-fallback emulation path to compare against. The PR head logged no VUID- lines at all, so it adds none on this device.
  • The layered-draw case on devices with mesh shaders, which the debt entry records as still failing, was not tested.
  • I did not test any titles.

To get this to a good state

  1. Once #9356 lands, rebase onto main and resolve the 18 conflicts. Bump the request serializer and cache versions past main's, keep the triangle-strip condition from #8083, and clear target.fragmentBarycentricBuiltins in tests/Mesh.cpp.
  2. Rerun agc_driver_mesh with APS5_NO_MESH_SHADER=1, together with agc_driver_graphics and agc_driver_pixel_barycentric_emulation, on the rebased head.
  3. Optionally, address the two non-blocking points above.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5692721213 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9387#pullrequestreview-5692721213). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T04:05:23Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The change builds on its own base and does what it says: the new `agc_driver_mesh` cases pass with the compute fallback forced, fail without the change, and log no validation errors. It cannot go in yet because it conflicts with current `main` in 18 files. ## What I ran - PR head: `73641399d35dafa6576e1c974bff65e207f1bd20` (on #9356's `f49a25ae9f036a1d27e6418faeac7c812be5773e`) - `main`: `b433c40f2f46aa2e59e19806010a839ac8572d64` - Merge base: `f57e4ef7209ebd3b482b5b2bd2fd34f9884cfd80`, 6050 commits behind that `main` - Host: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, in a clean worktree ```sh git fetch origin main pull/9387/head:refs/review/9387 git checkout --detach origin/main git merge --no-ff --no-edit refs/review/9387 # conflicts, aborted git checkout --detach refs/review/9387 git diff --check origin/main...refs/review/9387 python3 tools/check_conventions.py --base origin/main cmake -S . -B build cmake --build build -j10 --target agc_driver_mesh_tests agc_driver_graphics_tests request_serializer_tests agc_shader_memory_tests agc_driver_pixel_barycentric_emulation_tests R='^(agc_driver_mesh|agc_driver_graphics|agc_driver_pixel_barycentric_emulation|request_serializer|agc_shader_memory)$' VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer \ ctest --test-dir build -R "$R" -V -j4 --output-on-failure APS5_NO_MESH_SHADER=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer \ ctest --test-dir build -R "$R" -V -j4 --output-on-failure ``` ## Results | Check | Result | |---|---| | Merge into `main` `b433c40f2f` | **Conflicts in 18 files** (list below) | | `git diff --check` | Clean | | `tools/check_conventions.py --base origin/main` | `All conventions checks passed.` | | Build of the five test targets (PR head) | OK | | 5 focused tests, native mesh shaders | 5/5 passed | | 5 focused tests, `APS5_NO_MESH_SHADER=1` | 5/5 passed; `agc_driver_mesh` prints the new fallback line | | `VUID-` lines (both runs) | 0 | | `was not found but was requested by env var VK_INSTANCE_LAYERS` | Absent; the loader logged `Insert instance layer "VK_LAYER_KHRONOS_validation"` for each Vulkan test | <details><summary>Conflicting files against main b433c40f2f</summary> ``` core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp core/shader/recompiler/CMakeLists.txt core/shader/recompiler/CacheKey.hpp core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp core/shader/recompiler/Recompiler.cpp core/shader/recompiler/Recompiler.hpp core/shader/recompiler/ShaderDiskCache.hpp core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp core/shader/recompiler/tests/RequestSerializerTests.cpp docs/dev/debt/libSceAgcDriver.md ``` </details> <details><summary>ctest, APS5_NO_MESH_SHADER=1 (PR head)</summary> ``` 1/5 Test #464: agc_shader_memory ........................ Passed 0.17 sec 2/5 Test #2: request_serializer ....................... Passed 0.00 sec 3/5 Test #813: agc_driver_pixel_barycentric_emulation ... Passed 0.47 sec 488: Mesh fallback barycentric pixels, front/back culling and flat inputs with the first and last provoking vertex passed 488: Mesh tests passed 4/5 Test #488: agc_driver_mesh .......................... Passed 0.96 sec 5/5 Test #486: agc_driver_graphics ...................... Passed 4.20 sec 100% tests passed out of 5 ``` </details> ## Negative control The merge conflicts, so I ran both controls on the PR head. "Reverted" means restored from the parent commit, #9356's `f49a25ae9`. In both I kept `tests/Mesh.cpp` and set `APS5_NO_MESH_SHADER=1`. 1. Reverted all six production files of this commit (`Execution/.../Draw.cpp`, `Graphics/src/Draw.cpp`, `Pipeline.cpp`, `ShaderValidation.cpp`, `Recompiler.cpp`, `MeshReadbackVertexShader.cpp`). `agc_driver_mesh` **fails**: ``` Barycentric geometry SPIR-V: fragment parameter 0 is not exported by the vertex shader ``` 2. Reverted only `Recompiler.cpp`. `agc_driver_mesh` **fails** on the interface mismatch that @root-over's titles hit: ``` AGC graphics: graphics interfaces disagree at location 0 (stage 3 output vertex:f32x4, stage 4 input primitive:f32x4; ...) ``` These match the author's controls and @wachi35676's. Run 2 confirms independently that the new flat-input case pins `Recompiler.cpp:609`. I did not repeat the `Pipeline.cpp` provoking-vertex control: this device has `VK_EXT_provoking_vertex`, so that control cannot fail here. ## Findings ### Blocking - **Conflicts with `main`.** The branch is 6050 commits behind `b433c40f2f`, and the merge conflicts in the 18 files listed above. The conflicts are in the request serializer, the cache key and the SPIR-V emitter state, so the rebase needs a new format version. The checklist line "Based on current `main`" is ticked, but that is not the case today. @adriadam10 and @wachi35676 already reported this. My result above is the current list against today's `main`. As already discussed in the thread: once #9356 lands, rebase, take the next free serializer and cache versions, keep #8083's strip condition, and clear `fragmentBarycentricBuiltins` in the fixture as @Betr0x found. ### Non-blocking - **The readback vertex shader is built twice, once on every draw.** At [`Execution/.../Draw.cpp:894`](https://github.com/boykopovar/AnyPS5/blob/73641399d35dafa6576e1c974bff65e207f1bd20/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp#L894), every emulated mesh-fallback draw builds a fresh `BuildMeshReadbackVertexShader` result. That includes a SPIR-V Tools validate and optimize pass ([`MeshReadbackVertexShader.cpp:163`](https://github.com/boykopovar/AnyPS5/blob/73641399d35dafa6576e1c974bff65e207f1bd20/core/shader/recompiler/SpirvBackend/src/MeshReadbackVertexShader.cpp#L162-L164)). The draw only uses it for its `parameterExports`, as input to `BuildBarycentricTessellationShaders`. Meanwhile, [`Graphics/src/Draw.cpp:902-912`](https://github.com/boykopovar/AnyPS5/blob/73641399d35dafa6576e1c974bff65e207f1bd20/core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp#L902-L912) already caches a readback per variant id, and that cached one is what the pipeline binds. The vertex path already rebuilds the two patch stages per draw, so this adds a third SPIR-V Tools pass on the mesh path only. Passing `*programResults[0]` with its `parameterExports`, or reusing the cached readback, would avoid it. I did not measure the cost. - **The error message is out of date.** [`Execution/.../Draw.cpp:880`](https://github.com/boykopovar/AnyPS5/blob/73641399d35dafa6576e1c974bff65e207f1bd20/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp#L880) now also accepts a compute-fallback mesh program, but the message still says the pixel shader "needs a vertex shader before it". Ruffle Flash and Dusklight stop on this message in @root-over's run, and the text no longer says which condition failed. Something like "needs exactly one vertex or compute-fallback mesh program before it" would make those logs actionable. ## Not verified - The routing in `Execution/.../Draw.cpp:864-901` runs on no test. The fixture builds the patches itself, as the author notes. My negative control 1 reverts that file only together with the others, so a mistake in the pass-through or in the refusal conditions would not show here. - I did not run the merged tree, because it does not merge. For the same reason I did not run the `main` side of the validation comparison: `main` has no mesh-fallback emulation path to compare against. The PR head logged no `VUID-` lines at all, so it adds none on this device. - The layered-draw case on devices with mesh shaders, which the debt entry records as still failing, was not tested. - I did not test any titles. ## To get this to a good state 1. Once #9356 lands, rebase onto `main` and resolve the 18 conflicts. Bump the request serializer and cache versions past `main`'s, keep the triangle-strip condition from #8083, and clear `target.fragmentBarycentricBuiltins` in `tests/Mesh.cpp`. 2. Rerun `agc_driver_mesh` with `APS5_NO_MESH_SHADER=1`, together with `agc_driver_graphics` and `agc_driver_pixel_barycentric_emulation`, on the rebased head. 3. Optionally, address the two non-blocking points above.
MarcZX10 commented 2026-10-29 08:10:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T08:10:42Z.

Review: CHANGES_REQUESTED


Rechecked current head 73641399d35dafa6576e1c974bff65e207f1bd20 and the follow-up reports.

Addressed since my earlier review

  • shaderCacheReviewedNames now includes the three MeshRecord* fields, so the original cache-review gate finding is addressed.
  • tests/Graphics.cpp expects the updated triangle-output diagnostic, fixing the assertion mismatch I reported.
  • The old overlap/order concerns with #8083 and #8339 are resolved; both PRs have merged.
  • The added Apple M4 title results materially strengthen the evidence that the mesh fallback reaches ccleste and PSteroid5.

Changes requested

The mesh test fixture still fails on the reported M4 integration tree. DrawMesh in tests/Mesh.cpp clears fragmentShaderBarycentricEnabled for the emulation case, but leaves fragmentBarycentricBuiltins set. The current main device target can carry that second flag, so the test still selects a native-barycentric path instead of the fallback. The M4 report says agc_driver_mesh fails for this fixture, and the author agreed to clear both flags. Please make that fixture change on the next integration head and rerun agc_driver_mesh with the validation layer, confirming the layer loads and the test passes.

This branch is correctly stacked on open #9356 (Depends on: #9356). The current head is still the child of #9356 head f49a25ae9...; please retain that stack, then after #9356 lands rebase onto current main, allocate the next serializer/cache versions, and rerun the focused build and tests on the resulting tree. The rebase should also include the promised fixture correction.

I did not run a local GPU build or title test in this workspace. I am not approving while the reported agc_driver_mesh regression remains.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5694585477 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9387#pullrequestreview-5694585477). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T08:10:42Z. **Review:** CHANGES_REQUESTED --- Rechecked current head `73641399d35dafa6576e1c974bff65e207f1bd20` and the follow-up reports. ### Addressed since my earlier review - `shaderCacheReviewedNames` now includes the three `MeshRecord*` fields, so the original cache-review gate finding is addressed. - `tests/Graphics.cpp` expects the updated triangle-output diagnostic, fixing the assertion mismatch I reported. - The old overlap/order concerns with #8083 and #8339 are resolved; both PRs have merged. - The added Apple M4 title results materially strengthen the evidence that the mesh fallback reaches ccleste and PSteroid5. ### Changes requested **The mesh test fixture still fails on the reported M4 integration tree.** `DrawMesh` in `tests/Mesh.cpp` clears `fragmentShaderBarycentricEnabled` for the emulation case, but leaves `fragmentBarycentricBuiltins` set. The current `main` device target can carry that second flag, so the test still selects a native-barycentric path instead of the fallback. The M4 report says `agc_driver_mesh` fails for this fixture, and the author agreed to clear both flags. Please make that fixture change on the next integration head and rerun `agc_driver_mesh` with the validation layer, confirming the layer loads and the test passes. This branch is correctly stacked on open #9356 (`Depends on: #9356`). The current head is still the child of #9356 head `f49a25ae9...`; please retain that stack, then after #9356 lands rebase onto current main, allocate the next serializer/cache versions, and rerun the focused build and tests on the resulting tree. The rebase should also include the promised fixture correction. I did not run a local GPU build or title test in this workspace. I am not approving while the reported `agc_driver_mesh` regression remains.
adriadam10 commented 2026-10-29 17:14:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-29T17:14:23Z.

Review: CHANGES_REQUESTED


Re-checked 73641399d against the last review.

  • The flat-input cases are in agc_driver_mesh (distinct per-vertex values, first and last provoking vertex, every triangle) and pin Recompiler.cpp:608. The MeshBarycentricPatches change in Pipeline.cpp and the shaderCacheReviewedNames additions look right.
  • Still blocking: #9356 is open, conflicts with main and has an unresolved change request, and this branch conflicts with main in 18 files (serializer/cache versions, field order, SPIR-V emitter state, docs/dev/debt/libSceAgcDriver.md). We can't rebase this commit until #9356 is settled, because the version and field-order choices depend on how it lands.
  • Once #9356 is on main, rebase onto it, take the next free serializer/cache versions, keep the strip condition and message from #8083 next to the mesh stage count, and clear target.fragmentBarycentricBuiltins in tests/Mesh.cpp as you proposed.

Nothing else is pending from the review side.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5701961834 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9387#pullrequestreview-5701961834). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-29T17:14:23Z. **Review:** CHANGES_REQUESTED --- Re-checked `73641399d` against the last review. - The flat-input cases are in `agc_driver_mesh` (distinct per-vertex values, first and last provoking vertex, every triangle) and pin `Recompiler.cpp:608`. The `MeshBarycentricPatches` change in `Pipeline.cpp` and the `shaderCacheReviewedNames` additions look right. - Still blocking: #9356 is open, conflicts with `main` and has an unresolved change request, and this branch conflicts with `main` in 18 files (serializer/cache versions, field order, SPIR-V emitter state, `docs/dev/debt/libSceAgcDriver.md`). We can't rebase this commit until #9356 is settled, because the version and field-order choices depend on how it lands. - Once #9356 is on `main`, rebase onto it, take the next free serializer/cache versions, keep the strip condition and message from #8083 next to the mesh stage count, and clear `target.fragmentBarycentricBuiltins` in `tests/Mesh.cpp` as you proposed. Nothing else is pending from the review side.
kurexw commented 2026-11-16 23:45:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kurexw on 2026-11-16T23:45:06Z.

Review: COMMENTED


I tried to test this on an Apple M4 (macOS 27.2, MoltenVK 1.4.2, x86-64 build under Rosetta 2). MoltenVK there reports fragmentShaderBarycentric and tessellation but no mesh shaders, which is the case this PR targets. I couldn't get a result, for two reasons:

  • Not on current main: a trial merge onto main at c40f058298 conflicts in 25 files, and I didn't want to resolve conflicts in your code and then report on my resolution.
  • Not at its own merge-base (f57e4ef720, 2026-10-23): that tree predates the macOS port of libc and libkernel. ninja -k 0 fails in 53 objects, for example 'link.h' file not found (GuestAllocations.cpp, DynamicLoader.cpp, Rtld.cpp), 'linux/if_link.h' file not found, 'sys/vfs.h' file not found, and the Linux mcontext_t register names in Exception.cpp. So no AGC test links on macOS at that base. Not testable on the M4 at its base.
Files that conflict with main at c40f058298
  • core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
  • core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
  • core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
  • core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
  • core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
  • core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
  • core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
  • core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
  • core/libs/prx/libSceAgcDriver/tests/Mesh.cpp
  • core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
  • core/libs/prx/libSceAgcDriver/tests/execution/LayeredVolumeDraw.cpp
  • core/shader/recompiler/CMakeLists.txt
  • core/shader/recompiler/CacheKey.hpp
  • core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
  • core/shader/recompiler/Recompiler.cpp
  • core/shader/recompiler/Recompiler.hpp
  • core/shader/recompiler/ShaderDiskCache.cpp
  • core/shader/recompiler/ShaderDiskCache.hpp
  • core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
  • core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
  • core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
  • core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
  • core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
  • core/shader/recompiler/tests/RequestSerializerTests.cpp
  • docs/dev/ENVIRONMENT.md

Once it's rebased onto a current main, I can run the mesh and barycentric tests (agc_driver_mesh*, agc_driver_mesh_barycentric_emulation, agc_driver_pixel_barycentric_emulation, agc_driver_layered_volume*) on the M4 with the AGENTS.md validation setup, comparing against main. One more note: on this MoltenVK, the driver-level mesh execution tests skip as soon as VK_EXT_mesh_shader is missing. So unless they are gated on the fallback, they wouldn't exercise this path either.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5929973701 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9387#pullrequestreview-5929973701). Originally posted by [kurexw](https://github.com/kurexw) on 2026-11-16T23:45:06Z. **Review:** COMMENTED --- I tried to test this on an Apple M4 (macOS 27.2, MoltenVK 1.4.2, x86-64 build under Rosetta 2). MoltenVK there reports `fragmentShaderBarycentric` and tessellation but no mesh shaders, which is the case this PR targets. I couldn't get a result, for two reasons: - **Not on current `main`:** a trial merge onto `main` at c40f058298 conflicts in 25 files, and I didn't want to resolve conflicts in your code and then report on my resolution. - **Not at its own merge-base (f57e4ef720, 2026-10-23):** that tree predates the macOS port of `libc` and `libkernel`. `ninja -k 0` fails in 53 objects, for example `'link.h' file not found` (GuestAllocations.cpp, DynamicLoader.cpp, Rtld.cpp), `'linux/if_link.h' file not found`, `'sys/vfs.h' file not found`, and the Linux `mcontext_t` register names in `Exception.cpp`. So no AGC test links on macOS at that base. Not testable on the M4 at its base. <details><summary>Files that conflict with main at c40f058298</summary> - `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp` - `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` - `core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp` - `core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp` - `core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp` - `core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` - `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp` - `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` - `core/libs/prx/libSceAgcDriver/tests/Mesh.cpp` - `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` - `core/libs/prx/libSceAgcDriver/tests/execution/LayeredVolumeDraw.cpp` - `core/shader/recompiler/CMakeLists.txt` - `core/shader/recompiler/CacheKey.hpp` - `core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp` - `core/shader/recompiler/Recompiler.cpp` - `core/shader/recompiler/Recompiler.hpp` - `core/shader/recompiler/ShaderDiskCache.cpp` - `core/shader/recompiler/ShaderDiskCache.hpp` - `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp` - `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` - `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` - `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` - `core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` - `core/shader/recompiler/tests/RequestSerializerTests.cpp` - `docs/dev/ENVIRONMENT.md` </details> Once it's rebased onto a current `main`, I can run the mesh and barycentric tests (`agc_driver_mesh*`, `agc_driver_mesh_barycentric_emulation`, `agc_driver_pixel_barycentric_emulation`, `agc_driver_layered_volume*`) on the M4 with the AGENTS.md validation setup, comparing against `main`. One more note: on this MoltenVK, the driver-level mesh execution tests skip as soon as `VK_EXT_mesh_shader` is missing. So unless they are gated on the fallback, they wouldn't exercise this path either.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/9387:upstream-pr/9387'
git switch 'upstream-pr/9387'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/9387'
git switch 'upstream-pr/9387'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/9387'
git switch 'upstream-pr/9387'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/9387'
git switch 'main'
git merge --squash 'upstream-pr/9387'
git switch 'main'
git merge --ff-only 'upstream-pr/9387'
git switch 'main'
git merge 'upstream-pr/9387'
git push origin 'main'
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!9387
No description provided.