Skip to content

perf(agc): share one render pass between mesh-path draws run as compute - #15548

Draft
Gonic0 wants to merge 30 commits into
boykopovar:mainfrom
Gonic0:perf/agc-mesh-compute-shared-pass
Draft

Gonic0 wants to merge 30 commits into
boykopovar:mainfrom
Gonic0:perf/agc-mesh-compute-shared-pass

Conversation

@Gonic0

@Gonic0 Gonic0 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What

Stacked on #17611, which supersedes #9356. This branch is #17611's current head 70015a5ccf and this pull request's commit e17b4986d1. That commit is the previous head's 91d892a10b cherry-picked onto 70015a5ccf without conflicts and without changes. It adds no request serialization or shader disk cache version of its own; it uses #17611's shader disk cache format 78. The conflicts with main are #17611's: #17611 alone conflicts with main in the same files, and this commit applies cleanly on top of it.

Builds on #17611. A mesh-path draw run as a compute pass forces its own render pass today, because its dispatch must be recorded outside one. Consecutive mesh-path draws into the same attachments therefore cost a pass each, and on a tile-based GPU each pass loads and stores the attachments again.

With this change, the recorder splits the batch when a mesh-path draw begins a pass: the work before the pass, a prologue command buffer, and the pass. The draw records its dispatch into the prologue. A later mesh-path draw that continues the pass under the existing hazard check (PassHazards::Check) records its dispatch into the same prologue and its draw into the open pass. The three command buffers are submitted together, in order, in the batch's one vkQueueSubmit.

  • The prologue starts with a barrier from ALL_COMMANDS memory writes to COMPUTE_SHADER, DRAW_INDIRECT and TRANSFER reads and writes, so its dispatches see everything recorded before the pass. Each dispatch keeps its own trailing barrier to DRAW_INDIRECT and VERTEX_SHADER, which orders it before the draws in the pass.
  • A dispatch moved ahead of earlier draws in the pass reads only what the hazard check already proved those draws do not write. Its writes go to the draw's own fresh output buffer.
  • Occlusion counting in segment mode keeps working: each segment query begins and ends inside the pass command buffer. With one query per batch (not segment mode), or for an indirect, captured or GPU-indirect mesh-path draw, the draw still breaks the pass as before. So does a mesh-path draw that reads a tessellation capture, has staged clears or uses the pixel function LDS: main records the work its dispatch depends on into the pass command buffer, which runs after the prologue.
  • DrawPassStart carries main's pass break reason next to the prologue. A draw that closes an open pass to start a prologue reports forced.
  • A pass that a non-mesh draw opened has no prologue, so a mesh-path draw after it begins a new pass, as before.

Tested

macOS 27.3, Apple M5 Pro, Apple clang, x86-64 Release under Rosetta 2. #17611's head does not build on macOS without #16591, #16593, #17532, #17767 and #17425, so both trees below are 70015a5ccf with those five applied on a separate test branch that is not part of this pull request. Seven test targets outside the mesh path still fail to compile on macOS on that tree (agc_driver_table_index_validation, guest_ces_gbsetters, guest_ces_gbsetters_module, nkwebkit_resourcerequest, guest_webrtc_key_params, guest_webrtc_rtcp_transport_feedback, guest_exception_fault), the same with and without this commit.

ctest --test-dir build -R '^(request_serializer|shader_cache_file_read|agc_shader_memory|agc_mesh_output_budget|agc_driver_(graphics|layered_[a-z_]+|mesh[a-z_]*|pass_break_reasons|pass_input_hazard))$' -V on MoltenVK from Vulkan SDK 1.4.363.0, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, VK_LOADER_DEBUG=layer and APS5_NO_MESH_SHADER=1:

#17611 70015a5ccf this pull request e17b4986d1
tests 21: 13 pass, 8 skip 22: 14 pass, 8 skip
agc_driver_mesh_compute_shared_pass not present passes ("Consecutive mesh-path draws run as compute shared one render pass")
loader inserted VK_LAYER_KHRONOS_validation in every Vulkan test in every Vulkan test
was not found but was requested by env var VK_INSTANCE_LAYERS 0 0
VUID- messages 0 0

The eight skipped tests need VK_EXT_mesh_shader, which MoltenVK does not expose. KosmicKrisp and Linux and Windows were not run on this head. tools/check_conventions.py passes.

Performance: the measurement below is from an earlier head (f49a25ae9f plus 3a3880e952, on main 4f41f4c375 with the macOS port pull requests) and was not repeated on this one, so the tools/trace_digest.py summaries of main and of this change from one machine and scene are still missing. PPSA21564 on KosmicKrisp (no VK_EXT_mesh_shader), APS5_PROFILE_GPU=1. Three rounds of 140 s runs, alternating base and this change. Only the heavy windows count: the 10 s windows with more than 3000 mesh-path draws, about 75 per present.

round 1 round 2 round 3
presents per window, base 62.1 86.0 81.7
presents per window, this change 89.6 94.0 94.8
draw class GPU time per present, base 70.5 ms 62.1 ms 65.2 ms
draw class GPU time per present, this change 50.7 ms 47.1 ms 48.6 ms
render passes per window, base 6847 8800 8553
render passes per window, this change 3840 3558 3733

On average, 21 % more presents and 26 % less draw GPU time in those windows. This head adds the captured, staged clear and pixel function LDS exclusions above; how many of PPSA21564's mesh-path draws they cover was not measured. Frames dumped in the same scene showed no missing or broken geometry. That the saving comes from attachment loads and stores of the merged passes is inferred from the tile-based design, not measured on its own.

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 (none added)
  • Generic behaviour, not specific to one title
  • Depends on: feat(agc): emulate mesh pipeline draws with a compute pass when VK_EXT_mesh_shader is unavailable #17611
  • Fixes: none
  • Unblocks: none
  • GPUs tested: Apple M5 Pro, MoltenVK from Vulkan SDK 1.4.363.0, macOS 27.3 (KosmicKrisp not run on this head)
  • AI-assisted: yes

🤖 Generated with Claude Code

@github-actions github-actions Bot added build shader core/shader docs agc libSceAgc* perf Performance change perf numbers missing perf pull request without a before and after summary line labels Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

This pull request is labeled perf, so it needs the summary line of a capture on main and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both aps5-summary.jsonl lines, attach the two traces and add the output of tools/trace_digest.py.

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

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

