feat(agc): draw point-list output of NGG geometry programs as mesh points #8856

Merged
klosixgaming-arch merged 1 commit from upstream-pr/8856 into main 2026-10-21 12:46:18 +00:00
klosixgaming-arch commented 2026-10-21 03:27:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-21T03:27:01Z.


What

Support point-list geometry programs (VGT_GS_OUT_PRIM_TYPE = 0) on the NGG mesh shader translation path.

  • When VGT_GS_OUT_PRIM_TYPE is 0 and !vertexWorkgroup, decode outputPrimitiveSize = 1, provokingVertex = 0, and RasterPrimitive::Point.
  • Declare OutputPoints in SPIR-V with scalar PrimitivePointIndicesEXT output array.
  • In EmitMeshEntryPoint, unpack the 9-bit vertex index from bits [8:0] of the packed primitive export word and store directly into PrimitivePointIndicesEXT.
  • Permit outputPrimitiveSize == 1 in validation and input info builder.
  • Add unit tests in Graphics.cpp and VertexInputValidation.cpp.
  • Record unmodelled behaviors in technical debt (docs/dev/debt/libSceAgcDriver.md).

Tested

  • Windows 11, WinLibs GCC 15.2.0
  • Unit tests:
    • agc_driver_graphics (100% pass)
    • agc_driver_mesh (100% pass)
    • agc_vertex_input_validation (100% pass)
    • agc_shader_memory (100% pass)
  • tools/check_conventions.py --base origin/main (All conventions checks passed)
  • Boot tested with Cocoon (PPSA08766):
    • Previously crashed on boot during presentation / frame draw with:
      [gpu] driver failure: AGC graphics: VGT_SHADER_STAGES_EN=0x2030: VGT_GS_OUT_PRIM_TYPE other than a triangle strip, or a line strip from a geometry program, is unsupported
    • With this change, pipeline creation succeeds, shaders compile to disk cache, and the title draws frames and runs past the crash into gameplay continuously.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: RTX 5090 (NVIDIA 572.70)
  • AI-assisted: yes. Written with AI assistance and reviewed by me.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4945924232 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8856). Originally posted by [klosixgaming-arch](https://github.com/klosixgaming-arch) on 2026-10-21T03:27:01Z. --- ### What Support point-list geometry programs (`VGT_GS_OUT_PRIM_TYPE = 0`) on the NGG mesh shader translation path. - When `VGT_GS_OUT_PRIM_TYPE` is 0 and `!vertexWorkgroup`, decode `outputPrimitiveSize = 1`, `provokingVertex = 0`, and `RasterPrimitive::Point`. - Declare `OutputPoints` in SPIR-V with scalar `PrimitivePointIndicesEXT` output array. - In `EmitMeshEntryPoint`, unpack the 9-bit vertex index from bits [8:0] of the packed primitive export word and store directly into `PrimitivePointIndicesEXT`. - Permit `outputPrimitiveSize == 1` in validation and input info builder. - Add unit tests in `Graphics.cpp` and `VertexInputValidation.cpp`. - Record unmodelled behaviors in technical debt (`docs/dev/debt/libSceAgcDriver.md`). ### Tested - Windows 11, WinLibs GCC 15.2.0 - Unit tests: - `agc_driver_graphics` (100% pass) - `agc_driver_mesh` (100% pass) - `agc_vertex_input_validation` (100% pass) - `agc_shader_memory` (100% pass) - `tools/check_conventions.py --base origin/main` (All conventions checks passed) - Boot tested with Cocoon (PPSA08766): - Previously crashed on boot during presentation / frame draw with: `[gpu] driver failure: AGC graphics: VGT_SHADER_STAGES_EN=0x2030: VGT_GS_OUT_PRIM_TYPE other than a triangle strip, or a line strip from a geometry program, is unsupported` - With this change, pipeline creation succeeds, shaders compile to disk cache, and the title draws frames and runs past the crash into gameplay continuously. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: RTX 5090 (NVIDIA 572.70) - [x] AI-assisted: yes. Written with AI assistance and reviewed by me.
github-actions[bot] commented 2026-10-21 03:35:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T03:35:17Z.


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 6612 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp L1094-1097
PR 6801 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp L140, L143, L461, L516
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp L1094-1095, L1108, L1340, L1625
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp L1072-1073, L1078, L1080, L1234
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp L1026, L1030, L1149-1152
core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp L73
docs/dev/debt/libSceAgcDriver.md L30
PR 8395 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp L1094-1097
docs/dev/debt/libSceAgcDriver.md L29-30
PR 8424 docs/dev/debt/libSceAgcDriver.md L30-31

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1191 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 4040 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
PR 4448 docs/dev/debt/libSceAgcDriver.md
PR 4449 docs/dev/debt/libSceAgcDriver.md
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5372 docs/dev/debt/libSceAgcDriver.md
PR 5441 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5499 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5925 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6146 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
PR 6194 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6235 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp
PR 6280 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6290 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6548 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6604 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 6808 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 docs/dev/debt/libSceAgcDriver.md
PR 6887 docs/dev/debt/libSceAgcDriver.md
PR 6946 docs/dev/debt/libSceAgcDriver.md
PR 6947 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6965 docs/dev/debt/libSceAgcDriver.md
PR 6973 docs/dev/debt/libSceAgcDriver.md
PR 6977 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6987 docs/dev/debt/libSceAgcDriver.md
PR 6989 docs/dev/debt/libSceAgcDriver.md
PR 6995 docs/dev/debt/libSceAgcDriver.md
PR 7002 docs/dev/debt/libSceAgcDriver.md
PR 7201 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7505 docs/dev/debt/libSceAgcDriver.md
PR 7604 docs/dev/debt/libSceAgcDriver.md
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7800 docs/dev/debt/libSceAgcDriver.md
PR 7803 docs/dev/debt/libSceAgcDriver.md
PR 7883 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7893 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7910 docs/dev/debt/libSceAgcDriver.md
PR 8014 docs/dev/debt/libSceAgcDriver.md
PR 8105 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 8212 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 8538 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 8564 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 8592 docs/dev/debt/libSceAgcDriver.md
PR 9020 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9077 docs/dev/debt/libSceAgcDriver.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6307392222 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8856#issuecomment-6307392222). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T03:35:17Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` [L1094-1097](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L1094-L1097) | | | | [PR 6801](https://www.github.com/boykopovar/AnyPS5/pull/6801) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp` [L140](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp#L140), [L143](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp#L143), [L461](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp#L461), [L516](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp#L516)<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` [L1094-1095](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L1094-L1095), [L1108](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L1108), [L1340](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L1340), [L1625](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L1625)<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` [L1072-1073](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp#L1072-L1073), [L1078](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp#L1078), [L1080](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp#L1080), [L1234](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp#L1234)<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` [L1026](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp#L1026), [L1030](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp#L1030), [L1149-1152](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp#L1149-L1152)<br>`core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp` [L73](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp#L73)<br>`docs/dev/debt/libSceAgcDriver.md` [L30](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/docs/dev/debt/libSceAgcDriver.md#L30) | | | | [PR 8395](https://www.github.com/boykopovar/AnyPS5/pull/8395) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` [L1094-1097](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L1094-L1097)<br>`docs/dev/debt/libSceAgcDriver.md` [L29-30](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/docs/dev/debt/libSceAgcDriver.md#L29-L30) | | | | [PR 8424](https://www.github.com/boykopovar/AnyPS5/pull/8424) | `docs/dev/debt/libSceAgcDriver.md` [L30-31](https://github.com/boykopovar/AnyPS5/blob/2f161d4f33f82bca2cc113cbd9432adf1dc0ec1e/docs/dev/debt/libSceAgcDriver.md#L30-L31) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1191](https://www.github.com/boykopovar/AnyPS5/pull/1191) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4449](https://www.github.com/boykopovar/AnyPS5/pull/4449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5372](https://www.github.com/boykopovar/AnyPS5/pull/5372) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6290](https://www.github.com/boykopovar/AnyPS5/pull/6290) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6549](https://www.github.com/boykopovar/AnyPS5/pull/6549) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6604](https://www.github.com/boykopovar/AnyPS5/pull/6604) | `core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6867](https://www.github.com/boykopovar/AnyPS5/pull/6867) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6887](https://www.github.com/boykopovar/AnyPS5/pull/6887) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6965](https://www.github.com/boykopovar/AnyPS5/pull/6965) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6973](https://www.github.com/boykopovar/AnyPS5/pull/6973) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6987](https://www.github.com/boykopovar/AnyPS5/pull/6987) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6989](https://www.github.com/boykopovar/AnyPS5/pull/6989) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6995](https://www.github.com/boykopovar/AnyPS5/pull/6995) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7803](https://www.github.com/boykopovar/AnyPS5/pull/7803) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7883](https://www.github.com/boykopovar/AnyPS5/pull/7883) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7893](https://www.github.com/boykopovar/AnyPS5/pull/7893) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7910](https://www.github.com/boykopovar/AnyPS5/pull/7910) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8105](https://www.github.com/boykopovar/AnyPS5/pull/8105) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 8212](https://www.github.com/boykopovar/AnyPS5/pull/8212) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 8538](https://www.github.com/boykopovar/AnyPS5/pull/8538) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 8564](https://www.github.com/boykopovar/AnyPS5/pull/8564) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 8592](https://www.github.com/boykopovar/AnyPS5/pull/8592) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 9020](https://www.github.com/boykopovar/AnyPS5/pull/9020) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 9077](https://www.github.com/boykopovar/AnyPS5/pull/9077) | `docs/dev/debt/libSceAgcDriver.md` |
JJenkx commented 2026-10-21 04:33:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T04:33:33Z.


There is functional overlap with our earlier #6801, beyond the shared debt lines: both decode NGG geometry point output, emit OutputPoints/PrimitivePointIndicesEXT, and accept primitive size 1. I checked this PR at ee81c5112d against #6801 at c479ec2e3a5b0ce764dfac15647462a369bba3af.

#6801 additionally carries register/exported point sizing via #6639 and records its paired validation evidence in the description. It has not been rerun on your Windows/NVIDIA setup, and your Cocoon result is useful independent evidence.

Could we agree on which point-output implementation lands first, then rebase the other down to any remaining behavior? Our current branch depends on #6639; neither branch currently depends on the other, so I have not added a fictitious dependency. If this smaller implementation lands first, I will remove the duplicate point-output portions from #6801 and retain only any remaining point-size integration/tests. If #6801 lands first, this PR will need the corresponding reduction. Please keep the different Cocoon source pins/results explicit; our earlier title test stopped later at combined tessellation/geometry and did not establish gameplay.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6308116284 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8856#issuecomment-6308116284). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-21T04:33:33Z. --- There is functional overlap with our earlier #6801, beyond the shared debt lines: both decode NGG geometry point output, emit OutputPoints/PrimitivePointIndicesEXT, and accept primitive size 1. I checked this PR at ee81c5112deb1c7f61f538e29c7d60b310fdb9d7 against #6801 at c479ec2e3a5b0ce764dfac15647462a369bba3af. #6801 additionally carries register/exported point sizing via #6639 and records its paired validation evidence in the description. It has not been rerun on your Windows/NVIDIA setup, and your Cocoon result is useful independent evidence. Could we agree on which point-output implementation lands first, then rebase the other down to any remaining behavior? Our current branch depends on #6639; neither branch currently depends on the other, so I have not added a fictitious dependency. If this smaller implementation lands first, I will remove the duplicate point-output portions from #6801 and retain only any remaining point-size integration/tests. If #6801 lands first, this PR will need the corresponding reduction. Please keep the different Cocoon source pins/results explicit; our earlier title test stopped later at combined tessellation/geometry and did not establish gameplay.
klosixgaming-arch commented 2026-10-21 04:53:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-21T04:53:37Z.


@JJenkx thanks for checking, and sorry for missing #6801 before opening this. #6801 came first and covers more (point size through #6639), so I'm happy for it to land first. I'll run Cocoon (PPSA08766) on #6801's head on Windows / RTX 5090 and post the result there; if it gets past the same VGT_GS_OUT_PRIM_TYPE stop, I'll close this PR.

A correction to the description here: the GPU driver is NVIDIA 617.42, not 572.70.

AI-assisted: yes. Written with AI assistance and reviewed by me.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6308362743 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8856#issuecomment-6308362743). Originally posted by [klosixgaming-arch](https://github.com/klosixgaming-arch) on 2026-10-21T04:53:37Z. --- @JJenkx thanks for checking, and sorry for missing #6801 before opening this. #6801 came first and covers more (point size through #6639), so I'm happy for it to land first. I'll run Cocoon (PPSA08766) on #6801's head on Windows / RTX 5090 and post the result there; if it gets past the same `VGT_GS_OUT_PRIM_TYPE` stop, I'll close this PR. A correction to the description here: the GPU driver is NVIDIA 617.42, not 572.70. AI-assisted: yes. Written with AI assistance and reviewed by me.
oneandonlydean commented 2026-10-21 08:35:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T08:35:16Z.


@klosixgaming-arch thanks, the decode and the OutputPoints emission read right, and the vertex-workgroup case still throws. Two small things about point size, neither blocking:

  1. The mesh path never writes PointSize. Vulkan leaves the size of an unwritten point undefined unless maintenance5 is enabled, and the device only queries its properties. The hardware takes the size from the vertex export or from PA_SU_POINT_SIZE (0x280). The vertex-program point path on main has the same gap, so this isn't a regression, but could the debt entry name it?
  2. If a point-list geometry program exports point size, SpirvModuleEmitter.cpp stores it into the non-arrayed pointSizeVariable, which a mesh shader can't use. A test showing that this case throws (or a per-vertex PointSize output) would pin it.

One line in NggVertexWorkgroupTests is indented one level too deep.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6311692991 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8856#issuecomment-6311692991). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-21T08:35:16Z. --- @klosixgaming-arch thanks, the decode and the `OutputPoints` emission read right, and the vertex-workgroup case still throws. Two small things about point size, neither blocking: 1. The mesh path never writes `PointSize`. Vulkan leaves the size of an unwritten point undefined unless `maintenance5` is enabled, and the device only queries its properties. The hardware takes the size from the vertex export or from `PA_SU_POINT_SIZE` (0x280). The vertex-program point path on `main` has the same gap, so this isn't a regression, but could the debt entry name it? 2. If a point-list geometry program exports point size, `SpirvModuleEmitter.cpp` stores it into the non-arrayed `pointSizeVariable`, which a mesh shader can't use. A test showing that this case throws (or a per-vertex `PointSize` output) would pin it. One line in `NggVertexWorkgroupTests` is indented one level too deep.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!8856
No description provided.