feat(agc): rasterize geometry points with their point size #6801
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6801"
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 JJenkx on 2026-10-16T12:31:42Z.
What
Apply register or misc-X-exported point sizes to geometry-program point outputs, sharing #6639's vertex point-size handling, export clamping and
largePointschecks. Unsupported sizes, sprite states and vertex-workgroup point output throw. Mesh interfaces follow SPV_EXT_mesh_shader; size units and clamps share #6639's cited radeonsi interpretation. Console behavior remains unmeasured and recorded in debt.Rebased without merge commits onto main
27bcd6a29e2fd69aba0626610b2350eb8f2847f6. The six prerequisite commits from #6639 (public headfb7eea88b06ab3f508caa8669f645f7af9a255b2) retain their authorship. That published dependency remains open and required. Its rebased public head856256407bf0801a79b2def8bfc83e2f38be3abfhas the same source additions and removals apart from journal format 6→7, which this branch already carries; the original prerequisite authorship is preserved. Point request fields retain version 43; pipeline journal format advances from main's 6 to 7 and retains polygon mode and point-size fields. Other journal-layout changes need a new combined version if they merge first.#8856 has merged. This refresh uses main's geometry output decoding, primitive-size checks, mesh primitive array and scalar/vector primitive-index stores. The complete primitive assembly block is byte-for-byte identical to main. The remaining mesh
BuiltInPointSizevalidation accepts one scalarf32output only for point-output meshes; the emitter writes the mesh point-size output. Input-validation regressions retain size 1/provoking vertex 0 acceptance and size 1/provoking vertex 1 refusal.The geometry-stage fixture now initializes the same point-size registers as production queue initialization when changing its output to points. Regressions check that each missing register still throws and that the default size and limits decode correctly; production missing-register guards are unchanged.
Tested
Paired focused validation passed on candidate
78a31eecda1c3ccc452a0777803aeaa7ab0ee762(12/12) and main27bcd6a29e2fd69aba0626610b2350eb8f2847f6(11/11). Every GPU execution test loaded Khronos validation; shader caching was disabled, Vulkan was required, and neither arm reported skips or VUIDs. The complete candidate build was restored afterward. Full logs, pins, test review and source patch.Conventions pass. A read-only merge-tree check is clean against main
cecb540a63f614d2b06cbb557c6d1f6f02475fa3; that newer integration revision has not been built or tested.No new native-title, Windows, gameplay, visual-correctness or performance claim. Earlier Cocoon evidence reached the later combined tessellation/geometry refusal; it does not establish gameplay.
Checklist
main; no other open PR implements the same functions — declared prerequisite: #6639 is included with authorship preserved. #8856 is merged; its shared geometry decoding and primitive-index assembly are retained from main.NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-16T13:56:26Z.
Test runs on two vendors, on Linux and Windows, with this head (6592b9427) merged onto
main82ddae75b:mainmain+ #6452 to build the testsagc_driver_vertex_point_sizepasses on both.agc_driver_graphics. It fails the same way onmain(#6792, "VOP2 opcode is not implemented") and stops before the cases this PR adds toGraphics.cpp. With #6789 merged as well it passes, with this PR and without.guest_kqueue, the same as onmain. It fails only in our elevated SSH session.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-16T21:18:35Z.
Temporarily closing this dependent draft to stay within the repository’s 20-open-PR cap while submitting the verified mesh-layer-limit correction for Override 2 (#6933). This work remains preserved at 07b0369b36bbd300599cae7536a6a3a8482d5315 on feat/geometry-points-sized. It still depends on #6639, and Cocoon still has the later 0x2135 routing stop. Reopen after a slot frees and refresh the prerequisite against main; this is queue management, not abandonment of the point-size work.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-19T06:52:41Z.
Rebased the branch onto main
7f596df48dc743ee26fa83ab7f43c859cfdd339bwithout merge commits; new head is8cf9d55a51cf4347afd42d272e99e70aa6c1ca36. The conflict resolutions preserve main’s quad-list primitive-restart handling.Validation on the refreshed head: full
libsbuild and convention checks passed. Six focused tests passed: request serializer, graphics, inactive vertex point size, mesh provoking layer, pipeline journal, and vertex point size. The graphics tests ran uncached with RADV and core Vulkan validation; no skips or validation errors were reported.Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-19T10:02:12Z.
Cocoon PPSA08766 01.004.000 on Windows 10 (19045), RTX 3060 12 GB (NVIDIA 617.42),
main36f60df9ewith #6815 (72959f7c0) and this PR (8cf9d55a5) merged locally:VGT_GS_OUT_PRIM_TYPErefusal from #6815's run is gone.AGC graphics: missing register in context bank at DWORD 0x280 (640), which is theread(cx, 0x280)(PA_SU_POINT_SIZE) at the top ofdecodePointSize.CLEAR_STATEand noSET_CONTEXT_REGto 0x280 or 0x281, and the lastPA_CL_VS_OUT_CNTLlogged before it is0x01240000(USE_VTX_POINT_SIZEclear). So the title may be drawing these points with the clearedPA_SU_POINT_SIZE/PA_SU_POINT_MINMAX.Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-19T10:21:39Z.
Thanks for the precise register and CLEAR_STATE capture. This matches the missing-register path addressed separately by #6821 (current head
c8d7e37f4c092bfccdf3c80d865d1dfd4141d7fd). It initializes PA_SU_POINT_SIZE to0x00080008and PA_SU_POINT_MINMAX to0xffff0000, using the existing public SDK context tables; that initial/CLEAR_STATE interpretation is documented as inferred, not a measured hardware reset value.The earlier Linux integration with #6821 passed this exact missing-register stop and then reached an unsupported combined tessellation/geometry path. Your reported Windows stack omits #6821, so adding it is the next existing change to test. I have recorded your Windows result in this PR description; I am not claiming the extended Windows stack has been tested.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by parl0v on 2026-10-19T11:02:59Z.
Same box (Windows 10 19045, RTX 3060 12 GB, NVIDIA 617.42), Cocoon PPSA08766 01.004.000,
main118266aecwith #6815 (72959f7c0), this PR (8cf9d55a5) and #6821 (c8d7e37f4) merged locally:missing register in context bank at DWORD 0x280stop is gone.AGC graphics: VGT_SHADER_STAGES_EN=0x2135: combined tessellation and geometry is unsupported by the reference path, the same next stop as your Linux integration. The window is still black at that point (2 presents).Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T13:24:18Z.
@JJenkx thanks for this. Before review, could you restack the branch on #6639's current head (a2554533a6)?
The branch carries an older copy of #6639: one of its commits is unchanged, two differ from #6639's current versions, and #6639's "move the vertex point fields to request version 39" commit is not here. Reviewing your two geometry commits and the version-guard tests on top of the current #6639 keeps the review to your own changes, and avoids a second set of #6639 commits on
mainif both merge.Also a heads-up on versions: request version 39 is written by #6639, #6679, #7888 and #7410 as well. When #6639 lands first, this branch reads its point fields from #6639's 39 and adds nothing of its own there; if another of those PRs merges first, the next free version moves on.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-20T13:49:27Z.
Restacked to
793cccc706c19d72ec7c13a38da1f935176db18bdirectly on #6639’s exact current heada2554533a6e76a07f993f1b101d8e3a874631a1c. All four dependency commits are unchanged ancestors; the six commits after them are our two geometry changes and four replay-regression commits. No merge commits or alternate dependency copies remain.The branch adds no request-format version. It reads point fields from #6639’s version 39; if another format-changing PR lands first, the dependency and this stack will need the next free version as you noted.
The same nine focused checks pass on main
634fad812dand this head with Vulkan required, shader caches disabled andVK_LAYER_KHRONOS_validation: zero VUIDs, skips or missing layers. The candidate additionally passes the vertex-point-size execution test. Full candidate libs build, conventions pass, and merge-tree is clean against newer main52f7807a55. PR description and verbose validation evidence are updated. Native title evidence is historical, not rerun on this head.Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-20T15:28:51Z.
Current main
d073fe6a1dnow conflicts with dependency #6639: main's merged-hull requests took version 39. I reported the precise version-40 compatibility change and regression checks on the dependency.A local integration with the compatibility adjustment builds and passes the same seven focused checks as main, plus the candidate-only vertex-point-size test. Both runs use the same RX 6650 XT / RADV, Vulkan required, shader caches disabled and the validation layer: no VUIDs, missing layers or skipped tests. These are local integration results, not a refreshed public branch or native-title validation.
I have left this branch on #6639's exact published head as requested, rather than pushing alternate copies of its commits. It still needs the dependency refreshed before I can restack this PR's own changes. No performance claim. AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-20T16:38:11Z.
Refreshed to
3b5bb553887b557bcf43a6e0f65383b9e83fc98eon #6639’s exact published head2134e93a2705e1a285d54310b9ae65bad2e86ca3. All six dependency commits are unchanged ancestors, followed by our two geometry changes and five replay-regression commits; no merge commits or alternate dependency copies. Main’s merged-hull requests use version 39, #6639’s point fields use version 40, and this PR adds no format version. The legacy-upgrade assertion now expects 40.The same nine focused checks pass on main
f6ce8e34a20a9d6728a728c4769335ecaf5edea0and this head, plus the candidate-only vertex-point-size test. Same RX 6650 XT / RADV, Vulkan required, shader caches disabled and validation enabled: zero VUIDs, skipped tests or missing layers. Full candidate libraries build and were restored/rebuilt after the baseline. Conventions and whitespace checks pass; merge-tree is clean against that main. Full validation evidence.Description updated. Native title and Windows results remain historical; no gameplay, visual-fix or speed claim. AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-20T20:55:01Z.
Current main
26740077bdbf17a604fd1c681e0465c75a85de91conflicts after #6611 moved mesh validation into_validateMesh. The resolution keeps the point-list flag in input construction and accepts primitive size 1 in the extracted mesh validator. The new input-validation test now accepts point output and still rejects an invalid provoking index.Tested integration:
4d8742b9045a15f43a511034ac5b6ff856d521fb. Main and integration pass the same ten focused checks; integration additionally passes the vertex-point-size execution test (11/11). Full integration libraries build and conventions pass. Same RX 6650 XT / RADV, Vulkan required, caches disabled and validation enabled: zero VUIDs, skips or missing layers. Complete build/test logs, source pins, commands and resolution patch.This is a separate integration branch with a merge, not this PR head. The public PR remains on #6639's exact published commits as requested in review. Dependency refresh requested; once refreshed, I can replay only our commits and the regression update without merge commits. Description now identifies the conflict and separates this validation from historical public-head/native results. No native-title or performance claim. AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-20T21:29:56Z.
Rebased to
77736b22ae0019225ef93767eba5163d7c8e7a41on #6639’s refreshed exact headb76b55c6eaf47dc9000d560da6bcfe321f9941f2. Its published commits are unchanged ancestors, followed by our eight commits; there are no merge commits above the dependency.Resolved the #6611 conflict using centralized
_validateMeshwith point output accepted, preserving the point-list flag and the invalid-provoking-index regression. No new request version is introduced.Main
73b6a4cc7144d80ba5c720306ec1516728dfb59band this head pass the same ten focused checks; candidate additionally passes vertex-point-size execution (11/11). Same RX 6650 XT / RADV 26.2.4, Vulkan required, caches disabled and Khronos validation enabled: zero VUIDs, skips or missing layers. Full candidate libraries, conventions and whitespace checks pass; local merge-tree is clean against that main. Complete validation evidence.Public branch and description are updated. Native-title/Windows evidence remains historical; no performance claim. AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T00:35:57Z.
Current-main check (
57fdffd915fa6): this now conflicts inShaderMemory.cpp,RequestSerializer.cppandRequestSerializerTests.cppafter #8697. Its dependency #6639 also conflicts and has a newer published head (0448e86f93, journal format 6).The dependency must resolve the request-version collision first: main now writes version 41 for float32 denorm preservation, while #6639 still uses version 40 for vertex point fields. I reported the source evidence and proposed preserving the v41 layout before adding point fields at the next available version: https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6305021308 . Once #6639 is refreshed, I will replay only this PR's eight commits onto its exact head, update the compatibility regressions, and rerun the same focused main/candidate checks. Existing test results describe the older pins, not current-main compatibility.
AI-assisted: yes (Codex, with Claude research).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T10:14:36Z.
@JJenkx heads-up for your next rebase:
mainnow uses request-serializer version 42 for something else, so this branch's point fields need version 43.mainwrites version 42 (RequestSerializer.cpp:834). The new v42 data is the pixel sample order (#6683):if (version >= 42u)reads fouru32intoinfo.sampleOrder(:427). For pixel fixtures the migration test inserts those 16 bytes at offset 317 (RequestSerializerTests.cpp:414).version >= 42u: the vertexpointList,pointSize,pointSizeMinandpointSizeMax(:923), from the commit it carries from #6639 ("move the vertex point fields to request version 42").A text merge can't fix this, because both sides read different bytes for the same version. On rebase, please write version 43, read the point fields at
version >= 43u(after main's v42 sample order), and update the migration test's offsets and expected bytes so that v42 requests (with sample order, without point fields) still load. If #6639 is rebased ontomainfirst, take its version from there, and this PR moves to the version after it.Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T10:27:46Z.
Thank you for catching the version collision. The local refresh on main
b6fe513b9moves the writer and vertex point fields to version 43, preserves the version-42 pixel sample order, and adds a v42 migration case without point fields plus a v43 round trip containing both. The request_serializer test passes on local head 12dd06677; conventions pass too. The matched main/candidate Vulkan checks are queued behind the shared game-test lock, so I have not pushed or claimed that validation yet. I will also recheck #6639's published version before updating the branch.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T12:01:53Z.
@JJenkx thanks, checked on a43601c450. The point fields now sit at request version 43, after
main's version 42 sample order, and the writer emits 43. The version 42 migration case and the version 44 rejection both match, and the serializer and its tests compile on currentmain.Two small things:
conventionscheck fails only on the template line "Based on currentmain; no other open PR implements the same functions". #6639 carries the same point-field commits, so please say in the description how the two relate (for example, that this one supersedes #6639's point changes) instead of leaving the box blank.FileFormatbump to 7 is right for currentmain. Other open PRs also move it to 7, so whichever merges after the first will need the next number. Nothing to do now: we'll check it at merge time.Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T12:13:38Z.
Updated the checklist with an explicit overlap explanation. #6639 remains the required vertex-point-size prerequisite: its six commits are included with authorship preserved, and #6801 adds geometry point output on top rather than superseding that prerequisite. The separate #8856 overlap and unresolved merge order remain disclosed.
No source change in this update; head remains
a43601c450a16fbf6bcd7f4102704c479a4551d7. Journal format 7 remains as reviewed; it will need the next coordinated version if another layout change merges first.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T12:57:58Z.
@JJenkx, sorry about this one: the ordering is on us. You disclosed the overlap with #8856, and we merged #8856 (
ce7d547175) anyway, so this branch now conflicts withmainin 6 files (9 hunks).#8856 independently implemented the same geometry-program point and line-strip output. On
mainnow:State.cpp: theVGT_GS_OUT_PRIM_TYPEcheck and the output size (an explicit 1/2/3, where this PR usesoutputType + 1u);ShaderInputInfoBuilder: theoutputPrimitiveSizebound (an explicit 1/2/3 list, where this PR checks 1..3);SpirvModuleEmitter: the mesh primitive array;tests/Graphics.cppand two debt entries.What this PR still adds on top, as far as we can see:
PointSize, the clamping and thelargePointschecks);SpirvModuleEmitter. Please check whethermainalready emits it on another path before porting it;BuiltInPointSizeinShaderValidation, whichmaindoesn't have. Please check that it's still needed with #8856's emitter;Could you rebase onto
main, keepmain's version of the shared parts, and port only those additions on top? The version work stays as reviewed: request version 43 and journalFileFormat7 are still one abovemain.The six #6639 commits this PR carries overlap #8856 in the same way, so the same applies to them: keep what
mainnow has, and carry over only the point-size parts #8856 doesn't cover.Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T13:11:41Z.
Thanks for the detailed review. In the private refresh on
ce7d547175, I kept main’s shared decoding, primitive-size checks, mesh primitive array and primitive-index stores. I checked the scalar/vector index-store block directly: it is identical to main, so there is no separate index-store addition left.The
BuiltInPointSizevalidator addition is still needed: main’s validator has no acceptance for it, while the retained point-size emitter adds that mesh output. The refresh limits acceptance to scalarf32point-output stages and rejects duplicates. The point-size and replay regressions remain.Paired main/change validation is running through our serialized GPU test queue. Main has since advanced and introduced an additional additive debt-file conflict; I will resolve that in the final linear refresh before pushing. I have not updated the public branch or claimed those pending tests passed.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T15:11:33Z.
Refreshed to
78a31eecda1c3ccc452a0777803aeaa7ab0ee762as a linear stack on main27bcd6a29e2fd69aba0626610b2350eb8f2847f6, preserving the six #6639 prerequisite commits’ authorship.Kept main’s shared geometry decoding, primitive-size checks, mesh primitive array and complete primitive-index assembly; the latter is byte-for-byte identical to main, so no separate index-store implementation remains. The retained
BuiltInPointSizeacceptance is needed by the point-size emitter and restricted to a single scalarf32output on point-output stages. Point-size and replay regressions remain; the geometry fixture now initializes production point-size defaults while missing-register cases still throw. Request version 43 and journal format 7 remain. #6639 is still an explicit prerequisite; its latest published source delta matches except for the journal bump already present here.Paired focused validation: candidate 12/12, main 11/11 on the same RX 6650 XT / RADV Mesa 26.2.4, Arch Linux. Vulkan required, caches disabled, Khronos validation confirmed per GPU test; neither arm has skips or VUIDs. The candidate build was restored. Complete logs, pins, commands, review and patch. Conventions pass and merge-tree is clean against current main
cecb540a63f614d2b06cbb557c6d1f6f02475fa3; that newer synthetic merge has not been built or tested.No new native-title, Windows, gameplay or performance claim. AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T15:45:51Z.
Resolved the GitHub head synchronization issue with empty follow-up commit
4bed8ea1723f61f191faa9130b1eab6b7983af54. This was a normal fast-forward feature-branch push; its source tree is exactly identical to the validated78a31eecda1c3ccc452a0777803aeaa7ab0ee762revision (tree3593b3498416db927dfc8556c6df0644abefe38c). Convention checks pass. No code changed and no new test run is claimed.GitHub now reports this PR head as
4bed8ea1723f61f191faa9130b1eab6b7983af54andmergeable: true; the checks/status are still unsettled (unstable). The preceding validation archive continues to describe the identical source at78a31eecda.For the record, REST, GraphQL and
git ls-remotepreviously showed upstream pull heada43601c450while the source branch already advertised78a31eecda; that stale-head condition is now resolved.