Pull request Conflicting files (lines on main) Same exports Same new files
PR 9356 core/shader/recompiler/SpirvBackend/src/MeshReadbackVertexShader.cpp
PR 9387 core/shader/recompiler/SpirvBackend/src/MeshReadbackVertexShader.cpp

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 1395 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 1896 docs/dev/ENVIRONMENT.md
PR 4448 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 4847 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
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/tests/Graphics.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ARCHITECTURE.md
PR 6186 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 6188 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.hpp
PR 6192 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6280 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6340 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6412 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ARCHITECTURE.md
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 6553 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 6743 docs/dev/ARCHITECTURE.md
PR 6808 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6924 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ENVIRONMENT.md
PR 7002 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7085 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7275 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
docs/dev/ENVIRONMENT.md
PR 7392 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.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/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/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/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 7643 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 7668 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7684 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ARCHITECTURE.md
PR 7689 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 8246 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 9289 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 9318 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9345 docs/dev/ENVIRONMENT.md
PR 9356 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.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/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/MeshReadbackVertexShader.cpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 9387 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.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/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/MeshReadbackVertexShader.cpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 9508 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.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/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/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/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 9592 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9633 core/shader/recompiler/ShaderDiskCache.cpp
PR 9712 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 9748 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 9749 core/shader/recompiler/ShaderDiskCache.cpp
PR 9790 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 9852 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ENVIRONMENT.md
PR 9895 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9897 core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9915 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9969 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 10193 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.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/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/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/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 10351 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
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/Graphics.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 10359 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
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/tests/RequestSerializerTests.cpp
PR 10492 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 10497 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 10743 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 10867 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
PR 11435 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 11444 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 11452 core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 11483 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
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/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/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 11551 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
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/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 11587 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 11825 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 11914 core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 12324 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
docs/dev/ENVIRONMENT.md
PR 12544 docs/dev/ENVIRONMENT.md
PR 12568 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 12575 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 12746 docs/dev/ENVIRONMENT.md
PR 12828 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 12849 docs/dev/ENVIRONMENT.md
PR 12863 docs/dev/ENVIRONMENT.md
PR 12944 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
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
PR 13147 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13148 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13809 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/ENVIRONMENT.md
PR 13863 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 13920 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 13928 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.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/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/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/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 13929 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.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/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/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/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 14032 core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 14217 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 14218 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 14260 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/ENVIRONMENT.md
PR 14262 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/ENVIRONMENT.md
PR 14473 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 14853 core/shader/recompiler/ShaderDiskCache.cpp
PR 14871 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 14944 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 15136 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 15296 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 15343 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
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/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
PR 15456 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 15488 core/shader/recompiler/CMakeLists.txt
PR 15529 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 15555 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 15570 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/ENVIRONMENT.md
PR 15936 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 16217 docs/dev/ENVIRONMENT.md
PR 16260 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 16321 core/shader/recompiler/ShaderDiskCache.cpp
PR 16354 docs/dev/ENVIRONMENT.md
PR 16371 docs/dev/ENVIRONMENT.md
PR 16372 docs/dev/ENVIRONMENT.md
PR 16391 core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 16427 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
docs/dev/ENVIRONMENT.md
PR 16472 core/shader/recompiler/ShaderDiskCache.cpp
PR 16571 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 16631 core/shader/recompiler/ShaderDiskCache.cpp
PR 16793 docs/dev/ENVIRONMENT.md
PR 16796 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 16812 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 16814 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 16831 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 16879 core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 16935 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 16953 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 17022 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/shader/recompiler/CMakeLists.txt
PR 17056 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
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/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 17259 docs/dev/ENVIRONMENT.md
PR 17261 docs/dev/ENVIRONMENT.md
PR 17555 docs/dev/ENVIRONMENT.md
PR 17556 docs/dev/ENVIRONMENT.md
PR 17557 docs/dev/ENVIRONMENT.md
PR 17558 docs/dev/ENVIRONMENT.md
PR 17719 docs/dev/ENVIRONMENT.md
PR 17729 docs/dev/ENVIRONMENT.md
PR 17943 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 18029 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 18082 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 18106 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 18107 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 18173 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 18177 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 18226 docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 18293 docs/dev/ENVIRONMENT.md
PR 18693 docs/dev/ENVIRONMENT.md
PR 18829 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 19096 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 19429 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 19479 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 19557 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 19620 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 19710 core/shader/recompiler/Recompiler.hpp
PR 19821 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 19852 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 20010 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
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/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 20030 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
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/tests/RequestSerializerTests.cpp
PR 20041 core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 20111 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
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/tests/RequestSerializerTests.cpp
PR 20130 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 20153 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 20172 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 20248 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
docs/dev/ENVIRONMENT.md
PR 20518 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/tests/Mesh.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/ENVIRONMENT.md
PR 20519 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.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/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
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
docs/dev/ENVIRONMENT.md
PR 20728 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 20891 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 20944 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 21199 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 21211 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 21240 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 21303 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 21460 docs/dev/ENVIRONMENT.md
PR 21649 docs/dev/ENVIRONMENT.md
PR 21745 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 21763 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 21776 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 21923 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 21948 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 22001 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22025 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 22029 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 22034 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
PR 22071 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
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/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/ENVIRONMENT.md
PR 22140 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
Report truncated: 323 more lines omitted.

billythemenace2 and others added 5 commits November 8, 2026 18:21
…out mesh shaders

A mesh-path draw (the NGG primitive shader path) needed VK_EXT_mesh_shader.
On a device without it, or for a draw whose targets have more layers than
the device's maxMeshOutputLayers, the mesh program is now compiled as a
GLCompute shader (SpirvTarget::meshAsCompute) that writes the draw's
primitives and vertex records to a device buffer behind a
VkDrawIndirectCommand header. A generated readback vertex shader
(BuildMeshReadbackVertexShader) reads the records back for a triangle or
line list drawn with vkCmdDrawIndirect, carrying position, parameters,
clip and cull distances and the provoking vertex's layer.

- The compute pass has its own pipeline layout with a compute push range;
  the draw's independent-sets layout lost the device on RDNA1.
- The pass pins the program's subgroup size where the device allows it and
  refuses compute subgroups narrower than the wave, except the 32-lane
  subgroups that run a wave-64 program in paired lanes.
- MeshDrawRunsAsCompute decides per draw: always without mesh shaders, and
  on a device with them when MeshDrawLayers exceeds maxMeshOutputLayers.
- APS5_NO_MESH_SHADER=1 leaves VK_EXT_mesh_shader off.
- Serialization version 43 stores meshAsCompute; the shader disk cache
  format is 45 for the record layout field.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…nd it

From review of the mesh compute fallback:
- An indirect mesh draw run as compute sized its output buffer for four
  instances, and a record with more drew nothing. Its record is now read
  on the CPU (IndirectDrawPath::MeshCompute, which waits for the producer
  like the other CPU-read paths), and the buffer is sized from the groups
  and instances it resolves to. Mesh.cpp draws an indirect record with six
  instances.
