feat(agc): replace point sprite inputs with the point coordinate #19821

Open
c1b3r-p3d1a wants to merge 10 commits from upstream-pr/19821 into main
c1b3r-p3d1a commented 2026-11-14 00:28:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by c1b3r-p3d1a on 2026-11-14T00:28:31Z.


What

A point draw whose pixel input sets SPI_PS_INPUT_CNTL.PT_SPRITE_TEX while SPI_INTERP_CONTROL_0.PNT_SPRITE_ENA is on stopped with point sprite texture coordinates (SPI_PS_INPUT_CNTL PT_SPRITE_TEX) are not implemented. Such an input now reads the point coordinate instead of the interpolated attribute.

  • Driver: decodePointSize (State.cpp) keeps SPI_INTERP_CONTROL_0 bits 1-14 (PNT_SPRITE_ENA, PNT_SPRITE_OVRD_X/Y/Z/W, PNT_SPRITE_TOP_1) in State::pointSpriteControl when an input has PT_SPRITE_TEX. DrawDecode copies the value into ShaderPixelStageInfo::pointSpriteControl, and the draw cache key and lookup include it.
  • Recompiler: each component of such an input follows its override select. SEL_S and SEL_T come from Vulkan's PointCoord, with T flipped to 1 - T under PNT_SPRITE_TOP_1. SEL_0 and SEL_1 give 0.0 and 1.0, and SEL_NONE keeps the interpolated attribute. The input is declared only when an S or T select is read. This works on both paths: host interpolation, and explicit P0/P10/P20, where P0 is the coordinate and P10/P20 are 0, so v_interp_p1/p2 gives the coordinate at every pixel. ShaderValidation accepts a PointCoord fragment input (f32x2).
  • Cache and serialization: the field is in the shader cache key. It is serialized as a u32 at the end of the request (version 65, after main's version 64 split state; 0 without pixel info), and older requests decode it as 0.

The register fields and their values are taken from Mesa's gfx10 register database and radeonsi, which programs them for GL point sprites. They are not measured on a console; the debt entry says so. Still throwing:

  • PT_SPRITE_TEX_ATTR1 (the second half of a 16-bit input);
  • 16-bit sprite inputs;
  • flat, passthrough or default-value sprite inputs;
  • the reserved selects 5-7.

Tested

Windows 11, AMD Radeon RX 7700 XT (driver 32.0.32015.7029), WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh r7), Release, on main 9dd31cc1f5 (head d71f2a6b31).

  • New agc_driver_point_sprite_coordinates: draws a 16-pixel point and checks every pixel of the 64x64 float target. It covers three cases (S, T, 0, 1; T, S, attribute, 0 with PNT_SPRITE_TOP_1; point sprites off), in wave32 and wave64, through both the barycentric and the host-interpolation path: 12 runs, 256 point pixels each, nothing written outside the point.

  • Mutations: the test catches four planted bugs: no TOP_1 flip, S and T swapped, SEL_1 giving 0, and keeping the FLAT_SHADE_ENA bit. Keeping the control word without a sprite input is caught by agc_driver_graphics. A nonzero P10/P20 survives: a point's barycentrics are (1, 0, 0), so P10/P20 are never weighted.

  • Updated tests: agc_driver_graphics now checks the decoded control word, the PT_SPRITE_TEX_ATTR1 throw, and that nothing is kept with PNT_SPRITE_ENA clear. request_serializer round-trips the field and checks that version 57 decodes it as 0. The version-62 fixtures in RequestSerializerTests.cpp and ShaderMemory.cpp move to 63.

  • Validation layer: ctest -R 'point|interpolation|barycentric|provoking|^agc_driver_graphics$|pixel_|serializ|draw_cache' -V with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (1.4.368), VK_LOADER_DEBUG=layer, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1. main passes 77 of 77 and this branch 78 of 78 (80 of 80 with agc_shader_memory and request_serializer after the rebase). The loader inserts the layer in both, with no was not found line and 0 VUID- lines.

  • Broad run: ctest -R '^(agc_|shader|vector_|request_)' -j 4 passes 1,665 of 1,678. Eleven failures also fail on main on this GPU: the f16 and ldexp_f16 checks, vop2_modifier_forms, both gcn_display_present tests and sample_order_grid_reference. agc_driver_unregistered_label_on_gpu is the known race; agc_driver_draw_shader_failure failed once under -j 4 and passes 3 of 3 on its own.

  • After merging main 0694c4cbd6 (head 9d63593330): request_serializer, agc_driver_graphics and agc_driver_point_sprite_coordinates pass on Windows; agc_shader_memory, agc_shader_memory_coherent_atomic_loads and request_serializer pass on WSL Ubuntu 24.04 (GCC 13.3), because Windows Defender quarantines the freshly linked agc_shader_memory_tests.exe on this machine. A planted bug reading the point sprite control from version 62 fails request_serializer.

  • Conventions: python tools/check_conventions.py --base origin/main passes.

  • Staged copies: a rebuilt libSceAgcDriver.prx is not copied over the copies staged in build/tests on Windows (#17895), so I copied it before each run.

  • Not run: Linux, other vendors, and a title with point sprites.

  • 6000988dc4: main's new verifyEmulatedBarycentricRequests built its version 62 fixture from version 64 bytes, which still held the 4-byte point sprite word, so agc_shader_memory failed with "unexpected trailing data" on the Windows CI run. The fixture now drops that word. agc_shader_memory, agc_shader_memory_coherent_atomic_loads, request_serializer and agc_driver_point_sprite_coordinates pass on WSL Ubuntu 24.04 (GCC 13.3); on Windows this PC's antivirus quarantines agc_shader_memory_tests.exe, so CI's Windows job is the Windows check for it.

  • 6b366e65d9: merged main 959d9cbb99. Main's #14561 took serialization version 63, so its new single-sample dither test and the version-62 fixture now drop the 4-byte point sprite word before relabelling, and version 64 is no longer an invalid version there. request_serializer, agc_driver_point_sprite_coordinates and the 56 agc_driver_graphics tests pass on Windows 11; the 53 agc_shader_* tests pass on WSL Ubuntu 24.04. Conventions pass.

  • 93533dd908: merged main 6f6f6c8e6b. Main took serialization version 64 for the split state, so the point sprite word moved to version 65, after it. The tests turn version 65 bytes into 64 by dropping that word (it must be 0) before main's own version 64 -> 63 step, and 66 is now the first invalid version. request_serializer, agc_driver_point_sprite_coordinates, the agc_driver_graphics tests and the agc_shader_* tests (74 in all) pass on Windows 11. Conventions pass.

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: AMD Radeon RX 7700 XT, AMD driver 32.0.32015.7029, Windows 11
  • AI-assisted: yes

Note: main now writes version 64 (split state) and rejects 58-61; this PR writes 65, as does #20010 (mine). #14561, #15343 and #9508 also change the request serialization, and #14561 edits the same DrawRegisterKey comparison line. Whichever lands second renumbers its version; I will do that here if this one is second. Merge previews are clean with the other 179 open PRs that touch these files and merge cleanly with main.

Summary by CodeRabbit

  • New Features
    • Point-sprite coordinates are now supported for point draws, including configurable coordinate component selection and top-origin flipping.
  • Bug Fixes
    • Point-sprite control settings are now retained consistently when processing and caching draw states.
  • Documentation
    • Updated support information for point-sprite coordinates, including input cases that remain unsupported.
  • Tests
    • Added coverage for point-sprite rendering across supported control configurations and execution modes.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5305080718 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19821). Originally posted by [c1b3r-p3d1a](https://github.com/c1b3r-p3d1a) on 2026-11-14T00:28:31Z. --- ### What A point draw whose pixel input sets `SPI_PS_INPUT_CNTL.PT_SPRITE_TEX` while `SPI_INTERP_CONTROL_0.PNT_SPRITE_ENA` is on stopped with `point sprite texture coordinates (SPI_PS_INPUT_CNTL PT_SPRITE_TEX) are not implemented`. Such an input now reads the point coordinate instead of the interpolated attribute. - **Driver:** `decodePointSize` (`State.cpp`) keeps `SPI_INTERP_CONTROL_0` bits 1-14 (`PNT_SPRITE_ENA`, `PNT_SPRITE_OVRD_X/Y/Z/W`, `PNT_SPRITE_TOP_1`) in `State::pointSpriteControl` when an input has `PT_SPRITE_TEX`. `DrawDecode` copies the value into `ShaderPixelStageInfo::pointSpriteControl`, and the draw cache key and lookup include it. - **Recompiler:** each component of such an input follows its override select. `SEL_S` and `SEL_T` come from Vulkan's `PointCoord`, with T flipped to `1 - T` under `PNT_SPRITE_TOP_1`. `SEL_0` and `SEL_1` give 0.0 and 1.0, and `SEL_NONE` keeps the interpolated attribute. The input is declared only when an S or T select is read. This works on both paths: host interpolation, and explicit P0/P10/P20, where P0 is the coordinate and P10/P20 are 0, so `v_interp_p1/p2` gives the coordinate at every pixel. `ShaderValidation` accepts a `PointCoord` fragment input (`f32x2`). - **Cache and serialization:** the field is in the shader cache key. It is serialized as a `u32` at the end of the request (version 65, after main's version 64 split state; 0 without pixel info), and older requests decode it as 0. The register fields and their values are taken from Mesa's [gfx10 register database](https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-24.0.0/src/amd/registers/gfx10.json) and [radeonsi](https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-24.0.0/src/gallium/drivers/radeonsi/si_state_shaders.cpp), which programs them for GL point sprites. They are not measured on a console; the debt entry says so. Still throwing: - `PT_SPRITE_TEX_ATTR1` (the second half of a 16-bit input); - 16-bit sprite inputs; - flat, passthrough or default-value sprite inputs; - the reserved selects 5-7. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows 11, AMD Radeon RX 7700 XT (driver 32.0.32015.7029), WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh r7), Release, on `main` `9dd31cc1f5` (head `d71f2a6b31`). - **New `agc_driver_point_sprite_coordinates`:** draws a 16-pixel point and checks every pixel of the 64x64 float target. It covers three cases (S, T, 0, 1; T, S, attribute, 0 with `PNT_SPRITE_TOP_1`; point sprites off), in wave32 and wave64, through both the barycentric and the host-interpolation path: 12 runs, 256 point pixels each, nothing written outside the point. - **Mutations:** the test catches four planted bugs: no `TOP_1` flip, S and T swapped, `SEL_1` giving 0, and keeping the `FLAT_SHADE_ENA` bit. Keeping the control word without a sprite input is caught by `agc_driver_graphics`. A nonzero P10/P20 survives: a point's barycentrics are (1, 0, 0), so P10/P20 are never weighted. - **Updated tests:** `agc_driver_graphics` now checks the decoded control word, the `PT_SPRITE_TEX_ATTR1` throw, and that nothing is kept with `PNT_SPRITE_ENA` clear. `request_serializer` round-trips the field and checks that version 57 decodes it as 0. The version-62 fixtures in `RequestSerializerTests.cpp` and `ShaderMemory.cpp` move to 63. - **Validation layer:** `ctest -R 'point|interpolation|barycentric|provoking|^agc_driver_graphics$|pixel_|serializ|draw_cache' -V` with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (1.4.368), `VK_LOADER_DEBUG=layer`, `ANYPS5_NO_SHADER_CACHE=1` and `ANYPS5_REQUIRE_VULKAN=1`. `main` passes 77 of 77 and this branch 78 of 78 (80 of 80 with `agc_shader_memory` and `request_serializer` after the rebase). The loader inserts the layer in both, with no `was not found` line and 0 `VUID-` lines. - **Broad run:** `ctest -R '^(agc_|shader|vector_|request_)' -j 4` passes 1,665 of 1,678. Eleven failures also fail on `main` on this GPU: the f16 and ldexp_f16 checks, `vop2_modifier_forms`, both `gcn_display_present` tests and `sample_order_grid_reference`. `agc_driver_unregistered_label_on_gpu` is the known race; `agc_driver_draw_shader_failure` failed once under `-j 4` and passes 3 of 3 on its own. - **After merging `main` `0694c4cbd6` (head `9d63593330`):** `request_serializer`, `agc_driver_graphics` and `agc_driver_point_sprite_coordinates` pass on Windows; `agc_shader_memory`, `agc_shader_memory_coherent_atomic_loads` and `request_serializer` pass on WSL Ubuntu 24.04 (GCC 13.3), because Windows Defender quarantines the freshly linked `agc_shader_memory_tests.exe` on this machine. A planted bug reading the point sprite control from version 62 fails `request_serializer`. - **Conventions:** `python tools/check_conventions.py --base origin/main` passes. - **Staged copies:** a rebuilt `libSceAgcDriver.prx` is not copied over the copies staged in `build/tests` on Windows (#17895), so I copied it before each run. - **Not run:** Linux, other vendors, and a title with point sprites. - 6000988dc4: main's new `verifyEmulatedBarycentricRequests` built its version 62 fixture from version 64 bytes, which still held the 4-byte point sprite word, so `agc_shader_memory` failed with "unexpected trailing data" on the Windows CI run. The fixture now drops that word. `agc_shader_memory`, `agc_shader_memory_coherent_atomic_loads`, `request_serializer` and `agc_driver_point_sprite_coordinates` pass on WSL Ubuntu 24.04 (GCC 13.3); on Windows this PC's antivirus quarantines `agc_shader_memory_tests.exe`, so CI's Windows job is the Windows check for it. - 6b366e65d9: merged `main` `959d9cbb99`. Main's #14561 took serialization version 63, so its new single-sample dither test and the version-62 fixture now drop the 4-byte point sprite word before relabelling, and version 64 is no longer an invalid version there. `request_serializer`, `agc_driver_point_sprite_coordinates` and the 56 `agc_driver_graphics` tests pass on Windows 11; the 53 `agc_shader_*` tests pass on WSL Ubuntu 24.04. Conventions pass. - 93533dd908: merged `main` `6f6f6c8e6b`. Main took serialization version 64 for the split state, so the point sprite word moved to version 65, after it. The tests turn version 65 bytes into 64 by dropping that word (it must be 0) before main's own version 64 -> 63 step, and 66 is now the first invalid version. `request_serializer`, `agc_driver_point_sprite_coordinates`, the `agc_driver_graphics` tests and the `agc_shader_*` tests (74 in all) pass on Windows 11. Conventions pass. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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: AMD Radeon RX 7700 XT, AMD driver 32.0.32015.7029, Windows 11 - [x] AI-assisted: yes Note: main now writes version 64 (split state) and rejects 58-61; this PR writes 65, as does #20010 (mine). #14561, #15343 and #9508 also change the request serialization, and #14561 edits the same `DrawRegisterKey` comparison line. Whichever lands second renumbers its version; I will do that here if this one is second. Merge previews are clean with the other 179 open PRs that touch these files and merge cleanly with `main`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Point-sprite coordinates are now supported for point draws, including configurable coordinate component selection and top-origin flipping. * **Bug Fixes** * Point-sprite control settings are now retained consistently when processing and caching draw states. * **Documentation** * Updated support information for point-sprite coordinates, including input cases that remain unsupported. * **Tests** * Added coverage for point-sprite rendering across supported control configurations and execution modes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
MarcZX10 commented 2026-11-16 16:54:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T16:54:26Z.

Review: COMMENTED


Reviewed — comments

The implementation appears consistent in the inspected paths, but I did not complete review of every changed file or run the checks, so a formal approval is not justified.

What I ran

Reviewed head 9d6359333000a3d9f9d57f30fbfe250b272e8696. No commands or tests were run; reported test results in the PR description are author supplied.

Read the description, commit list, manifest, and diff, plus targeted ranges from changed shader and driver files. Graphics.cpp and ShaderMemory.cpp were excluded from the review folder and were not read. I also did not read every line of the other changed files.

Results

Check Result Note
Diff and targeted code review not run Partial review only
Tests not run PR description reports author-run results
Console behavior not run Not verified on console hardware

Findings

Blocking

None identified in the inspected code.

Non-blocking

  • The review is incomplete: two changed test files were excluded from the review folder, and remaining changed files were inspected only in targeted ranges. No independent test run was performed.

Not verified

Graphics.cpp, ShaderMemory.cpp, and uninspected portions of the other changed files. Test results and runtime behavior were not independently verified.

To get this to a good state

Nothing is required. Optional: complete review of the excluded and uninspected changed code and run the relevant tests at this head before treating the review as complete.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5923924816 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19821#pullrequestreview-5923924816). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T16:54:26Z. **Review:** COMMENTED --- # Reviewed — comments The implementation appears consistent in the inspected paths, but I did not complete review of every changed file or run the checks, so a formal approval is not justified. ## What I ran Reviewed head `9d6359333000a3d9f9d57f30fbfe250b272e8696`. No commands or tests were run; reported test results in the PR description are author supplied. Read the description, commit list, manifest, and diff, plus targeted ranges from changed shader and driver files. `Graphics.cpp` and `ShaderMemory.cpp` were excluded from the review folder and were not read. I also did not read every line of the other changed files. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | not run | Partial review only | | Tests | not run | PR description reports author-run results | | Console behavior | not run | Not verified on console hardware | ## Findings ### Blocking None identified in the inspected code. ### Non-blocking - The review is incomplete: two changed test files were excluded from the review folder, and remaining changed files were inspected only in targeted ranges. No independent test run was performed. ## Not verified `Graphics.cpp`, `ShaderMemory.cpp`, and uninspected portions of the other changed files. Test results and runtime behavior were not independently verified. ## To get this to a good state Nothing is required. Optional: complete review of the excluded and uninspected changed code and run the relevant tests at this head before treating the review as complete.
MarcZX10 commented 2026-11-20 13:21:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T13:21:18Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the implementation and targeted tests support merging, with console and other-vendor behavior still unverified.

What I ran

Reviewed head 009a36caae8375f62eb8875d7a3a6a604c5c9087 using repo_read.py through the pinned reader. No tests were run in this review; the test results below are author-reported. The base is main; no merged-preview check was run.

Results

Check Result Note
Source and diff review passed 14 of 16 changed files read
Tests in this review not run Author reports targeted and broad runs
Validation layer not run Author reports no VUID lines

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full text of Graphics.cpp and ShaderMemory.cpp was excluded from the review bundle; I read their relevant changed ranges through the pinned reader. Two other changed files, PointSpriteCoordinates.cpp and ShaderInfoCollector.cpp, were read in full only for the relevant changed ranges; remaining lines were not inspected. The other 12 changed files were reviewed in full or at the relevant changed ranges. I did not run tests or verify the reported Windows results. Linux, other GPU vendors, console behavior, and a title using point sprites remain unverified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5993339850 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19821#pullrequestreview-5993339850). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T13:21:18Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the implementation and targeted tests support merging, with console and other-vendor behavior still unverified. ## What I ran Reviewed head `009a36caae8375f62eb8875d7a3a6a604c5c9087` using `repo_read.py` through the pinned reader. No tests were run in this review; the test results below are author-reported. The base is `main`; no merged-preview check was run. ## Results | Check | Result | Note | |---|---|---| | Source and diff review | passed | 14 of 16 changed files read | | Tests in this review | not run | Author reports targeted and broad runs | | Validation layer | not run | Author reports no VUID lines | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full text of `Graphics.cpp` and `ShaderMemory.cpp` was excluded from the review bundle; I read their relevant changed ranges through the pinned reader. Two other changed files, `PointSpriteCoordinates.cpp` and `ShaderInfoCollector.cpp`, were read in full only for the relevant changed ranges; remaining lines were not inspected. The other 12 changed files were reviewed in full or at the relevant changed ranges. I did not run tests or verify the reported Windows results. Linux, other GPU vendors, console behavior, and a title using point sprites remain unverified. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-20 15:28:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T15:28:49Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the review found no verified defects in the inspected code.

What I ran

Reviewed head 6000988dc4668065e060fa69a56ac64559c5f817 using repo_read.py. I read the prepared description, commits, manifest, and diff, then inspected the changed shader input collection, SPIR-V emission, point size decode, cache key, serializer, and new point sprite execution test. No checks were run in this session.

Results

Check Result Note
Diff and targeted source review passed Main behavior paths inspected
Tests in this session not run Author-reported results only

Findings

Blocking

None.

Non-blocking

None.

Not verified

Full text was available and read for 15 changed files; Graphics.cpp and ShaderMemory.cpp were excluded from the review folder because they were too large, and their relevant changes were inspected in diff.patch only. I did not inspect their full source context or run tests. I also did not independently verify the author-reported test results, target hardware behavior, or compatibility with concurrent serialization changes mentioned in the description.

Files read: DrawDecode.cpp, DrawLookup.cpp, DrawRegisterKey.cpp, State.hpp, ShaderValidation.cpp, State.cpp, PointSpriteCoordinates.cpp, CacheKey.hpp, RequestSerializer.cpp, StageIO.hpp, ShaderStageInputInfo.hpp, ShaderInfoCollector.cpp, Recompiler.hpp, SpirvEmitterHelpers.cpp, SpirvModuleEmitter.cpp, ShaderInputInfoBuilder.cpp, RequestSerializerTests.cpp, and libSceAgcDriver.md. Files excluded from full text: Graphics.cpp, ShaderMemory.cpp.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5995131541 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19821#pullrequestreview-5995131541). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T15:28:49Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the review found no verified defects in the inspected code. ## What I ran Reviewed head `6000988dc4668065e060fa69a56ac64559c5f817` using `repo_read.py`. I read the prepared description, commits, manifest, and diff, then inspected the changed shader input collection, SPIR-V emission, point size decode, cache key, serializer, and new point sprite execution test. No checks were run in this session. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Main behavior paths inspected | | Tests in this session | not run | Author-reported results only | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Full text was available and read for 15 changed files; `Graphics.cpp` and `ShaderMemory.cpp` were excluded from the review folder because they were too large, and their relevant changes were inspected in `diff.patch` only. I did not inspect their full source context or run tests. I also did not independently verify the author-reported test results, target hardware behavior, or compatibility with concurrent serialization changes mentioned in the description. Files read: `DrawDecode.cpp`, `DrawLookup.cpp`, `DrawRegisterKey.cpp`, `State.hpp`, `ShaderValidation.cpp`, `State.cpp`, `PointSpriteCoordinates.cpp`, `CacheKey.hpp`, `RequestSerializer.cpp`, `StageIO.hpp`, `ShaderStageInputInfo.hpp`, `ShaderInfoCollector.cpp`, `Recompiler.hpp`, `SpirvEmitterHelpers.cpp`, `SpirvModuleEmitter.cpp`, `ShaderInputInfoBuilder.cpp`, `RequestSerializerTests.cpp`, and `libSceAgcDriver.md`. Files excluded from full text: `Graphics.cpp`, `ShaderMemory.cpp`. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-21 10:42:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T10:42:35Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the points below are optional.

What I ran

Reviewed head 6b366e65d92496265fa920f07d41dc818148a3c1. No commands or tests were run. Read the prepared description, commits, manifest, and diff, plus relevant source ranges via repo_read.py.

Results

Check Result Note
Diff and change scope passed Prepared patch reviewed
Targeted source review passed Shader, state, cache, serialization
Tests not run Author reports test results

Findings

Blocking

None.

Non-blocking

None.

Not verified

Full text was not available in the review folder for core/libs/prx/libSceAgcDriver/tests/Graphics.cpp and core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp; targeted changed ranges were read through repo_read.py. The full text of the former is 16,153 lines and the latter is 13,860 lines. The new PointSpriteCoordinates.cpp and the other changed files marked included in the manifest were read. No tests were run; platform and console behavior were not independently confirmed. Author-reported runs are recorded in the PR description.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004710971 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19821#pullrequestreview-6004710971). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T10:42:35Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the points below are optional. ## What I ran Reviewed head `6b366e65d92496265fa920f07d41dc818148a3c1`. No commands or tests were run. Read the prepared description, commits, manifest, and diff, plus relevant source ranges via `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Diff and change scope | passed | Prepared patch reviewed | | Targeted source review | passed | Shader, state, cache, serialization | | Tests | not run | Author reports test results | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Full text was not available in the review folder for `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` and `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`; targeted changed ranges were read through `repo_read.py`. The full text of the former is 16,153 lines and the latter is 13,860 lines. The new `PointSpriteCoordinates.cpp` and the other changed files marked included in the manifest were read. No tests were run; platform and console behavior were not independently confirmed. Author-reported runs are recorded in the PR description. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-22 10:29:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T10:29:38Z.

Review: DISMISSED


Reviewed — changes requested

Changes are required before merge: reject point-sprite inputs marked as default before the collector skips them.

What I ran

Reviewed head 6dc1eb823b7b38723923dc1b08dbfe288e26c8fd using repo_read.py to read the prepared diff and targeted code. No tests were run.

Results

Check Result Note
Changed-code review failed One concrete behavior defect
Tests not run Author-reported results were not rerun

Findings

Blocking

  • core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp:350: the default-input check is unreachable for a default sprite input. The earlier loop skips such inputs at line 336, and the sprite validation loop then skips them because read[input] is false. EmitAttributeValue checks PixelParameterIsDefault before point-sprite handling, so the input silently uses the default value instead of throwing as the description and debt note say unsupported inputs should. Reject default point-sprite inputs before the earlier skip, or otherwise ensure the validation runs for them.

Non-blocking

None.

Not verified

Tests were not run. The full changed text for core/libs/prx/libSceAgcDriver/tests/Graphics.cpp and core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was excluded from the review folder; targeted relevant ranges were read through repo_read.py. No other excluded files were listed in the manifest.

To get this to a good state

Reject default point-sprite inputs before they are skipped, then rerun the relevant tests on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6011735634 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19821#pullrequestreview-6011735634). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T10:29:38Z. **Review:** DISMISSED --- # Reviewed — changes requested Changes are required before merge: reject point-sprite inputs marked as default before the collector skips them. ## What I ran Reviewed head `6dc1eb823b7b38723923dc1b08dbfe288e26c8fd` using `repo_read.py` to read the prepared diff and targeted code. No tests were run. ## Results | Check | Result | Note | |---|---|---| | Changed-code review | failed | One concrete behavior defect | | Tests | not run | Author-reported results were not rerun | ## Findings ### Blocking - `core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp:350`: the default-input check is unreachable for a default sprite input. The earlier loop skips such inputs at line 336, and the sprite validation loop then skips them because `read[input]` is false. `EmitAttributeValue` checks `PixelParameterIsDefault` before point-sprite handling, so the input silently uses the default value instead of throwing as the description and debt note say unsupported inputs should. Reject default point-sprite inputs before the earlier skip, or otherwise ensure the validation runs for them. ### Non-blocking None. ## Not verified Tests were not run. The full changed text for `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` and `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was excluded from the review folder; targeted relevant ranges were read through `repo_read.py`. No other excluded files were listed in the manifest. ## To get this to a good state Reject default point-sprite inputs before they are skipped, then rerun the relevant tests on the updated head.
MarcZX10 commented 2026-11-29 16:07:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T16:07:44Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the available evidence supports merging, with the excluded test file limiting verification of some test updates.

What I ran

Reviewed head 93533dd9082b280ccd34b89df60e7b9022e33bba. No commands or tests were run; the change description reports author-run tests.

Results

Check Result Note
Change review passed Inspected implementation and available tests
Tests not run Results in the description are author reported
Changed files not run One changed file was excluded by size

Findings

Blocking

None.

Non-blocking

None.

Not verified

core/libs/prx/libSceAgcDriver/tests/Graphics.cpp and core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp were excluded from files/ because they were too large. I inspected relevant ranges of both through the repository reader, including the graphics test updates, but did not review their full contents. The remaining changed files listed in the manifest were included and their relevant implementation hunks were inspected. Tests and physical-console behavior were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6103674663 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19821#pullrequestreview-6103674663). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-29T16:07:44Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the available evidence supports merging, with the excluded test file limiting verification of some test updates. ## What I ran Reviewed head `93533dd9082b280ccd34b89df60e7b9022e33bba`. No commands or tests were run; the change description reports author-run tests. ## Results | Check | Result | Note | |---|---|---| | Change review | passed | Inspected implementation and available tests | | Tests | not run | Results in the description are author reported | | Changed files | not run | One changed file was excluded by size | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` and `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` were excluded from `files/` because they were too large. I inspected relevant ranges of both through the repository reader, including the graphics test updates, but did not review their full contents. The remaining changed files listed in the manifest were included and their relevant implementation hunks were inspected. Tests and physical-console behavior were not independently verified. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 22:29:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:29:14Z.

Review: COMMENTED


I compiled the exact serializers for this PR and #20010. Both emit version 65 and can read their own pixel captures. This PR rejected the blend-constant capture as truncated, and #20010 rejected the point-sprite capture at the emulated-barycentrics field. This reader also rejected version 65 captures from #23243 and #22251 as truncated. Please assign the point-sprite payload a distinct version or coordinate one version bump for the combined layout.

The trial merge onto c1601e56d5 was clean. Paired point-sprite execution is pending.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6179730146 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19821#pullrequestreview-6179730146). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T22:29:14Z. **Review:** COMMENTED --- I compiled the exact serializers for this PR and #20010. Both emit version 65 and can read their own pixel captures. This PR rejected the blend-constant capture as truncated, and #20010 rejected the point-sprite capture at the emulated-barycentrics field. This reader also rejected version 65 captures from #23243 and #22251 as truncated. Please assign the point-sprite payload a distinct version or coordinate one version bump for the combined layout. The trial merge onto `c1601e56d5` was clean. Paired point-sprite execution is pending. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.

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

git switch 'main'
git merge --no-ff 'upstream-pr/19821'
git switch 'upstream-pr/19821'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/19821'
git switch 'upstream-pr/19821'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/19821'
git switch 'main'
git merge --squash 'upstream-pr/19821'
git switch 'main'
git merge --ff-only 'upstream-pr/19821'
git switch 'main'
git merge 'upstream-pr/19821'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!19821
No description provided.