fix(agc): accept unused geometry output register #2066
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2066"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T06:31:43Z.
What
Treat
VGT_GS_OUT_PRIM_TYPEas optional when the geometry stage is disabled and the primitive type supplies the value. Require the special register when the enabled geometry path actually consumes it. Do not add an empty special-register slot at offset zero to the decoded context state. This follows the next failure reported in #2026 and is a separate stage-state fix from #2063.Tested
main3692f56f09930a08939d5f3896beffb690a282e9; current head89661f8f.libSceAgcDriver,agc_shader_helpers_tests,agc_driver_tests, andagc_driver_prepared_shaders_tests.agc_shader_helpers,agc_driver,agc_driver_prepared_shaders,agc_driver_prepared_shaders_indirect, andagc_driver_prepared_shaders_uncachedpassed (5/5, 4.35 s total).python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/main...HEADpass.bbe1daa2(before rebase): Windows 11 Pro 25H2, RTX 5060 Ti (NVIDIA 617.42), MinGW-w64 GCC 15.2.0, Release, full build pluslibs; cherry-picked ontomaind70b8998.agc_shader_helperspassed and full CTest passed (510/510) (report). This is prior-head Windows evidence; the rebased head still needs the official current-base matrix.Checklist
main; no other open pull request implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebtImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:13:53Z.
Rebased the change onto current upstream
main25f10087, added tests for the disabled-geometry default and the missing hull/geometry-register error cases, and pushed headfdeb1392. The focused Linuxagc_shader_helpersCTest passes (1/1), the affected driver library and test executable build, and conventions/diff checks pass. Fork Build 37903659493 is running on this head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:25:06Z.
Rebased the reviewed diff onto current upstream
main6cc0503dand pushed heada16e44fe. The updated Linux focused build andagc_shader_helpersCTest pass (1/1); conventions and diff checks pass. Fork Build 37904790326 is running on the new head. The PR description records the prior full-build failure from the missing SPIR-V test include path, covered by #2093.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:38:52Z.
Latest fork Build completed with the same baseline failure on Linux and Windows:
agc_shader_fusion_testscannot includespirv/unified1/spirv.hppfromVulkanTestDevice.hpp. The relinker jobs passed. This matches #2093; I recorded the exact result in the PR description and kept this PR's scope separate.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T09:25:25Z.
Rebased to current upstream
maind9484c71; head47a1a186. The three-file diff is unchanged, the focusedagc_shader_helperstest passed on the preceding heada16e44fe, and local conventions/diff checks pass. The earlier full Build failure was the missing SPIRV-Headers include, fixed by #2099 now on this base. Under #2113, could an upstream collaborator start the full Build for PR #2066 on this head?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T11:34:13Z.
Rebased PR #2066 linearly onto current
main(d70b8998). On headbbe1daa2,libSceAgcDriverandagc_shader_helpers_testsbuild, andagc_shader_helperspasses (1/1); conventions and diff checks pass, and GitHub reports it mergeable. No hardware runtime was available. Under #2113, could a collaborator with write access run Actions → Build for this PR so the full Linux, Windows and relinker checks are recorded on the rebased head?Imported from boykopovar/AnyPS5. Originally posted by rmz-24 on 2026-10-09T13:31:01Z.
Windows run: Windows 11 Pro 25H2 (10.0.26200.9457), RTX 5060 Ti (NVIDIA 617.42), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release,
-DANYPS5_ENABLE_SPIRV_TOOLS=ON, full build pluslibs. bbe1daa2 cherry-picked onto currentmaind70b8998(applies cleanly).agc_shader_helperspasses.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T13:32:27Z.
Thanks for the Windows report: it covers the exact PR head
bbe1daa2on currentmain, and the full Windows CTest passes (510/510), includingagc_shader_helpers. That supplies the Windows evidence. The upstream PR still reports only Conventions; under CONTRIBUTING, could an authorized collaborator run the official Build for this head to record Linux and the relinker matrix?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T20:14:44Z.
Rebased PR #2066 onto current upstream
main8b393b6e; pushed head7b90e37d. The complete PR diff remains three files (26 insertions, 7 deletions), with the same three logical commits.On the rebased head, Linux x86_64/GCC 12.2 Release builds passed for
libSceAgcDriver,agc_shader_helpers_tests,agc_driver_tests, andagc_driver_prepared_shaders_tests. Six focused CTests passed:agc_shader_helpers,agc_driver, and all four prepared-shader variants. The conventions checker andgit diff --checkalso pass.The Windows full-build/510-test report in this PR is from the immediately previous head
bbe1daa2cherry-picked ontod70b8998, before this rebase. It remains useful evidence for the same patch, but does not replace testing the current base. The upstream status currently shows Conventions only; under #2113, could an authorized collaborator run Actions → Build for this head to record the full Linux, Windows, and relinker matrix? No game runtime or hardware test was performed.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T21:11:51Z.
Updated on current upstream main
bbc44381(heade3c463f7). The rebased Linux Release build passed for the AGC driver and its helper/driver/prepared-shader tests; all six focused CTests passed, and conventions/diff checks pass. I moved the #2066 regression cases into a dedicated helper to avoid sharing the test insertion hunk with #2293. The PRs address separate behavior and have no dependency.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T21:17:19Z.
Rebased onto current
main73ba24aaand updated the Tested section. The change remains the same three-file diff; #1823 adds Opus files and does not overlap it. On this exact head802cefe1, the four AGC targets build, all six focused CTests pass, and conventions plus diff checks pass. No game or hardware runtime was tested.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T21:19:14Z.
Kept the branch current with
main87b998a9(the mlock change does not touch AGC) and reran the focused validation on head67da925f: all four AGC targets build, six CTests pass, and conventions/diff checks pass. GitHub has repeatedly cancelled the previous queued Conventions job when the head advanced; I will report the new run separately once it starts/completes. No full Build or hardware runtime was claimed.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T21:36:38Z.
Rebased the existing PR onto upstream
main00159cffand pushed current head266ac575. The Linux Release build passed for the AGC driver and three related targets.agc_shader_helpersandagc_driverpassed; the prepared-shader executable passed the default, uncached, and indirect modes, and the injected-failure mode failed as expected. Conventions andgit diff --checkpass. The earlier Windows 510/510 run predates this rebase. Could an authorized collaborator run the required upstream Build and relinker matrix on this exact head under #2113?