- The output buffer is bounded: a draw that needs more than 256 MiB
  (MeshComputeOutputLimitBytes) or maxStorageBufferRange throws.
- docs/dev/ARCHITECTURE.md describes the compute pass and the readback
  vertex stage.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
main gained mesh-path point output with register and exported point
sizes. The compute fallback's vertex record carries no point size and its
readback draws triangle or line lists, so a mesh program with point output
run as compute now throws instead of failing to emit; agc_driver_mesh runs
its point cases on the native mesh stage only, and the debt file lists it.
Rebased onto main: serialization version 45 after main's point and fused
arithmetic fields, shader disk cache format 46.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…aders

Supersedes boykopovar#9356 by billythemenace2; commits c0faaaf, fe9ac93 and ecf0a2b cherry-picked with authorship preserved, reconciled onto current main (serialization 57, disk-cache format 61) with fallback hardening and tests.
@Gonic0
Gonic0 force-pushed the perf/agc-mesh-compute-shared-pass branch from 374cd56 to 91d892a Compare November 9, 2026 03:33
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 9, 2026
@Doorriiaann

Copy link
Copy Markdown
Contributor

NVIDIA GeForce RTX 3070 (8 GB), driver 610.57.04, Debian 13, kernel 6.12.115+deb13.1-amd64 (a device with VK_EXT_mesh_shader)
Commit: merge-base 424702f37f and PR head 91d892a10b (it contains #17611's head 1e6ee875e3, so both columns compare main with #17611 plus this PR's commit), GCC 13.3.0 Release, only the test targets rebuilt per commit
Command: ANYPS5_GPU=NVIDIA ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -R '^(request_serializer|shader_cache_file_read|agc_shader_memory|agc_mesh_output_budget|agc_driver_(graphics|layered_[a-z_]+|mesh[a-z_]*|pass_break_reasons|pass_input_hazard))$' -V (the pattern from the description), 2 runs per commit, without and with APS5_NO_MESH_SHADER=1; validation layer vulkan-sdk-1.4.335.0

merge-base 424702f37f this PR 91d892a10b
native mesh stage (device reports mesh=1) 21 tests: 42/42 passed 22 tests: 44/44 passed
APS5_NO_MESH_SHADER=1 (device reports mesh=0) n/a (the variable is new in this PR) 14 passed ×2, 8 skipped ×2, none failed
  • The 8 tests that skipped on the Mac (they need VK_EXT_mesh_shader) run and pass here on the native mesh stage, which also covers feat(agc): emulate mesh pipeline draws with a compute pass when VK_EXT_mesh_shader is unavailable #17611's mesh argument layout that the description says did not run on the Mac: agc_driver_mesh_barycentric_emulation, _mesh_draw_relocation, _mesh_index_cache, _mesh_provoking_layer, _mesh_provoking_vertex, _mesh_vector_window_waves, _mesh_vector_window_writes and agc_driver_layered_volume_mesh. With APS5_NO_MESH_SHADER=1 they skip, as on the Mac.
  • agc_driver_mesh_compute_shared_pass passes in both columns. It opens its device with mesh=0 even on the native run, so it covers the compute path on NVIDIA either way.

Result: no regression on a mesh-shader device, and the compute fallback passes on NVIDIA. The head and its merge with current main 0dd2fffe35 also build on Linux now.
Validation layer loaded (no "was not found" line). New VUID- errors vs merge-base: none (no VUID- or SYNC-HAZARD- line in any of the 8 runs).

AI-assisted: yes (run and drafted with an AI agent, checked by me)

The draw-time MeshDrawRunsAsCompute decision now matches the compile-time one (mesh && (forced || !meshShader)): on mesh-capable devices oversized-layer draws stay on the native layer-window replay instead of throwing in recordMeshCompute, whose pipeline has no compute stage there. Removes the now-unused MeshDrawLayers helper, scopes the BDA capability allowance to the compute/readback stages, documents the readback cache, and rewords the ARCHITECTURE section. Tests updated plus a literal 34-slice/8-layer regression.
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 10, 2026
@MarcZX10

Copy link
Copy Markdown
Contributor

Reviewed — changes requested

The mesh compute fallback has a test path that can fail on unsupported subgroup sizes instead of skipping. The recorder also has a possible partial-state failure when a draw exceeds the output cap.

What I ran

  • Read the automated review output for head 061e546.
  • No tests or builds were run for this review.

Results

Check Result Note
Merge risk Low The review identifies one test failure case and one possible recorder state issue.
Security architecture Low The concern is failure containment during draw recording.
Inline findings 3 One blocking correctness issue and two non-blocking reliability and performance concerns.

Findings

Blocking

  • core/libs/prx/libSceAgcDriver/tests/execution/LayeredVolumeDraw.cpp:494: The default target.meshAsCompute path does not check host subgroup size. On devices with a 16-lane subgroup, MeshComputeStages rejects this wave-64 program and the test fails instead of skipping. Add the same 32-or-64-lane guard as the --mesh-execution path and return VulkanTestSkipped for unsupported sizes.

Non-blocking

  • core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp:1: If output-cap validation rejects a draw after pass selection or splitting and draw timing has begun, the batch may retain partial recording state or commands that reference draw-local buffers whose ownership was not transferred. Validate output sizing before changing recorder state, and invalidate or discard the batch on later recording failure; transfer buffer ownership before recording commands that reference them.
  • core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp:2165: Reserving exactly size() + 2 on each split can relocate the command-buffer chain repeatedly, causing quadratic CPU work across many pass breaks. Grow capacity geometrically when fewer than two slots remain, while reserving before command-buffer allocation.

Not verified

  • Whether recording failures in this interval always invalidate the batch before it can be reused.
  • Whether the interrupted static analysis of ShaderMemory.cpp and Graphics.cpp would find additional issues.

To get this to a good state

Add the subgroup guard to the default mesh-as-compute test path. Make recorder failure handling leave the batch safe to reuse or explicitly invalidate it, transfer buffer ownership before recording references, and grow the command-buffer chain geometrically. Then run the relevant execution tests and checks.

@MarcZX10

Copy link
Copy Markdown
Contributor

Reviewed — changes requested

The review found a blocking compatibility issue: the default mesh-as-compute path can fail on devices with narrow compute subgroups instead of skipping the draw. It also identified test gaps, duplicated record-layout calculations, and an unbounded shader cache.

What I ran

  • Read the automated review output for head 061e546.
  • No tests or builds were run for this review.

Results

Check Result Note
Merge risk Medium The default mesh-as-compute path can fail on devices with narrow compute subgroups.
Security architecture Low The reported concern is local memory pressure from retained shaders.
Inline findings 8 One blocking draw compatibility issue and seven non-blocking findings.

Findings

Blocking

  • Draw.cpp:1425: The new else if (target.meshAsCompute) branch runs a mesh draw without checking the subgroup width. The --mesh-execution branch performs that check and skips. On a device without VK_EXT_mesh_shader whose compute subgroups have 8 or 16 lanes, MeshComputeStages rejects the 64-lane mesh draw at Draw.cpp:1425. The Require failure propagates to main, which returns 1. Before this change, the default invocation skipped mesh work on such devices.
  • Draw.cpp:1424: Use the same lane rule as MeshComputeStages (Draw.cpp:1424-1425) before this branch. When the lane count cannot satisfy the draw, print the skip message and return VulkanTestSkipped, as the --mesh-execution branch does. Do not rely on target.subgroupSize alone, because MeshComputeStages also considers computeWave32 and the shader's host subgroup size.

Non-blocking

  • core/libs/prx/libSceAgcDriver/tests/execution/LayeredVolumeDraw.cpp:494: The default mesh-as-compute test path does not check subgroup lane compatibility. On devices with narrow compute subgroups, the draw can fail instead of being skipped. Apply the same compatibility rule as MeshComputeStages, including computeWave32 and the shader host subgroup size, and skip incompatible draws.
  • core/libs/prx/libSceAgcDriver/tests/MeshCullStore.cpp:186: The assertion checks only the select condition, so it can pass even if inactive corners keep their original position. Check that the inactive operand is offscreen and the active operand preserves the original position.
  • core/shader/recompiler/Recompiler.cpp:1: The emitter and recompiler independently compute the mesh record layout. A future change to one calculation could make the compute writer's stride disagree with the readback stride. Return the layout in SpirvEmitInfo and use that emitted value in Recompiler.
  • Recompiler.cpp:985: EmitMeshBufferOutputs and Recompiler compute the same record layout from separate loops. The compute writer uses the first layout for its record stride. The readback path uses the second layout from Recompiler.cpp:985. The two results agree only while both loops see the same outputs and the same mesh values. A later edit to one loop, such as the clip/cull counting, the layer selection, or the output filter, can change the stride on only one side. The compute shader then writes one stride, and the readback reads another.
  • SpirvModuleEmitter.cpp:2309: Record recordLayout in SpirvEmitInfo where EmitMeshBufferOutputs computes it (SpirvModuleEmitter.cpp:2309). Add a field for it to SpirvEmitInfo, which Emit already fills. Then copy that field into result.meshRecordLayout. The emitter must populate the field under the same meshAsCompute and mesh-stage gate that Recompiler.cpp:985 uses today. Otherwise the copy yields the default value.
  • Location not provided: The process-lifetime map retains one generated vertex shader per distinct mesh variant without visible eviction. Bound the cache while preserving shaders referenced by recorded or in-flight work to limit memory growth.

Not verified

  • Whether the shared draw prologue can reorder mesh compute work ahead of earlier fragment writes.
  • Whether any additional issues exist in the files whose analysis did not complete.
  • The review findings against the current code; tests and builds were not run.

To get this to a good state

Apply the subgroup compatibility check and skip behavior to the default mesh-as-compute path. Have the emitter provide the record layout used by the readback path, strengthen the inactive corner assertions, and bound the generated shader cache while retaining objects still in use. Then run the relevant tests and builds.

@MarcZX10

Copy link
Copy Markdown
Contributor

Reviewed — changes requested

The force-compute setting can select a compute draw while retaining a mesh shader stage, causing pipeline creation to reject the draw. A separate shared-pass hazard may also reorder overlapping writes.

What I ran

  • Read the automated review output for head 061e546.
  • No tests or builds were run for this review.

Results

Check Result Note
Merge risk Moderate Force-compute can fail for native-layout mesh programs; shared-pass writes may be reordered.
Security architecture Moderate The ordering concern affects guest-visible GPU state; no host or cross-guest access was established.
Inline findings 3 Two findings describe the force-compute draw failure at different locations; one describes conditional write ordering.

Findings

Blocking

  • core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp:1420: With APS5_FORCE_MESH_COMPUTE enabled, a mesh program with meshRecordLayout 0 can select a compute grid while retaining the Mesh stage. Pipeline creation then rejects the stage and the draw fails. Make the stage list and compute decision consistent, either by supplying compute stages or rejecting this input before planning the draw.
  • Pipeline.cpp:899: When APS5_FORCE_MESH_COMPUTE is set on a mesh-capable device, MeshComputeStages returns no stages for a mesh program whose meshRecordLayout is 0. Draw then keeps the Mesh stage in shaders. planDraw still selects the compute grid, because MeshDrawRunsAsCompute depends only on the switch. Pipeline then rejects the retained Mesh stage at Pipeline.cpp:899, and the draw fails.

Non-blocking

  • core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp: The compute prologue can move a later draw's work ahead of earlier raster work in a shared pass. The hazard check does not split on overlapping write-only ranges, so overlapping writes may become visible out of order. Treat overlapping writes as conflicts unless their order is proven immaterial.

Not verified

  • The remaining static analysis of ShaderMemory.cpp and Graphics.cpp did not complete.
  • The review did not establish whether native-layout mesh programs should use compute stages or be rejected under the force-compute setting.
  • The specific shared-pass overlapping-write scenario was described as conditional; its occurrence in a workload was not confirmed.

To get this to a good state

Align stage selection with the force-compute decision, and strengthen the shared-pass hazard check to account for overlapping writes. Then run the affected graphics and mesh tests and complete the interrupted analysis.

@MarcZX10

Copy link
Copy Markdown
Contributor

Reviewed — changes requested

The review found a pipeline-stage indexing bug that can reject valid mesh draws using stencil replay. It also identified gaps in cache-key and readback assertions, an unsupported compute-emitter combination, and a test mode that skips compute-backed targets.

What I ran

  • Read the automated review output for head 061e546.
  • No tests or builds were run for this review.

Results

Check Result Note
Merge risk Medium Stencil replay can cause valid compute-backed mesh draws to fail pipeline creation.
Security architecture Low No security-specific findings were reported.
Inline findings 5 One blocking finding and four non-blocking findings.

Findings

Blocking

  • core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp:940: The compute stage is erased from stages before stencil-replay validation indexes it alongside shaders. With compute, vertex, and fragment stages, this can check the fragment stage as if it were the vertex stage and reject valid draws. Run the validation before erasing the compute stage, while the indices still match.

Non-blocking

  • core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp:1337: The compute mesh branch returns without defining barycentric emulation outputs when meshBarycentricVertex is set. Reject this unsupported combination in the emitter before returning, so it cannot produce an incomplete module.
  • core/libs/prx/libSceAgcDriver/tests/MeshCullStore.cpp:186: The readback assertion checks that the position uses an OpSelect conditioned on an inactive corner, but does not check the selected value. Verify that the true operand is the outside-clip composite, including its first component, so swapped select arms fail the test.
  • core/shader/recompiler/tests/RequestSerializerTests.cpp:1200-1207: The test checks serialization round trips but not whether native and compute mesh requests produce different cache keys. Add assertions for the recompile and disk cache key builders; include meshAsCompute in either key if the variants currently collide.
  • core/libs/prx/libSceAgcDriver/tests/execution/LayeredVolumeDraw.cpp:429: Explicit mesh-execution mode skips targets that use the compute fallback. Allow target.meshAsCompute as an alternative to native mesh support while retaining the subgroup-size check, so this mode exercises the fallback path.

Not verified

  • The compute-skip finding for LayeredVolumeDraw.cpp:429 was reported as unverified.
  • Analysis of core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp and core/libs/prx/libSceAgcDriver/tests/Graphics.cpp did not complete.
  • The review summary also mentions pipeline creation failures for layered meshes using much of the available shared memory, but gives no file and line location or actionable detail to verify that concern.

To get this to a good state

Move stencil-replay validation before compute-stage extraction. Reject barycentric emulation in the compute mesh emitter, strengthen the readback and cache-key assertions, and let explicit mesh-execution mode include compute-backed targets. Then rerun the relevant checks, including the incomplete analyses.

@malekaifa

Copy link
Copy Markdown
Contributor

Integration/version checkpoint: this draft currently uses serialization version 65 for meshAsCompute, while active PR #28376 uses version 65 for linkedTableLiterals. Pairwise merge-tree also conflicts in RequestSerializer.cpp and RequestSerializerTests.cpp. Please keep this draft unmerged until #28376 lands first; then rebase this branch, move meshAsCompute to version 66, and update the compatibility fixtures/round-trip tests. Do not merge the two current v65 layouts together.

Find the stencil replay vertex stage by its stage bit, keep a prologue
draw's writes out of the write-only set, keep the output buffer before
recording references to it, report MeshComputeStages refusals as known
rejections, and refuse forced compute draws without a record layout or
with emulated barycentrics. Grow the prologue chain geometrically and
submit a chainless batch without building a list. Tighten the readback
and subgroup tests and clarify the docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gonic0

Gonic0 commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the reviews of 061e546. The findings that hold are fixed in df90b615f1.

Fixed

  • Pipeline.cpp, stencil replay: the check finds the vertex stage by its VK_SHADER_STAGE_VERTEX_BIT in stages, so removing the compute stage no longer shifts it onto the fragment stage.
  • Draw.cpp, write-only ranges of a prologue draw: a draw whose compute runs in the prologue keeps its GPU writes as plain writes for the pass hazard check. An earlier write-only store to the same range in the pass now breaks the pass (WriteAfterWrite), so the hoisted compute cannot run before it. PassHazards::Check is unchanged for every other draw.
  • Draw.cpp, the output buffer: recordMeshCompute hands the output buffer to the recorder before it records the fill, so a throw later in the draw cannot free a buffer that recorded commands reference.
  • Draw.cpp, KnownValidationFailure: a refusal from MeshComputeStages is returned as the known rejection instead of escaping the draw. Graphics.cpp checks it with the wave-32 program on 8-lane subgroups.
  • Draw.cpp, APS5_FORCE_MESH_COMPUTE with meshRecordLayout 0: MeshComputeStages refuses the draw on every device instead of keeping the mesh stage on a mesh device while planning and the pipeline treat it as compute.
  • Recompiler.cpp and SpirvModuleEmitter.cpp, emulated barycentrics: a mesh program compiled as compute with meshBarycentrics throws in the recompiler before the emitter runs, so no incomplete module is built.
  • Recorder.cpp: the command-buffer chain grows geometrically, and Submit builds the ordered list only when the batch has a chain; a batch without one submits &batch->commands directly.
  • Tests:
    • LayeredVolumeDraw.cpp:494 and Mesh.cpp: the compute path is skipped without a 32- or 64-lane host subgroup, the same rule as --mesh-execution. In LayeredVolumeDraw the vertex and thick-volume checks still run first.
    • MeshCullStore.cpp: the mesh check requires the marker select to feed an OpStore. The readback check requires the true operand to be a constant composite outside the clip volume (|x| > w) and the false operand to be the position loaded from the record, so swapped arms fail.
    • MeshComputeSharedPass.cpp: the destructor catches a failed writeback, reports it and leaves the target mapped.
    • Graphics.cpp: the five MeshDrawRunsAsCompute messages say the draw ran as compute.
    • RequestSerializerTests.cpp: the recompile cache key differs between meshAsCompute false and true. The disk cache key is built from the same key.
  • Docs: ARCHITECTURE.md says that any value of APS5_FORCE_MESH_COMPUTE, including 0, selects compute. The debt fragment limits the barycentrics gap to emulated barycentrics.

Not changed

  • SPIR-V 1.5 or 1.6 in the readback (Draw.cpp:1430, SpirvOptimizer.cpp:164, MeshReadbackVertexShader.cpp:178): VulkanDevice::buildTarget targets Vulkan 1.1 with SPIR-V 1.3, or 1.4 on a mesh device, and the mesh module takes its version from that target. The readback validates against the same Vulkan 1.1. Its version check now accepts 1.3 and 1.4 only, the range Vulkan 1.1 validates.
  • Indirect draws with several records (Draw.cpp:2839): as in the earlier reply, a mesh draw takes the whole-packet path only with one record and no count buffer (meshGpuSide), so every other mesh draw is drawn one record at a time.
  • Point topology (Pipeline.cpp:1042): emitVariant throws for point output on the compute path, and the gap is in the debt fragment.
  • Readback shader cache: the bound is recorded as debt in agc-mesh-fallback-compute.md. Evicting entries safely needs an owner for the pipelines that point at them.
  • Recorder.cpp:2116, sample counting without segments: the draw stays correct and only breaks the pass, as the non-prologue path does. The batch is not split there because a query must begin and end in the same command buffer.
  • Size checks after StartDrawPass: the draw-level handler rethrows, as for the other refusals recorded after the pass starts. The output buffer is now kept before any command references it.
  • LayeredVolumeDraw.cpp:429: two reviews ask for opposite changes. The explicit mode stays on native mesh execution, and the default mode covers the compute path.
  • Mesh.cpp:511: these lines are not in this PR.
  • Record layout in SpirvEmitInfo: both layouts come from the same outputs and mesh configuration today. I left the refactor out of this PR.

Tested (macOS, Rosetta x86_64 Release, MoltenVK, APS5_NO_MESH_SHADER=1, so the mesh draws run through the compute fallback)

  • The focused AGC set with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and VK_LOADER_DEBUG=layer: 23/23 pass with the same 9 skips as before and 0 VUID- messages. The log shows the layer inserted 19 times and no "was not found" message.
  • ctest -R "mesh|Mesh|readback|spirv_emit|indirect|recorder|pass_|shader_memory|request_serializer|agc_graphics" -E agc_driver_: 35/35 pass, including the new KnownValidationFailure and cache-key checks.
  • agc_mesh_cull_store_tests passes with ANYPS5_ENABLE_SPIRV_TOOLS off and on. With the readback select arms swapped it fails with "the position of an inactive corner is not outside the clip volume".
  • check_conventions.py --base upstream/main passes; pr_overlap.py --branch reports no overlap.
  • Not run: a draw with stencil replay through the compute path, and a pass where a prologue draw's write overlaps an earlier write-only store. Neither has a test yet.

The serialization version stays at 65 until #28376 lands; then I'll rebase and move meshAsCompute to 66.

@MarcZX10

Copy link
Copy Markdown
Contributor

Reviewed — changes requested

The compute fallback has two correctness issues: mesh indirect draws with multiple records throw, and generated SPIR-V can fail validation for targets at version 1.4 or later. Both affect the new fallback path and should be fixed before merge.

What I ran

  • Read the automated review output for head df90b61.
  • No tests or builds were run for this review.

Results

Check Result Note
Merge risk Moderate The compute fallback can throw or produce invalid SPIR-V.
Security architecture No findings No security issue was reported.
Inline findings 12 Ten blocking correctness issues and two non-blocking improvements.

Findings

Blocking

  • core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp:2836: The compute path requires at most one indirect mesh record, but draw setup preserves multiple records. Such draws throw instead of being recorded. Route them to individual-record handling before recording or dispatch each record separately, including zero-count and zero-instance records.
  • core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp:262: For target SPIR-V 1.4 or later, the module includes Private and Workgroup globals created for mesh-as-compute output without listing them in the entry-point interface. This can fail validation. Keep the module at SPIR-V 1.3, or add those globals to the interface for 1.4 and later.
  • SpirvEmitter.cpp:82: SpirvEmitterState starts a mesh-as-compute module at SPIR-V 1.3 (SpirvEmitter.cpp:82). Emit then calls state.module.RequireVersion(target.spirvVersion) (SpirvEmitter.cpp:263). That call keeps the higher version (SpirvModule.cpp:144-146). A target of 1.5 or 1.6 raises the module above 1.3. Vulkan 1.3 allows SPIR-V 1.6.
  • SpirvEmitter.cpp:263: SpirvEmitterState starts a mesh-as-compute module at SPIR-V 1.3 (SpirvEmitter.cpp:82). Emit then calls state.module.RequireVersion(target.spirvVersion) (SpirvEmitter.cpp:263). That call keeps the higher version (SpirvModule.cpp:144-146). A target of 1.5 or 1.6 raises the module above 1.3. Vulkan 1.3 allows SPIR-V 1.6.
  • SpirvModule.cpp:144: SpirvEmitterState starts a mesh-as-compute module at SPIR-V 1.3 (SpirvEmitter.cpp:82). Emit then calls state.module.RequireVersion(target.spirvVersion) (SpirvEmitter.cpp:263). That call keeps the higher version (SpirvModule.cpp:144-146). A target of 1.5 or 1.6 raises the module above 1.3. Vulkan 1.3 allows SPIR-V 1.6.
  • SpirvOptimizer.cpp:160: SpirvEmitterState starts a mesh-as-compute module at SPIR-V 1.3 (SpirvEmitter.cpp:82). Emit then calls state.module.RequireVersion(target.spirvVersion) (SpirvEmitter.cpp:263). That call keeps the higher version (SpirvModule.cpp:144-146). A target of 1.5 or 1.6 raises the module above 1.3. Vulkan 1.3 allows SPIR-V 1.6.
  • SpirvModuleEmitter.cpp:1330: The meshAsCompute branch of DefineMeshOutputs creates Private and Workgroup variables for the mesh output data (SpirvModuleEmitter.cpp:1330, 1335, 1336). It returns without adding them to state.interfaceVariables (SpirvModuleEmitter.cpp:1337). EmitEntryPoint lists only state.interfaceVariables (SpirvEmitter.cpp:353). SPIR-V 1.4 and later require the entry point to list every global variable it references. A module at 1.4 or later can therefore fail validation for these targets.
  • SpirvModuleEmitter.cpp:1337: The meshAsCompute branch of DefineMeshOutputs creates Private and Workgroup variables for the mesh output data (SpirvModuleEmitter.cpp:1330, 1335, 1336). It returns without adding them to state.interfaceVariables (SpirvModuleEmitter.cpp:1337). EmitEntryPoint lists only state.interfaceVariables (SpirvEmitter.cpp:353). SPIR-V 1.4 and later require the entry point to list every global variable it references. A module at 1.4 or later can therefore fail validation for these targets.
  • SpirvEmitter.cpp:353: The meshAsCompute branch of DefineMeshOutputs creates Private and Workgroup variables for the mesh output data (SpirvModuleEmitter.cpp:1330, 1335, 1336). It returns without adding them to state.interfaceVariables (SpirvModuleEmitter.cpp:1337). EmitEntryPoint lists only state.interfaceVariables (SpirvEmitter.cpp:353). SPIR-V 1.4 and later require the entry point to list every global variable it references. A module at 1.4 or later can therefore fail validation for these targets.
  • SpirvEmitterHelpers.cpp:471: Other 1.4-only globals are added only under state.spirvVersion >= 0x00010400u (for example SpirvEmitterHelpers.cpp:471). The compute-mode globals need the same handling, or the module version must stay at 1.3. The constructor already selects 1.3 for meshAsCompute, which suggests the second option is intended. Choose one option and apply it consistently. Capping the module at 1.4 does not fix this, because 1.4 has the same interface rule.

Non-blocking

  • core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp:361: The mesh reference is unused. Remove it; the later VertexInfo use remains.
  • core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp:2116: When sample counting is enabled and segment mode is off, the recorder can force a pass break even though it will not create a prologue. Check how callers handle a null prologue handle, then avoid the unnecessary break while preserving the required handling of prologueDraw.

Not verified

  • The two reported C++ files were not fully analyzed because analysis did not complete.
  • The findings have not been independently checked against the current source.

To get this to a good state

Handle multiple mesh indirect records without throwing, and ensure mesh-as-compute modules follow SPIR-V 1.4 interface rules or stay at 1.3. Then remove the unused reference and review the pass-break behavior for the null-prologue case. Rerun the affected tests and builds.

…t function

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gonic0

Gonic0 commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review of df90b615f1. One finding holds and is fixed in 43f3b410b6; I checked the others against the source and they do not hold.

Fixed

  • SpirvModuleSetup.cpp:361: the unused mesh reference is gone; the block only allocates the mesh guest function.

Not changed

  • Entry-point interface at SPIR-V 1.4 (SpirvModuleEmitter.cpp:1330-1337, SpirvEmitter.cpp:353): SpirvModule::EmitEntryPoint (SpirvModule.cpp:58-73) adds every OpVariable of the module to the interface when the module version is 1.4 or later, so the Private and Workgroup arrays of the compute mode are listed. MeshArray defines them through DefineGlobalVariable and DefineInitializedGlobalVariable, which write to the scanned declarations section. agc_mesh_cull_store_tests compiles a mesh program as compute with a 1.4 target and passes the SPIRV-Tools validation with ANYPS5_ENABLE_SPIRV_TOOLS=ON.
  • SPIR-V 1.5 or 1.6 (SpirvEmitter.cpp:82 and 263, SpirvModule.cpp:144, SpirvOptimizer.cpp:160): unchanged from the earlier reply. VulkanDevice::buildTarget targets Vulkan 1.1 with SPIR-V 1.3, or 1.4 on a mesh device.
  • Indirect draws with several records (Draw.cpp:2836): unchanged from the earlier replies. ClassifyIndirectDraw sends a mesh draw to the GPU path only with one record and no count buffer (meshGpuSide, IndirectDraw.cpp:36). Every other mesh draw takes the CPU path, which reads the records and draws them one at a time; the grouping of uniform records excludes mesh draws (Driver/Draw/Draw.cpp:1250).
  • Recorder.cpp:2116: unchanged from the earlier reply.

Tested (macOS, Rosetta x86_64 Release)

  • agc_mesh_cull_store_tests and agc_shader_memory_tests pass after the change; the other mesh and SPIR-V emitter tests (ctest -R "mesh|Mesh|spirv_emit" -E agc_driver_) pass.
  • check_conventions.py --base upstream/main passes.

@MarcZX10

Copy link
Copy Markdown
Contributor

Reviewed — changes requested

The compute mesh fallback can execute guest code for padded workgroups and can fail layered draws on devices without the required layer capability. Fix these correctness and availability issues before relying on the path.

What I ran

  • Read the automated review output for head 43f3b41.
  • No tests or builds were run for this review.

Results

Check Result Note
Merge risk Moderate Padded compute groups can execute guest code; layered draws can fail on unsupported devices.
Security architecture Not assessed The review output does not assess security architecture.
Inline findings 3 Two blocking correctness or availability findings and one non-blocking performance finding.

Findings

Blocking

  • core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp:1405: The direct and indirect compute paths can dispatch a padded workgroup when the requested count does not fill the grid. The entry point only checks whether the X workgroup count is zero, so the padded group can run guest shader code and write an output record. Check the flattened group index against the requested group count and skip guest execution and output writes when it is out of range.
  • core/shader/recompiler/SpirvBackend/src/MeshReadbackVertexShader.cpp:43: Layered readback declares ShaderViewportIndexLayerEXT and its extension whenever a mesh record has a layer, even when the device has not enabled the required extension. This can fail shader validation or the draw. Emit only capabilities enabled by the device, using core ShaderLayer when supported or rejecting layered output, and check device support at the readback call site.

Non-blocking

  • core/shader/recompiler/SpirvBackend/src/MeshReadbackVertexShader.cpp:106: Inactive corners still load vertex records, parameters, distances, and, for layered draws, the provoking record before discarding those values. Handle inactive corners first, write the existing fixed outputs, and return; keep the record reads and layer-window check on the active path.

Not verified

  • Whether the reported failures reproduce on affected devices; no tests or builds were run.
  • Whether additional issues exist in the files whose analysis was incomplete.

To get this to a good state

Guard both direct and indirect compute execution against padded group indices, make the readback shader's layer capability match device support and check that support at the call site, then rerun the relevant tests and builds.

…k as debt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gonic0

Gonic0 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review of 43f3b410b6. I checked the three findings against the source. None needs a code change; the layer one is a real limit and is now recorded as debt in cc9b17e22a.

  • Padded workgroups (Draw.cpp:1405): a padded group receives zero vertices and zero primitives. The mesh entry (InstructionTranslator.cpp:359-366) derives both from the group's first vertex against the index count, so a group past the end gets 0 and 0, the same as on the native mesh path, which pads its grid the same way (MeshGridFor). EmitMeshBufferOutputs writes vertex records only for index < vertices, and writes the primitive slots of a group with no vertices as MeshInactiveCorner. recordMeshCompute sizes the output for the whole dispatched grid (columns × instances × layers), which is the NumWorkgroups the shader indexes with, so those slots are in bounds and the readback clips them.
  • Layer capability of the readback (MeshReadbackVertexShader.cpp:43): the readback does not reach the driver on a device without VK_EXT_shader_viewport_index_layer. MeshComputeStages returns the compute, readback and fragment stages, and ValidateShaders inspects that set (ShaderValidation.cpp:707). Inspect requires viewportIndexLayer for ShaderViewportIndexLayerEXT (ShaderValidation.cpp:233), so such a draw is refused with that message before pipeline creation. A layered draw through the compute fallback therefore needs the extension. The readback targets Vulkan 1.1, so it cannot use the core ShaderLayer capability of Vulkan 1.2. The debt fragment now records this.
  • Loads for inactive corners (MeshReadbackVertexShader.cpp:106): an inactive corner reads record 0, which always exists, and the OpSelect discards the values. An early return would make the corners of one wave diverge, and I have no measurement showing that these loads cost anything, so I left it as is.

check_conventions.py --base upstream/main passes.

@MarcZX10

MarcZX10 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Reviewed — changes requested

The mesh-compute fallback can corrupt tessellation capture counters and capacity, which can lose captured geometry or write records at the wrong index. Fix that data integrity issue before merging.

What I ran

  • Read the automated review output for head cc9b17e.
  • No tests or builds were run for this review.

Results

Check Result Note
Merge risk Moderate Mesh compute can overwrite tessellation capture metadata.
Security architecture No findings No security issue was reported.
Inline findings 5 One blocking data integrity issue and four non-blocking issues.

Findings

Blocking

  • core/shader/recompiler/Recompiler.hpp:475: Mesh-compute output addresses are stored in dword 5 of the tessellation capture header, which is also used for the capture counter; dword 6 holds capacity. This can corrupt capture metadata and cause records to be dropped or written at the wrong index. Store the address separately or at a safe offset, and update the mesh emitter and readback shader to read it from there.

Non-blocking

  • core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp:5752: Releasing a batch frees chained command buffers without adding them to commandBuffersFreed, so profiling reports too few frees. Count the chain before clearing it while retaining the active buffer count.
  • core/libs/prx/libSceAgcDriver/tests/execution/LayeredVolumeDraw.cpp:495: The mesh execution case can pass without exercising layer windowing when mesh draws run as compute. Skip this case in that mode.
  • docs/dev/debt/changes/agc-mesh-fallback-compute.md:9: Document that compute-fallback mesh indirect draws throw when the record list contains more than one entry because recordMeshArguments requires one record; the native mesh path has no such limit.
  • core/libs/prx/libSceAgcDriver/tests/Mesh.cpp:1: The indirect indexed triangle-list test does not distinguish the sixth instance, so it can pass if that instance is not dispatched. Give that instance distinguishable output and assert it is present.

Not verified

  • The review output reports that static analysis did not complete for ShaderMemory.cpp and Graphics.cpp.
  • Findings were not independently checked against the source.

To get this to a good state

Move the mesh-compute output address out of the tessellation capture counter and capacity fields, then update all readers. Address the profiling count, layer-window test guard, indirect draw debt entry, and sixth-instance assertion, then run the relevant checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gonic0

Gonic0 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review of cc9b17e22a. One finding holds and is fixed in 405ae0a6e9; I checked the others against the source.

Fixed

  • Recorder.cpp:5752: the release now adds the chained command buffers to commandBuffersFreed under APS5_PROFILE_DRAW. The chain holds the earlier pass buffers and the prologues, never batch.commands, so nothing is counted twice.

Not changed

  • Output address in the tessellation capture header (Recompiler.hpp:475): a mesh draw never runs as compute with a tessellation capture. MeshComputeStages refuses that combination (Draw.cpp:1413), and recordMeshCompute writes the output address into the draw's own mesh argument buffer (Draw.cpp:3169), not into a capture header.
  • LayeredVolumeDraw.cpp:495: that branch checks a plain mesh draw run as compute and is labelled that way. The layer-window cases stay on the native mesh branch above it, so a compute run makes no claim about layer windows.
  • Indirect draws with several records in the debt fragment: not a limit of the compute path. ClassifyIndirectDraw takes the GPU path for a mesh draw only with one record and no count buffer (meshGpuSide, IndirectDraw.cpp:36). Every other mesh draw takes the CPU path, which draws its records one at a time, on both the native and the compute path.
  • Mesh.cpp, six instances: the check covers what the compute path adds for instances, an output sized for groups × instances and a grid whose Y dimension is the instance count. The test shader does not read the instance index, so the instances draw the same triangles and a missing instance would not show. A shader that writes a different value per instance would cover it; I left that out of this PR.

Tested (macOS, Rosetta x86_64 Release)

  • agc_driver_recorder_tests passes with the change.
  • check_conventions.py --base upstream/main passes.

@MarcZX10

MarcZX10 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Reviewed — changes requested

The review found a correctness issue: the mesh-compute dispatch can be recorded inside an open render pass. It also found a performance issue that causes repeated render-pass breaks.

What I ran

  • Read the automated review output for head 405ae0a.
  • No tests or builds were run for this review.

Results

Check Result Note
Merge risk High A mesh-compute dispatch can be recorded inside a render pass, which is invalid.
Security architecture No findings No security issue was reported.
Inline findings 2 One blocking correctness finding and one non-blocking performance finding.

Findings

Blocking

  • core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp:3446: Do not change this condition to test prologue. With that change, StartDrawPass continues the pass and returns open->commands, which is still inside the render pass. The caller then records the mesh-compute dispatch into that buffer when start.prologue is null (core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp:3446-3458). A dispatch inside a render pass is invalid.

Non-blocking

  • core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp:2116: When sample counting is enabled outside segment mode, prologue creation is disabled but needsPrologue remains true. This closes and reopens the render pass for each draw, reducing performance. Define pass continuation for this case while ensuring mesh compute dispatches remain outside the render pass.

Not verified

  • Cppcheck analysis of core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp and core/libs/prx/libSceAgcDriver/tests/Graphics.cpp was incomplete.
  • Tests and builds were not run.

To get this to a good state

Keep mesh-compute dispatches outside the render pass while changing pass continuation so prologue-disabled draws do not repeatedly break an open render pass. Then run the relevant checks.

@Gonic0

Gonic0 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review of 405ae0a6e9. I checked both findings against StartDrawPass; neither needs a code change.

  • Draw.cpp:3446, dispatch inside a render pass: StartDrawPass returns open->commands with the pass still open only on the continued path (Recorder.cpp:2129-2132). A prologue draw reaches that path only when needsPrologue is false, and for such a draw needsPrologue is pass.open && open->prologue == VK_NULL_HANDLE (Recorder.cpp:2116). So a continued prologue draw always gets a non-null start.prologue, and the dispatch goes into the prologue buffer, outside the pass. Every other return ends the open pass first, through Commands() (Recorder.cpp:2100) or endOpenRenderPass (Recorder.cpp:2137). When start.prologue is null, commands is therefore outside any render pass, and the condition at Draw.cpp:3446 is prologueDraw, unchanged.
  • Recorder.cpp:2116, sample counting outside segment mode: unchanged from the earlier reply. Each such draw breaks the pass, as the non-prologue path does, so this case gains nothing from the PR but stays correct. The batch is not split there because a query must begin and end in the same command buffer.

@ligmaSec ligmaSec left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified that the exact current #17611 head is an ancestor of this revision and that this branch trial-merges cleanly onto c1601e56d5. Keep the test that forces an attachment hazard between compute-backed mesh draws alongside the one that shares a render pass. It checks that an optimization for independent draws still closes the pass when a dependency requires it. This stack also inherits #17611’s request-format version collision, so the recorded traces and replay tests should identify the merged serializer revision. Paired lavapipe execution is pending.

AI-assisted: yes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build docs needs rebase Conflicts with main, rebase needed perf numbers missing perf pull request without a before and after summary line perf Performance change shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants