feat(agc): draw point lists on the vertex path with their point size #6639

Closed
milescoviello wants to merge 6 commits from upstream-pr/6639 into main
milescoviello commented 2026-10-16 00:22:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T00:22:54Z.


What

OliSe Player (PPSA01153) picks a random MilkDrop preset. With two of its own presets, Che - Escape and Stahlregen + Geiss + Martin - Ouboros (Metal Finish 2), it stops on main 19 s in:

[gpu] driver failure: layer, viewport or auxiliary vertex exports is unsupported (register 0x207 = 0x01210000)

The draw is a point list (VGT_PRIMITIVE_TYPE 1) on the vertex path (VGT_SHADER_STAGES_EN 0x2012010). PA_CL_VS_OUT_CNTL 0x01210000 sets USE_VTX_POINT_SIZE, VS_OUT_MISC_VEC_ENA and VS_OUT_MISC_SIDE_BUS_ENA, so each point's size comes from the X of the misc position export. main accepts USE_VTX_POINT_SIZE only when nothing is drawn as points (#4715). Past that check it would also refuse the draw itself: point-list vertex rendering requires point-size output support. Point lists are drawn only through the geometry path on main.

How

  • Decode. A point list with GS_EN and HS_EN clear decodes as a vertex-path point list, and USE_VTX_POINT_SIZE is accepted on it. PA_SU_POINT_SIZE and PA_SU_POINT_MINMAX are read as half sizes in 12.4 fixed point (a field of 8 is one pixel), the units radeonsi programs. The draw precheck accepts the same bit.
  • Shader. The vertex program writes PointSize. It starts as the PA_SU_POINT_SIZE height. When USE_VTX_POINT_SIZE is set, the misc export's X replaces it, clamped to PA_SU_POINT_MINMAX. The recompiler already mapped that component to gl_PointSize, but the driver never passed bit 16 through. The point state goes into the recompile request as four new vertex fields at the end of the request (version 33; #5884 took 31 and #5405 took 32 on main), and into the cache key, the draw register key and the draw lookup. Shader validation accepts a PointSize output for these draws.
  • Device. largePoints is enabled when available, and a point draw whose size can differ from one pixel requires it.

Vulkan needs a PointSize above zero, so a register size of 0 without USE_VTX_POINT_SIZE and a clamp maximum of 0 with it throw, and the clamp's lower bound is at least the smallest positive float. An exported size of 0 or less, which a clamp minimum of 0 lets through, draws as the device's smallest point. radeonsi programs that minimum for multisampled and sprite points.

Also refused: a register size whose width and height differ, a clamp minimum above its maximum, USE_VTX_POINT_SIZE without VS_OUT_MISC_VEC_ENA, and point sprite texture coordinates (SPI_PS_INPUT_CNTL PT_SPRITE_TEX or PT_SPRITE_TEX_ATTR1 while SPI_INTERP_CONTROL_0.PNT_SPRITE_ENA is set). Nothing on main checks those coordinates, so a point draw that used them would otherwise render wrong silently. The geometry path is unchanged.

Three choices are inferred, not measured. The clamp applies to the exported size but not to the register size, because radeonsi sets both clamps to the register size when the size isn't per vertex. Sizes outside the device's pointSizeRange are clamped by the device. On the console, a point whose size is 0 or less probably covers nothing; here it draws as the smallest point. Both are in the technical debt file.

Tested

Linux (Ubuntu 24.04, GCC 13.3, Release), RTX 4070 Ti, NVIDIA 595.99.

  • agc_driver_vertex_point_size (new, GPU). It draws four points through the recompiler and checks that each one is an exact square of the expected side, in place: register sizes 1, 4 and 3 (the last ignoring a [6, 8] clamp), and exported sizes 2 inside [1, 8], 6 clamped to 4, 1 clamped up to 5, and 6 inside [1, 8] over a register size of 1. Exported sizes 0 and -3 with a clamp of [0, 4] cover at most one pixel (one on NVIDIA). With main's SpirvModuleEmitter.cpp and ShaderInfoCollector.cpp, the size-4 case draws one-pixel points and fails.
  • agc_driver_graphics: Che's registers decode as a vertex point list of one-pixel points, pass the precheck, and give the vertex stage bit 16. A register size decodes in diameters and doesn't turn on bit 16. A triangle draw gets no point size. The refusals above throw, including the two zero sizes. A zero register size with USE_VTX_POINT_SIZE, a zero clamp minimum, and a zero clamp without it still decode. PT_SPRITE_TEX passes with sprites off. The case of the existing inactive-point-size test that expected this point list to be refused now checks a point list on the geometry path instead, which is still refused. These tests use the new state fields, so they don't build on main.
  • request_serializer: the upgrade fixtures now expect version 37 and the new tail, and a point request round-trips and rejects a truncated tail.
  • Those three and agc_driver_inactive_vertex_point_size and agc_driver_zero_position_vertex pass 3 of 3.
  • Rebased onto main eb901bcf4 (10-16, with #6784). #5884 had taken request version 31, so the point fields moved to 32 (3069ed85c): agc_shader_memory expects 32 for new requests and rejects 33. Pipeline creation and SPIR-V validation read the point state, so the pipeline journal now carries vertexPoints and the three sizes, the State guard names its new size and the journal format becomes 4 (3ddbd2138). A point-list recipe must decode with its sizes in agc_pipeline_journal. ctest (^agc_driver_|^agc_vertex_barrier|recompiler|shader_cache|request_serializer|spirv|^agc_shader|bda|journal, 502 tests, with #6789's one-line test fix applied so agc_driver_graphics reaches this PR's cases): 501 pass. agc_driver_store_over_untracked fails the same way on main; #6385 addresses it. My earlier regex left out agc_shader_memory, which this PR had broken; screamm found it.
  • Rebased onto main 1b1f8483ca (ea05b7804), now with #5405, which took request version 32 for spanned waves. The point fields now come with version 33, after that flag (7a3f62e03): agc_shader_memory expects 33 for new requests and rejects 34, and the request_serializer fixtures append the spanned-wave byte before the point tail. agc_driver_vertex_point_size, request_serializer and agc_driver_graphics pass 3 of 3. Of the 898 area tests (the regex above plus ^guest_|libc), all pass except main's agc_driver_store_over_untracked and guest_kernel_fcntl; the latter aborted once under ctest -j4 and passes on its own.
  • Rebased 10-22 onto main 895f47f4ee (0116102be4). #8115 took journal format 7 and sizeof(State) 808, so this PR's journal format moves to 8 and the State guard to 824 (808 plus the 16 bytes of point state). 8 is the number #6801 has in the queue; #6801 carries these six commits and changes no other journal field, so both claim 8 for the same fields. Request version 43 is still free (main writes 42). Pipeline.cpp keeps #8115's truncated-coverage check next to this PR's point-size check. The 14 tests matching ^request_serializer$|^agc_shader_memory$|point|journal|^agc_driver_graphics$ pass 3 of 3; with the Khronos validation layer (1.4.363), main passes 11 of 11 and this head 12 of 12 with no VUID on either side. On Windows (Windows 11 VM, GeForce GT 1030 with NVIDIA R580, WinLibs GCC, Release, ANYPS5_REQUIRE_VULKAN=1), the 15 tests matching the same regex pass 3 of 3 on this head.
  • Rebased 10-21 (later) onto main 275e896797 (3ccf38feef). #7869 took journal format 6 for its polygon modes, so this PR's journal format moves to 7. sizeof(State) stays 800 with #7869's field. The debt file keeps #7869's "Point and line polygon modes" entry next to this PR's "Vertex-path point lists". request_serializer, agc_shader_memory, agc_driver_pipeline_journal, agc_pipeline_journal, agc_pipeline_journal_long_paths, agc_driver_graphics and both point-size tests pass 2 of 2.
  • Rebased 10-21 onto main b6fe513b9a (fb7eea88b0). #6683 took request version 42 for the pixel sample order, so the point fields move to 43, after it:
    • New requests write 43, the point tail is read if (version >= 43u), and 44 is rejected. agc_shader_memory's base64 prefixes for the new and the rejected version follow.
    • A version 42 vertex request from main has no point tail and reads without point state.
    • The merged hull case in request_serializer now round-trips a version 43 request with point state. It cuts the 13-byte tail for version 42, then removes the 16-byte sample order of the pixel fixtures for version 41, then drops the denormal flag for version 39. The merged hull flag is kept, and point state reads as defaults, at each step.
    • The pipeline journal format was still 6 then (main had 5).
    • request_serializer, agc_shader_memory, agc_driver_pipeline_journal, agc_driver_graphics and both point-size tests pass 3 of 3.
    • ctest -R '^agc_|^request_serializer$|^shader' passes 865 of 868. The 3 failures are #6683's new agc_driver_sample_order, agc_driver_sample_order_grid_reference and agc_driver_sample_order_recipe_depth_locations. They fail the same way on main b6fe513b9a on this RTX 4070 Ti, 2 of 2 each, with the same messages.
  • Rebased 10-20 (evening) onto main 57fdffd915 (a31abee3a7). #8697 took request version 41 for its f32 denormal-preserve flag, so the point fields move to 42 and come after that flag: new requests write 42, the point tail is read if (version >= 42u) after the version 41 flag, and 43 is rejected. A version 41 vertex request from main has no point tail and reads without point state. The merged hull case in request_serializer (as @JJenkx asked) now round-trips a version 42 request with point state, cuts the 13-byte tail for version 41 (point fields read as defaults, merged hull kept), then drops the denormal flag for version 39. main's version 40 case for the denormal flag stays. The pipeline journal format is 6 (main has 5, from #5656). ctest -R '^(agc_|shader_|request_)' passes 853 of 853, and request_serializer, agc_shader_memory, agc_driver_pipeline_journal and agc_driver_graphics pass 3 of 3.
  • Rebased 10-20 onto main 636aa09cb1 (2134e93a27). #6679 took request version 39 for its merged hull flag, so the point fields move to 40: new requests write 40, the point tail is read if (version >= 40u), 41 is rejected, and main's merged hull gate stays at 39. A new request_serializer case (as @JJenkx suggested) round-trips a version 40 request with either merged hull value and point state, then cuts the 13-byte point tail off and sets version 39: the merged hull flag survives and the point fields read as defaults. agc_shader_memory's merged hull test now drops the point tail before it checks older versions. ctest -R '^(agc_|shader_|request_)' passes 835 of 835, and the point, vertex, serializer, journal and tessellation tests pass 3 of 3. The debt entry now leads with its gaps, is under 1000 characters, and names no title.
  • Rebased 10-19 (evening) onto main 3aa4448ed3 (a2554533a6). #6941 took request version 38 for its mesh barycentric layout, so the point fields move to 39: read if (version >= 39u), the tests expect 39 and reject 40, and version 35 to 38 requests from main read without a point tail. #6941's field sits in the graphics section, so the vertex-only depth-remap fixture still truncates from the tail. ShaderValidation.cpp conflicted only on neighbouring Module fields (#6941's mesh ones and this PR's point ones), and both are kept. request_serializer, agc_shader_memory, the point tests and agc_driver_graphics pass, 10 of 10. Under the LunarG SDK's 1.4.363 layer, point|^agc_driver_graphics$ gives no validation messages on main (7 tests) or with this PR (8).
  • Rebased 10-19 (later) onto main 32004dfa55 (01119658d8). main took request version 37 for the stencil operation value export (7563b4a480), so the point fields move to 38. They're read if (version >= 38u), the tests expect 38 and reject 39, and version 35 to 37 requests from main read without a point tail. Both sides had changed the same line to 37, so git merged it without a conflict. The 635 broad-set tests pass on main, and 636 of 636 with this PR. The serializer, point, shader-memory and journal tests pass 3 of 3. Under the LunarG SDK's 1.4.363 layer there are no validation messages on either side.
  • Rebased 10-19 onto main 7f596df48d (24d46893d6; it merges with 6b8228b2bf cleanly). #4650 took request version 35 for its depth remap fields and #6503 took 36 for the f32 flush-to-zero flag, so the point fields now come with version 37, after the flush flag, and the tests expect 37 and reject 38. The vertex stage keeps main's depth remap mode beside the point size (Draw.cpp, DrawRegisterKey.cpp, the cache key and ShaderInputInfoBuilder.cpp). main's merged coverage and depth remap already use journal format 4, so the journal format becomes 6 (State 800 bytes), since #5656 took 5 on main. #4650's depth remap layout check in agc_shader_memory now skips the 13-byte point tail of a vertex request. In State.cpp the point-list export mask sits next to #6529's quad-list primitive restart rule. On 9817d53cc9 the AGC, shader, request, journal and point set passed 616 of 617, against 615 of 616 on main alone; the one failure on both is agc_driver_bda_device (#7584). On the final head the 15 point, serializer, journal, shader memory, graphics, quad and primitive tests pass 3 of 3.
  • Rebased onto main 7bc7905978 (7944d73962; it merges with c8e3fcb703 cleanly). main took request version 34 for its pixel fields, so a version 34 request from main has no point tail. The point fields now come with version 35 (0ad86288c1): agc_shader_memory expects 35 for new requests and rejects 36, and the request_serializer fixtures move to 35. In ShaderRegistry.cpp, main now decodes the vertex stage after its deferral check and inside a try, so ApplyPointSize moved there. In State.cpp, main's PixelSampleLocations and this PR's ApplyPointSize both stay. The AGC, shader, request, journal and point set passes 610 of 611, against 609 of 610 on main 7bc7905978 alone; the one failure on both is agc_driver_bda_device (#7584). The 10 point, serializer, journal and shader memory tests pass 3 of 3.
  • Rebased onto main 9f25d0bf5b (1d714dd50d), with #7175. Its new PolygonPrimitiveTests in tests/Graphics.cpp sits next to this PR's vertexPointListTests; both stay. Request version 33 is still free on main (32 is the newest). The 34 tests matching graphics|point|journal|vertex pass.

OliSe Player, 60 s, scripted pad input, copies of the app whose preset folder holds only one of its own presets:

Preset main 5d9dcc42d this PR
Che - Escape stops at 19 s (2 of 2), line above gets past the point draw. Stops at 20 s on SPI_PS_INPUT_ENA/ADDR 0x4002 (SAMPLE_COVERAGE), which #6530 accepts. With #6530 as well, it reaches the limit (2 of 2) and the visualiser renders
Stahlregen + Geiss + Martin - Ouboros (Metal Finish 2) stops at 19 s, line above (one run) reaches the limit, alone and with #6530 (one run each)

On the Intel VM (Arrow Lake iGPU, Mesa 26.1.6 ANV, Debian 13):

  • agc_driver_vertex_point_size from 869495776 passes 3 of 3, with the same squares as on NVIDIA in every case, including one pixel for exported sizes 0 and -3.
  • With the first commit, the Ouboros copy stops 19 s in on main 5d9dcc42d with the line above, and runs to the 60 s limit with this PR.

@screamm cross-checked it on Windows 11 Pro (RTX 4070, driver 596.21, MinGW-w64 GCC 15.2) at 869495776. request_serializer, agc_driver_graphics, agc_driver_inactive_vertex_point_size, agc_driver_vertex_point_size and agc_driver_zero_position_vertex passed 3 of 3. With main's SpirvModuleEmitter.cpp and ShaderInfoCollector.cpp, agc_driver_vertex_point_size failed with register size 4: a point is not a 4x4 square. In OliSe Player (150 s) with #6530, both presets reached the limit 2 of 2, where main + #6530 stopped on the 0x207 line. There the visualiser composite was black on the default path and rendered with APS5_NO_RESIDENT_TARGETS=1.

@johnmaia ran the full suite on AMD (Radeon RX 7600, RADV NAVI33, Mesa 25.2.8, Ubuntu 24.04) with 3ddbd2138 on main 82ddae75b. 1287 of 1288 tests pass, and the one failure is main's agc_driver_graphics (#6792). agc_driver_vertex_point_size passes, and with #6789 merged too, agc_driver_graphics passes with and without this PR, so the new Graphics.cpp cases run there.

@screamm rechecked the current head on Windows (ea05b7804, stacked with #6530 and #6669 on main 5f61879a9). agc_shader_memory, request_serializer, the point-size tests and both journal tests pass 3 of 3, including the new point-list journal case. With RequestSerializer.cpp set back to version 32, agc_shader_memory fails on trailing data. OliSe Player (Che - Escape) reaches the 120 s limit 2 of 2, where main stops on register 0x207 2 of 2.

#6530 (mine) also moves the pipeline journal format from 3 to 4, for State::mergedCoverage. Its fields sit before quadSampleMask in the codec, so the two do not conflict there, but whichever merges second will move the format to 5.

Not checked in a title on AMD, or on a console.

Other open PRs touch neighbouring lines: #6529 next to the same 0x207 check, #6530 in Pipeline.cpp, #5859 in SpirvModuleEmitter.cpp. #6470 and #6503 also took request version 31, which #5884 has since used on main; whichever of these lands next takes the next free version. #6679 and #6801 also take version 37, so whichever of the three lands first keeps 37, and the others move to 38 and 39.

  • Khronos validation, as CONTRIBUTING.md asks: Ubuntu's 1.3.275 layer loaded with VK_LAYER_PATH, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest -V, RTX 4070 Ti, Linux. Neither log reports was not found but was requested by env var VK_INSTANCE_LAYERS. ^agc_driver_graphics$|vertex_point_size|^agc_shader_memory$: on main 7f596df48d it reports VkDeviceCreateInfo-pNext-pNext ×6 and VkGraphicsPipelineCreateInfo-pLibraries-06681 ×3. With this PR it reports the same two (×9 and ×30, mostly from the new agc_driver_vertex_point_size) and no other VUID. This older layer gives both on main for every device-creating test.
  • The same comparison under the LunarG SDK's 1.4.363 layer, the version Windows reviewers run: no validation messages on main 7f596df48d or with this PR.

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
  • Unblocks: none (Che - Escape also needs #6530)
  • GPUs tested: NVIDIA GeForce RTX 4070 Ti, driver 595.99, Ubuntu 24.04; Intel Arrow Lake iGPU, Mesa 26.1.6 ANV, Debian 13; NVIDIA GeForce RTX 4070, driver 596.21, Windows 11 (screamm); AMD Radeon RX 7600, Mesa 25.2.8 RADV, Ubuntu 24.04 (tests, johnmaia)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4881606947 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-16T00:22:54Z. --- ### What OliSe Player (PPSA01153) picks a random MilkDrop preset. With two of its own presets, Che - Escape and Stahlregen + Geiss + Martin - Ouboros (Metal Finish 2), it stops on `main` 19 s in: ``` [gpu] driver failure: layer, viewport or auxiliary vertex exports is unsupported (register 0x207 = 0x01210000) ``` The draw is a point list (`VGT_PRIMITIVE_TYPE` 1) on the vertex path (`VGT_SHADER_STAGES_EN` 0x2012010). `PA_CL_VS_OUT_CNTL` 0x01210000 sets USE_VTX_POINT_SIZE, VS_OUT_MISC_VEC_ENA and VS_OUT_MISC_SIDE_BUS_ENA, so each point's size comes from the X of the misc position export. `main` accepts USE_VTX_POINT_SIZE only when nothing is drawn as points (#4715). Past that check it would also refuse the draw itself: `point-list vertex rendering requires point-size output support`. Point lists are drawn only through the geometry path on `main`. ### How - **Decode.** A point list with GS_EN and HS_EN clear decodes as a vertex-path point list, and USE_VTX_POINT_SIZE is accepted on it. `PA_SU_POINT_SIZE` and `PA_SU_POINT_MINMAX` are read as half sizes in 12.4 fixed point (a field of 8 is one pixel), the units [radeonsi programs](https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-24.0.0/src/gallium/drivers/radeonsi/si_state.c#L1047-1064). The draw precheck accepts the same bit. - **Shader.** The vertex program writes `PointSize`. It starts as the `PA_SU_POINT_SIZE` height. When USE_VTX_POINT_SIZE is set, the misc export's X replaces it, clamped to `PA_SU_POINT_MINMAX`. The recompiler already mapped that component to `gl_PointSize`, but the driver never passed bit 16 through. The point state goes into the recompile request as four new vertex fields at the end of the request (version 33; #5884 took 31 and #5405 took 32 on `main`), and into the cache key, the draw register key and the draw lookup. Shader validation accepts a `PointSize` output for these draws. - **Device.** `largePoints` is enabled when available, and a point draw whose size can differ from one pixel requires it. Vulkan needs a `PointSize` above zero, so a register size of 0 without USE_VTX_POINT_SIZE and a clamp maximum of 0 with it throw, and the clamp's lower bound is at least the smallest positive float. An exported size of 0 or less, which a clamp minimum of 0 lets through, draws as the device's smallest point. radeonsi programs that minimum for multisampled and sprite points. Also refused: a register size whose width and height differ, a clamp minimum above its maximum, USE_VTX_POINT_SIZE without VS_OUT_MISC_VEC_ENA, and point sprite texture coordinates (`SPI_PS_INPUT_CNTL` PT_SPRITE_TEX or PT_SPRITE_TEX_ATTR1 while `SPI_INTERP_CONTROL_0.PNT_SPRITE_ENA` is set). Nothing on `main` checks those coordinates, so a point draw that used them would otherwise render wrong silently. The geometry path is unchanged. Three choices are inferred, not measured. The clamp applies to the exported size but not to the register size, because radeonsi sets both clamps to the register size when the size isn't per vertex. Sizes outside the device's `pointSizeRange` are clamped by the device. On the console, a point whose size is 0 or less probably covers nothing; here it draws as the smallest point. Both are in the technical debt file. ### Tested Linux (Ubuntu 24.04, GCC 13.3, Release), RTX 4070 Ti, NVIDIA 595.99. - `agc_driver_vertex_point_size` (new, GPU). It draws four points through the recompiler and checks that each one is an exact square of the expected side, in place: register sizes 1, 4 and 3 (the last ignoring a [6, 8] clamp), and exported sizes 2 inside [1, 8], 6 clamped to 4, 1 clamped up to 5, and 6 inside [1, 8] over a register size of 1. Exported sizes 0 and -3 with a clamp of [0, 4] cover at most one pixel (one on NVIDIA). With `main`'s `SpirvModuleEmitter.cpp` and `ShaderInfoCollector.cpp`, the size-4 case draws one-pixel points and fails. - `agc_driver_graphics`: Che's registers decode as a vertex point list of one-pixel points, pass the precheck, and give the vertex stage bit 16. A register size decodes in diameters and doesn't turn on bit 16. A triangle draw gets no point size. The refusals above throw, including the two zero sizes. A zero register size with USE_VTX_POINT_SIZE, a zero clamp minimum, and a zero clamp without it still decode. PT_SPRITE_TEX passes with sprites off. The case of the existing inactive-point-size test that expected this point list to be refused now checks a point list on the geometry path instead, which is still refused. These tests use the new state fields, so they don't build on `main`. - `request_serializer`: the upgrade fixtures now expect version 37 and the new tail, and a point request round-trips and rejects a truncated tail. - Those three and `agc_driver_inactive_vertex_point_size` and `agc_driver_zero_position_vertex` pass 3 of 3. - Rebased onto `main` eb901bcf4 (10-16, with #6784). #5884 had taken request version 31, so the point fields moved to 32 (3069ed85c): `agc_shader_memory` expects 32 for new requests and rejects 33. Pipeline creation and SPIR-V validation read the point state, so the pipeline journal now carries `vertexPoints` and the three sizes, the `State` guard names its new size and the journal format becomes 4 (3ddbd2138). A point-list recipe must decode with its sizes in `agc_pipeline_journal`. ctest (`^agc_driver_|^agc_vertex_barrier|recompiler|shader_cache|request_serializer|spirv|^agc_shader|bda|journal`, 502 tests, with #6789's one-line test fix applied so `agc_driver_graphics` reaches this PR's cases): 501 pass. `agc_driver_store_over_untracked` fails the same way on `main`; #6385 addresses it. My earlier regex left out `agc_shader_memory`, which this PR had broken; [screamm found it](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6213842347). - Rebased onto `main` 1b1f8483ca (ea05b7804), now with #5405, which took request version 32 for spanned waves. The point fields now come with version 33, after that flag (7a3f62e03): `agc_shader_memory` expects 33 for new requests and rejects 34, and the `request_serializer` fixtures append the spanned-wave byte before the point tail. `agc_driver_vertex_point_size`, `request_serializer` and `agc_driver_graphics` pass 3 of 3. Of the 898 area tests (the regex above plus `^guest_|libc`), all pass except `main`'s `agc_driver_store_over_untracked` and `guest_kernel_fcntl`; the latter aborted once under `ctest -j4` and passes on its own. - Rebased 10-22 onto `main` 895f47f4ee (0116102be4). #8115 took journal format 7 and `sizeof(State)` 808, so this PR's journal format moves to 8 and the `State` guard to 824 (808 plus the 16 bytes of point state). 8 is the number #6801 has in the queue; #6801 carries these six commits and changes no other journal field, so both claim 8 for the same fields. Request version 43 is still free (`main` writes 42). `Pipeline.cpp` keeps #8115's truncated-coverage check next to this PR's point-size check. The 14 tests matching `^request_serializer$|^agc_shader_memory$|point|journal|^agc_driver_graphics$` pass 3 of 3; with the Khronos validation layer (1.4.363), `main` passes 11 of 11 and this head 12 of 12 with no VUID on either side. On Windows (Windows 11 VM, GeForce GT 1030 with NVIDIA R580, WinLibs GCC, Release, `ANYPS5_REQUIRE_VULKAN=1`), the 15 tests matching the same regex pass 3 of 3 on this head. - Rebased 10-21 (later) onto `main` 275e896797 (3ccf38feef). #7869 took journal format 6 for its polygon modes, so this PR's journal format moves to 7. `sizeof(State)` stays 800 with #7869's field. The debt file keeps #7869's "Point and line polygon modes" entry next to this PR's "Vertex-path point lists". `request_serializer`, `agc_shader_memory`, `agc_driver_pipeline_journal`, `agc_pipeline_journal`, `agc_pipeline_journal_long_paths`, `agc_driver_graphics` and both point-size tests pass 2 of 2. - Rebased 10-21 onto `main` b6fe513b9a (fb7eea88b0). #6683 took request version 42 for the pixel sample order, so the point fields move to 43, after it: - New requests write 43, the point tail is read `if (version >= 43u)`, and 44 is rejected. `agc_shader_memory`'s base64 prefixes for the new and the rejected version follow. - A version 42 vertex request from `main` has no point tail and reads without point state. - The merged hull case in `request_serializer` now round-trips a version 43 request with point state. It cuts the 13-byte tail for version 42, then removes the 16-byte sample order of the pixel fixtures for version 41, then drops the denormal flag for version 39. The merged hull flag is kept, and point state reads as defaults, at each step. - The pipeline journal format was still 6 then (`main` had 5). - `request_serializer`, `agc_shader_memory`, `agc_driver_pipeline_journal`, `agc_driver_graphics` and both point-size tests pass 3 of 3. - `ctest -R '^agc_|^request_serializer$|^shader'` passes 865 of 868. The 3 failures are #6683's new `agc_driver_sample_order`, `agc_driver_sample_order_grid_reference` and `agc_driver_sample_order_recipe_depth_locations`. They fail the same way on `main` b6fe513b9a on this RTX 4070 Ti, 2 of 2 each, with the same messages. - Rebased 10-20 (evening) onto `main` 57fdffd915 (a31abee3a7). #8697 took request version 41 for its f32 denormal-preserve flag, so the point fields move to 42 and come after that flag: new requests write 42, the point tail is read `if (version >= 42u)` after the version 41 flag, and 43 is rejected. A version 41 vertex request from `main` has no point tail and reads without point state. The merged hull case in `request_serializer` (as @JJenkx [asked](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6305021308)) now round-trips a version 42 request with point state, cuts the 13-byte tail for version 41 (point fields read as defaults, merged hull kept), then drops the denormal flag for version 39. `main`'s version 40 case for the denormal flag stays. The pipeline journal format is 6 (`main` has 5, from #5656). `ctest -R '^(agc_|shader_|request_)'` passes 853 of 853, and `request_serializer`, `agc_shader_memory`, `agc_driver_pipeline_journal` and `agc_driver_graphics` pass 3 of 3. - Rebased 10-20 onto `main` 636aa09cb1 (2134e93a27). #6679 took request version 39 for its merged hull flag, so the point fields move to 40: new requests write 40, the point tail is read `if (version >= 40u)`, 41 is rejected, and `main`'s merged hull gate stays at 39. A new `request_serializer` case (as @JJenkx [suggested](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6294525754)) round-trips a version 40 request with either merged hull value and point state, then cuts the 13-byte point tail off and sets version 39: the merged hull flag survives and the point fields read as defaults. `agc_shader_memory`'s merged hull test now drops the point tail before it checks older versions. `ctest -R '^(agc_|shader_|request_)'` passes 835 of 835, and the point, vertex, serializer, journal and tessellation tests pass 3 of 3. The debt entry now leads with its gaps, is under 1000 characters, and names no title. - Rebased 10-19 (evening) onto `main` 3aa4448ed3 (a2554533a6). #6941 took request version 38 for its mesh barycentric layout, so the point fields move to 39: read `if (version >= 39u)`, the tests expect 39 and reject 40, and version 35 to 38 requests from `main` read without a point tail. #6941's field sits in the graphics section, so the vertex-only depth-remap fixture still truncates from the tail. `ShaderValidation.cpp` conflicted only on neighbouring `Module` fields (#6941's mesh ones and this PR's point ones), and both are kept. `request_serializer`, `agc_shader_memory`, the point tests and `agc_driver_graphics` pass, 10 of 10. Under the LunarG SDK's 1.4.363 layer, `point|^agc_driver_graphics$` gives no validation messages on `main` (7 tests) or with this PR (8). - Rebased 10-19 (later) onto `main` 32004dfa55 (01119658d8). `main` took request version 37 for the stencil operation value export (7563b4a480), so the point fields move to 38. They're read `if (version >= 38u)`, the tests expect 38 and reject 39, and version 35 to 37 requests from `main` read without a point tail. Both sides had changed the same line to 37, so git merged it without a conflict. The 635 broad-set tests pass on `main`, and 636 of 636 with this PR. The serializer, point, shader-memory and journal tests pass 3 of 3. Under the LunarG SDK's 1.4.363 layer there are no validation messages on either side. - Rebased 10-19 onto `main` 7f596df48d (24d46893d6; it merges with 6b8228b2bf cleanly). #4650 took request version 35 for its depth remap fields and #6503 took 36 for the f32 flush-to-zero flag, so the point fields now come with version 37, after the flush flag, and the tests expect 37 and reject 38. The vertex stage keeps `main`'s depth remap mode beside the point size (`Draw.cpp`, `DrawRegisterKey.cpp`, the cache key and `ShaderInputInfoBuilder.cpp`). `main`'s merged coverage and depth remap already use journal format 4, so the journal format becomes 6 (`State` 800 bytes), since #5656 took 5 on `main`. #4650's depth remap layout check in `agc_shader_memory` now skips the 13-byte point tail of a vertex request. In `State.cpp` the point-list export mask sits next to #6529's quad-list primitive restart rule. On 9817d53cc9 the AGC, shader, request, journal and point set passed 616 of 617, against 615 of 616 on `main` alone; the one failure on both is `agc_driver_bda_device` (#7584). On the final head the 15 point, serializer, journal, shader memory, graphics, quad and primitive tests pass 3 of 3. - Rebased onto `main` 7bc7905978 (7944d73962; it merges with c8e3fcb703 cleanly). `main` took request version 34 for its pixel fields, so a version 34 request from `main` has no point tail. The point fields now come with version 35 (0ad86288c1): `agc_shader_memory` expects 35 for new requests and rejects 36, and the `request_serializer` fixtures move to 35. In `ShaderRegistry.cpp`, `main` now decodes the vertex stage after its deferral check and inside a `try`, so `ApplyPointSize` moved there. In `State.cpp`, `main`'s `PixelSampleLocations` and this PR's `ApplyPointSize` both stay. The AGC, shader, request, journal and point set passes 610 of 611, against 609 of 610 on `main` 7bc7905978 alone; the one failure on both is `agc_driver_bda_device` (#7584). The 10 point, serializer, journal and shader memory tests pass 3 of 3. - Rebased onto `main` 9f25d0bf5b (1d714dd50d), with #7175. Its new `PolygonPrimitiveTests` in `tests/Graphics.cpp` sits next to this PR's `vertexPointListTests`; both stay. Request version 33 is still free on `main` (32 is the newest). The 34 tests matching `graphics|point|journal|vertex` pass. OliSe Player, 60 s, scripted pad input, copies of the app whose preset folder holds only one of its own presets: | Preset | `main` 5d9dcc42d | this PR | |---|---|---| | Che - Escape | stops at 19 s (2 of 2), line above | gets past the point draw. Stops at 20 s on `SPI_PS_INPUT_ENA/ADDR 0x4002` (SAMPLE_COVERAGE), which #6530 accepts. With #6530 as well, it reaches the limit (2 of 2) and the visualiser renders | | Stahlregen + Geiss + Martin - Ouboros (Metal Finish 2) | stops at 19 s, line above (one run) | reaches the limit, alone and with #6530 (one run each) | On the Intel VM (Arrow Lake iGPU, Mesa 26.1.6 ANV, Debian 13): - `agc_driver_vertex_point_size` from 869495776 passes 3 of 3, with the same squares as on NVIDIA in every case, including one pixel for exported sizes 0 and -3. - With the first commit, the Ouboros copy stops 19 s in on `main` 5d9dcc42d with the line above, and runs to the 60 s limit with this PR. @screamm [cross-checked it on Windows](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6213842347) 11 Pro (RTX 4070, driver 596.21, MinGW-w64 GCC 15.2) at 869495776. `request_serializer`, `agc_driver_graphics`, `agc_driver_inactive_vertex_point_size`, `agc_driver_vertex_point_size` and `agc_driver_zero_position_vertex` passed 3 of 3. With `main`'s `SpirvModuleEmitter.cpp` and `ShaderInfoCollector.cpp`, `agc_driver_vertex_point_size` failed with `register size 4: a point is not a 4x4 square`. In OliSe Player (150 s) with #6530, both presets reached the limit 2 of 2, where `main` + #6530 stopped on the `0x207` line. There the visualiser composite was black on the default path and rendered with `APS5_NO_RESIDENT_TARGETS=1`. @johnmaia [ran the full suite on AMD](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6217078146) (Radeon RX 7600, RADV NAVI33, Mesa 25.2.8, Ubuntu 24.04) with 3ddbd2138 on `main` 82ddae75b. 1287 of 1288 tests pass, and the one failure is `main`'s `agc_driver_graphics` (#6792). `agc_driver_vertex_point_size` passes, and with #6789 merged too, `agc_driver_graphics` passes with and without this PR, so the new `Graphics.cpp` cases run there. @screamm [rechecked the current head on Windows](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6232642681) (ea05b7804, stacked with #6530 and #6669 on `main` 5f61879a9). `agc_shader_memory`, `request_serializer`, the point-size tests and both journal tests pass 3 of 3, including the new point-list journal case. With `RequestSerializer.cpp` set back to version 32, `agc_shader_memory` fails on trailing data. OliSe Player (Che - Escape) reaches the 120 s limit 2 of 2, where `main` stops on register 0x207 2 of 2. #6530 (mine) also moves the pipeline journal format from 3 to 4, for `State::mergedCoverage`. Its fields sit before `quadSampleMask` in the codec, so the two do not conflict there, but whichever merges second will move the format to 5. Not checked in a title on AMD, or on a console. Other open PRs touch neighbouring lines: #6529 next to the same `0x207` check, #6530 in `Pipeline.cpp`, #5859 in `SpirvModuleEmitter.cpp`. #6470 and #6503 also took request version 31, which #5884 has since used on `main`; whichever of these lands next takes the next free version. #6679 and #6801 also take version 37, so whichever of the three lands first keeps 37, and the others move to 38 and 39. - Khronos validation, as CONTRIBUTING.md asks: Ubuntu's 1.3.275 layer loaded with `VK_LAYER_PATH`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest -V`, RTX 4070 Ti, Linux. Neither log reports `was not found but was requested by env var VK_INSTANCE_LAYERS`. `^agc_driver_graphics$|vertex_point_size|^agc_shader_memory$`: on `main` 7f596df48d it reports `VkDeviceCreateInfo-pNext-pNext` ×6 and `VkGraphicsPipelineCreateInfo-pLibraries-06681` ×3. With this PR it reports the same two (×9 and ×30, mostly from the new `agc_driver_vertex_point_size`) and no other VUID. This older layer gives both on `main` for every device-creating test. - The same comparison under the LunarG SDK's 1.4.363 layer, the version Windows reviewers run: no validation messages on `main` 7f596df48d or with this PR. ### 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] Unblocks: none (Che - Escape also needs #6530) - [x] GPUs tested: NVIDIA GeForce RTX 4070 Ti, driver 595.99, Ubuntu 24.04; Intel Arrow Lake iGPU, Mesa 26.1.6 ANV, Debian 13; NVIDIA GeForce RTX 4070, driver 596.21, Windows 11 (screamm); AMD Radeon RX 7600, Mesa 25.2.8 RADV, Ubuntu 24.04 (tests, johnmaia) - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-16 00:35:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:35:04Z.

Code review location: core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp; line 140

@@ -124,6 +124,32 @@ std::uint32_t inactiveVertexPointSize(const QueueState& queue) {
     }
 }
 
+bool vertexPointList(const QueueState& queue) {
+    const auto stages = find(queue.context, 0x2d5);
+    const auto primitive = find(queue.userConfig, 0x242, RegisterBank::UserConfig);
+    return stages != queue.context.end() && primitive != queue.userConfig.end() && (stages->second & 0x24u) == 0 && primitive->second == 1u;
+}
+
+void decodePointSize(const QueueState& queue, State& result) {
+    const auto& cx = queue.context;
+    const auto size = read(cx, 0x280);
+    const auto limits = read(cx, 0x281);
+    const bool fromVertex = (result.paClVsOutCntl & (1u << 16u)) != 0;
+    Require(!fromVertex || (result.paClVsOutCntl & (1u << 21u)) != 0, "USE_VTX_POINT_SIZE without VS_OUT_MISC_VEC_ENA is unsupported");
+    Require(fromVertex || (size & 0xffffu) == size >> 16u, "points whose PA_SU_POINT_SIZE width and height differ are unsupported");
+    Require((limits & 0xffffu) <= limits >> 16u, "PA_SU_POINT_MINMAX with a minimum above its maximum is unsupported");

Could this reject a zero endpoint (or otherwise ensure the emitted value is positive)? With , a 0/0 limit makes write to ; without that bit, a zero writes 0 as well. Vulkan requires the value written to to be greater than zero (spec). only governs sizes greater than 1. If zero has a special AGC meaning, could you document the mapping and cover it in the test?

<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4289674667 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#discussion_r4289674667). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T00:35:04Z. **Code review location:** `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`; line 140 ~~~~diff @@ -124,6 +124,32 @@ std::uint32_t inactiveVertexPointSize(const QueueState& queue) { } } +bool vertexPointList(const QueueState& queue) { + const auto stages = find(queue.context, 0x2d5); + const auto primitive = find(queue.userConfig, 0x242, RegisterBank::UserConfig); + return stages != queue.context.end() && primitive != queue.userConfig.end() && (stages->second & 0x24u) == 0 && primitive->second == 1u; +} + +void decodePointSize(const QueueState& queue, State& result) { + const auto& cx = queue.context; + const auto size = read(cx, 0x280); + const auto limits = read(cx, 0x281); + const bool fromVertex = (result.paClVsOutCntl & (1u << 16u)) != 0; + Require(!fromVertex || (result.paClVsOutCntl & (1u << 21u)) != 0, "USE_VTX_POINT_SIZE without VS_OUT_MISC_VEC_ENA is unsupported"); + Require(fromVertex || (size & 0xffffu) == size >> 16u, "points whose PA_SU_POINT_SIZE width and height differ are unsupported"); + Require((limits & 0xffffu) <= limits >> 16u, "PA_SU_POINT_MINMAX with a minimum above its maximum is unsupported"); ~~~~ --- Could this reject a zero endpoint (or otherwise ensure the emitted value is positive)? With , a 0/0 limit makes write to ; without that bit, a zero writes 0 as well. Vulkan requires the value written to to be greater than zero ([spec](https://docs.vulkan.org/spec/latest/chapters/primsrast.html#primsrast-points)). only governs sizes greater than 1. If zero has a special AGC meaning, could you document the mapping and cover it in the test?
MarcZX10 commented 2026-10-16 00:35:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:35:11Z.

Code review location: core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp; line 140

@@ -124,6 +124,32 @@ std::uint32_t inactiveVertexPointSize(const QueueState& queue) {
     }
 }
 
+bool vertexPointList(const QueueState& queue) {
+    const auto stages = find(queue.context, 0x2d5);
+    const auto primitive = find(queue.userConfig, 0x242, RegisterBank::UserConfig);
+    return stages != queue.context.end() && primitive != queue.userConfig.end() && (stages->second & 0x24u) == 0 && primitive->second == 1u;
+}
+
+void decodePointSize(const QueueState& queue, State& result) {
+    const auto& cx = queue.context;
+    const auto size = read(cx, 0x280);
+    const auto limits = read(cx, 0x281);
+    const bool fromVertex = (result.paClVsOutCntl & (1u << 16u)) != 0;
+    Require(!fromVertex || (result.paClVsOutCntl & (1u << 21u)) != 0, "USE_VTX_POINT_SIZE without VS_OUT_MISC_VEC_ENA is unsupported");
+    Require(fromVertex || (size & 0xffffu) == size >> 16u, "points whose PA_SU_POINT_SIZE width and height differ are unsupported");
+    Require((limits & 0xffffu) <= limits >> 16u, "PA_SU_POINT_MINMAX with a minimum above its maximum is unsupported");

My previous inline comment was mangled by shell quoting; here is the intended review point. Could this reject a zero PA_SU_POINT_MINMAX endpoint, or otherwise ensure the emitted value is positive? With USE_VTX_POINT_SIZE, a 0/0 limit makes EmitAuxPositionExport write clamp(exportedSize, 0, 0) to PointSize; without that bit, a zero PA_SU_POINT_SIZE writes 0 as well. Vulkan requires the value written to PointSize to be greater than zero: https://docs.vulkan.org/spec/latest/chapters/primsrast.html#primsrast-points. largePoints only governs sizes greater than 1. If zero has a special AGC meaning, could you document the mapping and cover it in the test?

<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4289675278 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#discussion_r4289675278). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T00:35:11Z. **Code review location:** `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`; line 140 ~~~~diff @@ -124,6 +124,32 @@ std::uint32_t inactiveVertexPointSize(const QueueState& queue) { } } +bool vertexPointList(const QueueState& queue) { + const auto stages = find(queue.context, 0x2d5); + const auto primitive = find(queue.userConfig, 0x242, RegisterBank::UserConfig); + return stages != queue.context.end() && primitive != queue.userConfig.end() && (stages->second & 0x24u) == 0 && primitive->second == 1u; +} + +void decodePointSize(const QueueState& queue, State& result) { + const auto& cx = queue.context; + const auto size = read(cx, 0x280); + const auto limits = read(cx, 0x281); + const bool fromVertex = (result.paClVsOutCntl & (1u << 16u)) != 0; + Require(!fromVertex || (result.paClVsOutCntl & (1u << 21u)) != 0, "USE_VTX_POINT_SIZE without VS_OUT_MISC_VEC_ENA is unsupported"); + Require(fromVertex || (size & 0xffffu) == size >> 16u, "points whose PA_SU_POINT_SIZE width and height differ are unsupported"); + Require((limits & 0xffffu) <= limits >> 16u, "PA_SU_POINT_MINMAX with a minimum above its maximum is unsupported"); ~~~~ --- My previous inline comment was mangled by shell quoting; here is the intended review point. Could this reject a zero PA_SU_POINT_MINMAX endpoint, or otherwise ensure the emitted value is positive? With USE_VTX_POINT_SIZE, a 0/0 limit makes EmitAuxPositionExport write clamp(exportedSize, 0, 0) to PointSize; without that bit, a zero PA_SU_POINT_SIZE writes 0 as well. Vulkan requires the value written to PointSize to be greater than zero: https://docs.vulkan.org/spec/latest/chapters/primsrast.html#primsrast-points. largePoints only governs sizes greater than 1. If zero has a special AGC meaning, could you document the mapping and cover it in the test?
MarcZX10 commented 2026-10-16 00:40:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:40:00Z.


I checked the zero-size path again against the emitted SPIR-V. PA_SU_POINT_MINMAX=0 with USE_VTX_POINT_SIZE clamps the exported value to zero, and without that bit PA_SU_POINT_SIZE=0 initializes PointSize to zero. The implementation currently validates min <= max and relies on Vulkan to clamp oversized values, but does not ensure the written value is positive. Could zero be rejected or mapped to a positive value, with a test for each source path? The Vulkan PointSize requirement is documented here: https://docs.vulkan.org/refpages/latest/refpages/source/PointSize.html

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6205345205 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6205345205). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T00:40:00Z. --- I checked the zero-size path again against the emitted SPIR-V. `PA_SU_POINT_MINMAX=0` with `USE_VTX_POINT_SIZE` clamps the exported value to zero, and without that bit `PA_SU_POINT_SIZE=0` initializes `PointSize` to zero. The implementation currently validates min <= max and relies on Vulkan to clamp oversized values, but does not ensure the written value is positive. Could zero be rejected or mapped to a positive value, with a test for each source path? The Vulkan `PointSize` requirement is documented here: https://docs.vulkan.org/refpages/latest/refpages/source/PointSize.html
milescoviello commented 2026-10-16 00:41:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T00:41:53Z.

Code review location: core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp; line 140

@@ -124,6 +124,32 @@ std::uint32_t inactiveVertexPointSize(const QueueState& queue) {
     }
 }
 
+bool vertexPointList(const QueueState& queue) {
+    const auto stages = find(queue.context, 0x2d5);
+    const auto primitive = find(queue.userConfig, 0x242, RegisterBank::UserConfig);
+    return stages != queue.context.end() && primitive != queue.userConfig.end() && (stages->second & 0x24u) == 0 && primitive->second == 1u;
+}
+
+void decodePointSize(const QueueState& queue, State& result) {
+    const auto& cx = queue.context;
+    const auto size = read(cx, 0x280);
+    const auto limits = read(cx, 0x281);
+    const bool fromVertex = (result.paClVsOutCntl & (1u << 16u)) != 0;
+    Require(!fromVertex || (result.paClVsOutCntl & (1u << 21u)) != 0, "USE_VTX_POINT_SIZE without VS_OUT_MISC_VEC_ENA is unsupported");
+    Require(fromVertex || (size & 0xffffu) == size >> 16u, "points whose PA_SU_POINT_SIZE width and height differ are unsupported");
+    Require((limits & 0xffffu) <= limits >> 16u, "PA_SU_POINT_MINMAX with a minimum above its maximum is unsupported");

Thanks, you're right on both paths. Fixed in 869495776:

  • Without USE_VTX_POINT_SIZE: a PA_SU_POINT_SIZE of 0 throws (points of size 0 (PA_SU_POINT_SIZE 0) are unsupported).
  • With it: a PA_SU_POINT_MINMAX maximum of 0 throws. The clamp's lower bound is at least the smallest positive float, so an exported size of 0 or less is still written as a positive value. A zero minimum alone stays accepted because radeonsi programs it for multisampled and sprite points (util_get_min_point_size). Refusing it would block those draws. The emitter also refuses a non-positive size if the request ever carries one.

I don't know of a special AGC meaning for zero. A zero-radius point probably covers nothing on the console, so the floor draws the device's smallest point where the console likely draws none. That's in the debt entry as inferred.

Tests: agc_driver_graphics covers both refusals and checks that a zero register size with the bit set, a zero minimum, and a zero clamp without the bit still decode. agc_driver_vertex_point_size draws exported sizes 0 and -3 with a [0, 4] clamp and requires at most one pixel per point. NVIDIA draws one pixel for both, so the GPU case checks coverage and validity, not the floor's exact value. The area suite is unchanged: 468 of 469, with the known agc_driver_store_over_untracked failure.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4289711251 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#discussion_r4289711251). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-16T00:41:53Z. **Code review location:** `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`; line 140 ~~~~diff @@ -124,6 +124,32 @@ std::uint32_t inactiveVertexPointSize(const QueueState& queue) { } } +bool vertexPointList(const QueueState& queue) { + const auto stages = find(queue.context, 0x2d5); + const auto primitive = find(queue.userConfig, 0x242, RegisterBank::UserConfig); + return stages != queue.context.end() && primitive != queue.userConfig.end() && (stages->second & 0x24u) == 0 && primitive->second == 1u; +} + +void decodePointSize(const QueueState& queue, State& result) { + const auto& cx = queue.context; + const auto size = read(cx, 0x280); + const auto limits = read(cx, 0x281); + const bool fromVertex = (result.paClVsOutCntl & (1u << 16u)) != 0; + Require(!fromVertex || (result.paClVsOutCntl & (1u << 21u)) != 0, "USE_VTX_POINT_SIZE without VS_OUT_MISC_VEC_ENA is unsupported"); + Require(fromVertex || (size & 0xffffu) == size >> 16u, "points whose PA_SU_POINT_SIZE width and height differ are unsupported"); + Require((limits & 0xffffu) <= limits >> 16u, "PA_SU_POINT_MINMAX with a minimum above its maximum is unsupported"); ~~~~ --- Thanks, you're right on both paths. Fixed in 869495776: - **Without USE_VTX_POINT_SIZE:** a `PA_SU_POINT_SIZE` of 0 throws (`points of size 0 (PA_SU_POINT_SIZE 0) are unsupported`). - **With it:** a `PA_SU_POINT_MINMAX` maximum of 0 throws. The clamp's lower bound is at least the smallest positive float, so an exported size of 0 or less is still written as a positive value. A zero minimum alone stays accepted because radeonsi programs it for multisampled and sprite points (`util_get_min_point_size`). Refusing it would block those draws. The emitter also refuses a non-positive size if the request ever carries one. I don't know of a special AGC meaning for zero. A zero-radius point probably covers nothing on the console, so the floor draws the device's smallest point where the console likely draws none. That's in the debt entry as inferred. Tests: `agc_driver_graphics` covers both refusals and checks that a zero register size with the bit set, a zero minimum, and a zero clamp without the bit still decode. `agc_driver_vertex_point_size` draws exported sizes 0 and -3 with a [0, 4] clamp and requires at most one pixel per point. NVIDIA draws one pixel for both, so the GPU case checks coverage and validity, not the floor's exact value. The area suite is unchanged: 468 of 469, with the known `agc_driver_store_over_untracked` failure. AI-assisted: yes
MarcZX10 commented 2026-10-16 00:45:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:45:37Z.

Code review location: core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp; line 140

@@ -124,6 +124,32 @@ std::uint32_t inactiveVertexPointSize(const QueueState& queue) {
     }
 }
 
+bool vertexPointList(const QueueState& queue) {
+    const auto stages = find(queue.context, 0x2d5);
+    const auto primitive = find(queue.userConfig, 0x242, RegisterBank::UserConfig);
+    return stages != queue.context.end() && primitive != queue.userConfig.end() && (stages->second & 0x24u) == 0 && primitive->second == 1u;
+}
+
+void decodePointSize(const QueueState& queue, State& result) {
+    const auto& cx = queue.context;
+    const auto size = read(cx, 0x280);
+    const auto limits = read(cx, 0x281);
+    const bool fromVertex = (result.paClVsOutCntl & (1u << 16u)) != 0;
+    Require(!fromVertex || (result.paClVsOutCntl & (1u << 21u)) != 0, "USE_VTX_POINT_SIZE without VS_OUT_MISC_VEC_ENA is unsupported");
+    Require(fromVertex || (size & 0xffffu) == size >> 16u, "points whose PA_SU_POINT_SIZE width and height differ are unsupported");
+    Require((limits & 0xffffu) <= limits >> 16u, "PA_SU_POINT_MINMAX with a minimum above its maximum is unsupported");

Thanks for checking both sources and adding the validation plus regression coverage. The distinction for a zero minimum with a positive maximum makes sense, and the latest commit addresses the Vulkan requirement I flagged.

<!-- greyfinch-sync:boykopovar/AnyPS5:review-comment:4289733763 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#discussion_r4289733763). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T00:45:37Z. **Code review location:** `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`; line 140 ~~~~diff @@ -124,6 +124,32 @@ std::uint32_t inactiveVertexPointSize(const QueueState& queue) { } } +bool vertexPointList(const QueueState& queue) { + const auto stages = find(queue.context, 0x2d5); + const auto primitive = find(queue.userConfig, 0x242, RegisterBank::UserConfig); + return stages != queue.context.end() && primitive != queue.userConfig.end() && (stages->second & 0x24u) == 0 && primitive->second == 1u; +} + +void decodePointSize(const QueueState& queue, State& result) { + const auto& cx = queue.context; + const auto size = read(cx, 0x280); + const auto limits = read(cx, 0x281); + const bool fromVertex = (result.paClVsOutCntl & (1u << 16u)) != 0; + Require(!fromVertex || (result.paClVsOutCntl & (1u << 21u)) != 0, "USE_VTX_POINT_SIZE without VS_OUT_MISC_VEC_ENA is unsupported"); + Require(fromVertex || (size & 0xffffu) == size >> 16u, "points whose PA_SU_POINT_SIZE width and height differ are unsupported"); + Require((limits & 0xffffu) <= limits >> 16u, "PA_SU_POINT_MINMAX with a minimum above its maximum is unsupported"); ~~~~ --- Thanks for checking both sources and adding the validation plus regression coverage. The distinction for a zero minimum with a positive maximum makes sense, and the latest commit addresses the Vulkan requirement I flagged.
screamm commented 2026-10-16 10:49:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-16T10:49:20Z.


Cross-validation on Windows 11 Pro 26220, NVIDIA GeForce RTX 4070 (driver 596.21), WinLibs MinGW-w64 GCC 15.2. PR head 869495776 on main 5d9dcc42d (fast-forward, no conflicts).

  • Build: full build passes except agc_driver_gpu_indirect_arguments_misaligned_writer_ahead_tests (64 KiB alignment on MinGW), which fails the same way on main.
  • request_serializer, agc_driver_graphics, agc_driver_inactive_vertex_point_size, agc_driver_vertex_point_size, agc_driver_zero_position_vertex, --repeat until-fail:3: 3 of 3 each. 40 related agc_driver_ tests (vertex, draw, prepared, provoking vertex, layered vertex, NGG vertex) 3 of 3: no failures, 1 skipped.
  • Negative control: with SpirvModuleEmitter.cpp and ShaderInfoCollector.cpp from main (tests kept), agc_driver_vertex_point_size fails with AGC graphics: register size 4: a point is not a 4x4 square. Restored: it passes.
  • Non-GPU suite (-j6 --timeout 120, loaded host): 830 of 837 pass. 6 of the 7 failures are timeouts that pass serially (conventions_function_bodies*, and hardware_oracle_compare, which also times out on main). One real failure: agc_shader_memory fails with new requests did not use serialization version 30 (core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp:3052, requestPrefix(encoded, 8u) == "NVNQQR4AAAA="). It passes on main and fails in 0.6 s on this PR, so it is the version bump to 31, which that test was not updated for. Your ctest regex does not match it. #6470 and #6503 also take version 31, so it will need touching again by whichever lands second.
  • tools/check_conventions.py --base origin/main and git diff --check: pass.

OliSe Player PPSA01153 (02.001.000), presets trimmed to one preset, Square pressed once through scripted pad input after the menu renders, 150 s limit. As your description says, Che - Escape also needs #6530, so I built main + #6530 (1fd45dc99) as "before" and main + #6530 + #6639 as "after". Merging the two has one textual conflict, in Graphics/src/Pipeline.cpp (the mergedCoverage and vertexPoints Require lines are adjacent); I kept both lines. Stop line on main and on main + #6530: [gpu] driver failure: layer, viewport or auxiliary vertex exports is unsupported (register 0x207 = 0x01210000).

Build Che - Escape Ouboros (Metal Finish 2)
main 5d9dcc42d 1 run, stops at 13.6 s, the line above 1 run, stops at 9.5 s, the line above
this PR alone 1 run, stops at 9.0 s on AGC graphics: unsupported SPI_PS_INPUT_ENA/ADDR bit combination (ena 0x4002 addr 0x4002) (#6530's refusal) 1 run, reaches the 150 s limit
main + #6530 2 of 2 stop (36.6 s, 50.8 s), the line above 2 of 2 stop (75.7 s, 26.0 s), the line above
main + #6530 + this PR 2 of 2 reach the limit, no stop line; 1 more with APS5_NO_RESIDENT_TARGETS=1 also reaches it 2 of 2 reach the limit; 1 more with APS5_NO_RESIDENT_TARGETS=1 also reaches it

On the default path the visualiser composite is black here: after Square the frame is the menu at half brightness (frame-dump mean 17 to 18, max 140) for the whole run. With APS5_NO_RESIDENT_TARGETS=1 the visualiser renders (Che frame dumps reach mean 54 to 56 with 98 to 100 % non-zero pixels, and the screenshots show the tunnel with dotted streaks). I could not isolate the points from the rest of the preset in those images, so the correctness of the point size rests on agc_driver_vertex_point_size, not on the title. No module played (the download fails here and music/ is empty), so the visualiser had silent input.

Not checked: AMD and Intel GPUs, Linux, a console, a full build of the stacked trees (targeted builds only: libs and the PR, #6530 test targets), a run with a module playing.

Written with Claude Code assistance (validation by a subagent, reviewed in this session).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6213842347 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6213842347). Originally posted by [screamm](https://github.com/screamm) on 2026-10-16T10:49:20Z. --- Cross-validation on Windows 11 Pro 26220, NVIDIA GeForce RTX 4070 (driver 596.21), WinLibs MinGW-w64 GCC 15.2. PR head `869495776` on main `5d9dcc42d` (fast-forward, no conflicts). - Build: full build passes except `agc_driver_gpu_indirect_arguments_misaligned_writer_ahead_tests` (64 KiB alignment on MinGW), which fails the same way on main. - `request_serializer`, `agc_driver_graphics`, `agc_driver_inactive_vertex_point_size`, `agc_driver_vertex_point_size`, `agc_driver_zero_position_vertex`, `--repeat until-fail:3`: 3 of 3 each. 40 related `agc_driver_` tests (vertex, draw, prepared, provoking vertex, layered vertex, NGG vertex) 3 of 3: no failures, 1 skipped. - Negative control: with `SpirvModuleEmitter.cpp` and `ShaderInfoCollector.cpp` from main (tests kept), `agc_driver_vertex_point_size` fails with `AGC graphics: register size 4: a point is not a 4x4 square`. Restored: it passes. - Non-GPU suite (`-j6 --timeout 120`, loaded host): 830 of 837 pass. 6 of the 7 failures are timeouts that pass serially (`conventions_function_bodies*`, and `hardware_oracle_compare`, which also times out on main). **One real failure: `agc_shader_memory` fails with `new requests did not use serialization version 30`** (`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp:3052`, `requestPrefix(encoded, 8u) == "NVNQQR4AAAA="`). It passes on main and fails in 0.6 s on this PR, so it is the version bump to 31, which that test was not updated for. Your ctest regex does not match it. #6470 and #6503 also take version 31, so it will need touching again by whichever lands second. - `tools/check_conventions.py --base origin/main` and `git diff --check`: pass. OliSe Player PPSA01153 (02.001.000), `presets` trimmed to one preset, Square pressed once through scripted pad input after the menu renders, 150 s limit. As your description says, Che - Escape also needs #6530, so I built `main + #6530 (1fd45dc99)` as "before" and `main + #6530 + #6639` as "after". Merging the two has one textual conflict, in `Graphics/src/Pipeline.cpp` (the `mergedCoverage` and `vertexPoints` `Require` lines are adjacent); I kept both lines. Stop line on main and on main + #6530: `[gpu] driver failure: layer, viewport or auxiliary vertex exports is unsupported (register 0x207 = 0x01210000)`. | Build | Che - Escape | Ouboros (Metal Finish 2) | |---|---|---| | main `5d9dcc42d` | 1 run, stops at 13.6 s, the line above | 1 run, stops at 9.5 s, the line above | | this PR alone | 1 run, stops at 9.0 s on `AGC graphics: unsupported SPI_PS_INPUT_ENA/ADDR bit combination (ena 0x4002 addr 0x4002)` (#6530's refusal) | 1 run, reaches the 150 s limit | | main + #6530 | 2 of 2 stop (36.6 s, 50.8 s), the line above | 2 of 2 stop (75.7 s, 26.0 s), the line above | | main + #6530 + this PR | 2 of 2 reach the limit, no stop line; 1 more with `APS5_NO_RESIDENT_TARGETS=1` also reaches it | 2 of 2 reach the limit; 1 more with `APS5_NO_RESIDENT_TARGETS=1` also reaches it | On the default path the visualiser composite is black here: after Square the frame is the menu at half brightness (frame-dump mean 17 to 18, max 140) for the whole run. With `APS5_NO_RESIDENT_TARGETS=1` the visualiser renders (Che frame dumps reach mean 54 to 56 with 98 to 100 % non-zero pixels, and the screenshots show the tunnel with dotted streaks). I could not isolate the points from the rest of the preset in those images, so the correctness of the point size rests on `agc_driver_vertex_point_size`, not on the title. No module played (the download fails here and `music/` is empty), so the visualiser had silent input. Not checked: AMD and Intel GPUs, Linux, a console, a full build of the stacked trees (targeted builds only: libs and the PR, #6530 test targets), a run with a module playing. Written with Claude Code assistance (validation by a subagent, reviewed in this session).
milescoviello commented 2026-10-16 11:03:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T11:03:02Z.


Thanks for the Windows run and the title table. You're right about agc_shader_memory: the bump to version 31 left that test requiring the version 30 prefix, and it also used 31 as its unsupported version. My ctest regex didn't include it. f282d4d5c expects 31 and rejects 32. It passes 3 of 3 here, and the 496-test area run (now with ^agc_shader and bda) has only agc_driver_store_over_untracked failing, as on main. I rebased onto main 7dcfff559 (no conflicts) and added your results to the description.

Noted on #6470 and #6503: whichever of these lands second moves that check again.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6214083821 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6214083821). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-16T11:03:02Z. --- Thanks for the Windows run and the title table. You're right about `agc_shader_memory`: the bump to version 31 left that test requiring the version 30 prefix, and it also used 31 as its unsupported version. My ctest regex didn't include it. f282d4d5c expects 31 and rejects 32. It passes 3 of 3 here, and the 496-test area run (now with `^agc_shader` and `bda`) has only `agc_driver_store_over_untracked` failing, as on `main`. I rebased onto `main` 7dcfff559 (no conflicts) and added your results to the description. Noted on #6470 and #6503: whichever of these lands second moves that check again. AI-assisted: yes
johnmaia commented 2026-10-16 13:56:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-16T13:56:31Z.


AMD run with this head (3ddbd2138) merged onto main 82ddae75b: AMD Radeon RX 7600 (RDNA 3, RADV NAVI33, Mesa 25.2.8), Ubuntu 24.04, GCC 13.3, Release, full ctest -j4.

  • main: 1286 / 1287. With this PR: 1287 / 1288, the same single failure.
  • agc_driver_vertex_point_size passes.
  • The failure is agc_driver_graphics. It fails the same way on main (#6792, "VOP2 opcode is not implemented") and stops before the cases this PR adds to Graphics.cpp. With #6789 merged as well it passes, with this PR and without, so the new cases run and pass here.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217078146 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6217078146). Originally posted by [johnmaia](https://github.com/johnmaia) on 2026-10-16T13:56:31Z. --- AMD run with this head (3ddbd2138) merged onto `main` 82ddae75b: AMD Radeon RX 7600 (RDNA 3, RADV NAVI33, Mesa 25.2.8), Ubuntu 24.04, GCC 13.3, Release, full `ctest -j4`. - `main`: 1286 / 1287. With this PR: 1287 / 1288, the same single failure. - `agc_driver_vertex_point_size` passes. - The failure is `agc_driver_graphics`. It fails the same way on `main` (#6792, "VOP2 opcode is not implemented") and stops before the cases this PR adds to `Graphics.cpp`. With #6789 merged as well it passes, with this PR and without, so the new cases run and pass here. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-16 13:59:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T13:59:21Z.


Thanks @johnmaia, the AMD run is very useful, especially confirming that the new Graphics.cpp cases run once #6789 is in. I added it to the description.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217129591 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6217129591). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-16T13:59:21Z. --- Thanks @johnmaia, the AMD run is very useful, especially confirming that the new `Graphics.cpp` cases run once #6789 is in. I added it to the description. AI-assisted: yes
screamm commented 2026-10-17 10:07:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-17T10:07:47Z.


Rechecked on head ea05b7804, Windows 11 Pro 26220, RTX 4070 (596.21), WinLibs MinGW-w64 GCC 15.2, Release. Stacked as main 5f61879a9 + #6530 (faea7a221) + this PR + #6669 (8455a5cce). The only conflict is the same pair of adjacent Require lines in Pipeline.cpp; I kept both. Full build: no failures.

What changed since my run on 869495776:

  • agc_shader_memory passes now, 3 of 3. The version handling is consistent. The writer emits 33, and the reader accepts up to 33, reads the spanned-wave flag from 32 and the point tail from 33 (vertex stage only). ShaderMemory.cpp expects NVNQQSEAAAA= (33) and rejects NVNQQSIAAAA= (34), and RequestSerializerTests.cpp uses 33 and 34. No other hard-coded request version is left in the tree.
  • Negative control: with RequestSerializer.cpp set back to version 32 and the tests kept, agc_shader_memory fails with RequestSerializer: unexpected trailing data and request_serializer aborts. Restored, both pass.
  • request_serializer, agc_driver_vertex_point_size, agc_driver_graphics, agc_driver_inactive_vertex_point_size, agc_driver_zero_position_vertex, agc_pipeline_journal and agc_driver_pipeline_journal: 3 of 3 each. The new point-list journal case passes.
  • GPU pass ctest -j1 -R '^agc_driver_' on the stack: 484 of 487 pass and 2 are skipped. The one failure, agc_driver_f16_fma_denormal_modes (v_fma_f16 ... is 0x7fff, expected 0xfe00), fails the same way on plain main 5f61879a9 here. Non-GPU suite: 872 of 876 pass, 2 skipped as on main. The 2 load timeouts pass when run directly.
  • OliSe Player (PPSA01153), presets trimmed to Che - Escape, Square once, 120 s. Main (3b10c7ef0) stops 2 of 2, at 8.2 s and 30.7 s, on [gpu] driver failure: layer, viewport or auxiliary vertex exports is unsupported (register 0x207 = 0x01210000). The stack reaches the limit 2 of 2 (264 and 773 frames) with no driver failure. As before, the composite on the default path is black here.

Not checked: Ouboros this time, APS5_NO_RESIDENT_TARGETS=1, AMD/Intel, Linux.

Written with Claude Code assistance (validation by a subagent, reviewed in this session).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6232642681 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6232642681). Originally posted by [screamm](https://github.com/screamm) on 2026-10-17T10:07:47Z. --- Rechecked on head `ea05b7804`, Windows 11 Pro 26220, RTX 4070 (596.21), WinLibs MinGW-w64 GCC 15.2, Release. Stacked as main `5f61879a9` + #6530 (`faea7a221`) + this PR + #6669 (`8455a5cce`). The only conflict is the same pair of adjacent `Require` lines in `Pipeline.cpp`; I kept both. Full build: no failures. What changed since my run on `869495776`: - `agc_shader_memory` passes now, 3 of 3. The version handling is consistent. The writer emits 33, and the reader accepts up to 33, reads the spanned-wave flag from 32 and the point tail from 33 (vertex stage only). `ShaderMemory.cpp` expects `NVNQQSEAAAA=` (33) and rejects `NVNQQSIAAAA=` (34), and `RequestSerializerTests.cpp` uses 33 and 34. No other hard-coded request version is left in the tree. - Negative control: with `RequestSerializer.cpp` set back to version 32 and the tests kept, `agc_shader_memory` fails with `RequestSerializer: unexpected trailing data` and `request_serializer` aborts. Restored, both pass. - `request_serializer`, `agc_driver_vertex_point_size`, `agc_driver_graphics`, `agc_driver_inactive_vertex_point_size`, `agc_driver_zero_position_vertex`, `agc_pipeline_journal` and `agc_driver_pipeline_journal`: 3 of 3 each. The new point-list journal case passes. - GPU pass `ctest -j1 -R '^agc_driver_'` on the stack: 484 of 487 pass and 2 are skipped. The one failure, `agc_driver_f16_fma_denormal_modes` (`v_fma_f16 ... is 0x7fff, expected 0xfe00`), fails the same way on plain main `5f61879a9` here. Non-GPU suite: 872 of 876 pass, 2 skipped as on main. The 2 load timeouts pass when run directly. - OliSe Player (PPSA01153), presets trimmed to Che - Escape, Square once, 120 s. Main (`3b10c7ef0`) stops 2 of 2, at 8.2 s and 30.7 s, on `[gpu] driver failure: layer, viewport or auxiliary vertex exports is unsupported (register 0x207 = 0x01210000)`. The stack reaches the limit 2 of 2 (264 and 773 frames) with no driver failure. As before, the composite on the default path is black here. Not checked: Ouboros this time, `APS5_NO_RESIDENT_TARGETS=1`, AMD/Intel, Linux. Written with Claude Code assistance (validation by a subagent, reviewed in this session).
milescoviello commented 2026-10-17 10:13:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-17T10:13:48Z.


Thanks @screamm for rechecking the request-version change and the journal case on the current head. I added the run to the description.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6232694564 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6232694564). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-17T10:13:48Z. --- Thanks @screamm for rechecking the request-version change and the journal case on the current head. I added the run to the description. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-18 14:17:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-18T14:17:41Z.


Rebased onto main a62c724c38 (head 7ea3e6263d). The only conflicts were in EmitProgram, where #5859 added EmitBdaAnchors(state) on the line this PR's point size store sits next to. Both are kept, with the anchors first and then the store (the version with the clamped size from the second commit). main still writes request version 32, so this PR's version 33 is unchanged. Built and ran the 12 tests matching point|^agc_driver_graphics|pipeline_journal|request_serializer|agc_shader_replay, including agc_driver_vertex_point_size: all pass.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6250973109 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6250973109). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-18T14:17:41Z. --- Rebased onto `main` a62c724c38 (head 7ea3e6263d). The only conflicts were in `EmitProgram`, where #5859 added `EmitBdaAnchors(state)` on the line this PR's point size store sits next to. Both are kept, with the anchors first and then the store (the version with the clamped size from the second commit). `main` still writes request version 32, so this PR's version 33 is unchanged. Built and ran the 12 tests matching `point|^agc_driver_graphics|pipeline_journal|request_serializer|agc_shader_replay`, including `agc_driver_vertex_point_size`: all pass. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 02:56:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T02:56:37Z.


Rebased onto main 7bc7905978 (head 7944d73962). main took request version 34 for its pixel fields, so the point fields move to version 35, and the tests now expect 35 and reject 36. #6679 also takes 35, so whichever of the two lands second moves to 36. The other conflicts were next to main's new deferral path in ShaderRegistry.cpp and PixelSampleLocations in State.cpp; both sides are kept. The AGC, shader, request, journal and point set passes 610 of 611 (609 of 610 on main alone, with the same agc_driver_bda_device failure, #7584), and the point, serializer and journal tests pass 3 of 3.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258661874 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6258661874). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T02:56:37Z. --- Rebased onto `main` 7bc7905978 (head 7944d73962). `main` took request version 34 for its pixel fields, so the point fields move to version 35, and the tests now expect 35 and reject 36. #6679 also takes 35, so whichever of the two lands second moves to 36. The other conflicts were next to `main`'s new deferral path in `ShaderRegistry.cpp` and `PixelSampleLocations` in `State.cpp`; both sides are kept. The AGC, shader, request, journal and point set passes 610 of 611 (609 of 610 on `main` alone, with the same `agc_driver_bda_device` failure, #7584), and the point, serializer and journal tests pass 3 of 3. AI-assisted: yes (Claude Code)
jotitadev commented 2026-10-19 03:22:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-19T03:22:49Z.

Review: COMMENTED


Apple GPU / MoltenVK run. agc_driver_vertex_point_size runs and passes on Metal, fails without the fix, and the full ^agc suite is unchanged.

Machine: Apple M2 Max, macOS 27.2, x86-64 build under Rosetta. Head 7ea3e6263, PR diff applied cleanly. The current head 7944d7396 is the rebase onto 7bc7905978; its only change to the PR's own lines is the request version, 33 to 35. That version needs main's version 34, which this tree doesn't have, so I didn't re-run it. Drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0) and MoltenVK main + SPIRV-Cross #2704.

Tested: the tree is main a373e85e5 + mugurc's macOS series (ci/macos-series-2, includes ImportWatched) + the PRs needed to build on macOS (#6667, #6668, #7524, #6969, and two files of #7332), not plain main (it doesn't build on macOS yet). That tree still writes request version 32, so 7ea3e6263's version 33 applies as is. #6557 and #6636 were stacked in the same build (no conflicts). Base on that tree: 40 ^agc failures with MoltenVK 1.4.2 and 26 with MoltenVK main + #2704, the same known failures in every run below unless noted.

  • agc_driver_vertex_point_size, agc_driver_inactive_vertex_point_size, agc_driver_zero_position_vertex, agc_driver_graphics, request_serializer, agc_shader_memory, agc_driver_pipeline_journal and agc_pipeline_journal pass 3 of 3 on both drivers. Metal draws every case as an exact square, and the exported sizes 0 and -3 cover at most one pixel.
  • Without the fix (SpirvModuleEmitter.cpp and ShaderInfoCollector.cpp back to the base, tests kept), agc_driver_vertex_point_size fails on both drivers with register size 4: a point is not a 4x4 square.
  • Full ^agc suite with the stack: the base failures on each driver, plus agc_driver_address_draw_reuse from #6636 (reported there; it fails the same way with #6636 alone).

GPUs tested: Apple M2 Max (MoltenVK 1.4.2; MoltenVK main + SPIRV-Cross #2704)

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5566570587 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#pullrequestreview-5566570587). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-19T03:22:49Z. **Review:** COMMENTED --- <!-- head: 7944d7396 (validated 7ea3e6263) --> Apple GPU / MoltenVK run. `agc_driver_vertex_point_size` runs and passes on Metal, fails without the fix, and the full `^agc` suite is unchanged. Machine: Apple M2 Max, macOS 27.2, x86-64 build under Rosetta. Head 7ea3e6263, PR diff applied cleanly. The current head 7944d7396 is the rebase onto 7bc7905978; its only change to the PR's own lines is the request version, 33 to 35. That version needs main's version 34, which this tree doesn't have, so I didn't re-run it. Drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0) and MoltenVK main + SPIRV-Cross #2704. **Tested:** the tree is `main` a373e85e5 + mugurc's macOS series (`ci/macos-series-2`, includes ImportWatched) + the PRs needed to build on macOS (#6667, #6668, #7524, #6969, and two files of #7332), not plain `main` (it doesn't build on macOS yet). That tree still writes request version 32, so 7ea3e6263's version 33 applies as is. #6557 and #6636 were stacked in the same build (no conflicts). Base on that tree: 40 `^agc` failures with MoltenVK 1.4.2 and 26 with MoltenVK main + #2704, the same known failures in every run below unless noted. - `agc_driver_vertex_point_size`, `agc_driver_inactive_vertex_point_size`, `agc_driver_zero_position_vertex`, `agc_driver_graphics`, `request_serializer`, `agc_shader_memory`, `agc_driver_pipeline_journal` and `agc_pipeline_journal` pass 3 of 3 on both drivers. Metal draws every case as an exact square, and the exported sizes 0 and -3 cover at most one pixel. - Without the fix (`SpirvModuleEmitter.cpp` and `ShaderInfoCollector.cpp` back to the base, tests kept), `agc_driver_vertex_point_size` fails on both drivers with `register size 4: a point is not a 4x4 square`. - Full `^agc` suite with the stack: the base failures on each driver, plus `agc_driver_address_draw_reuse` from #6636 (reported there; it fails the same way with #6636 alone). GPUs tested: Apple M2 Max (MoltenVK 1.4.2; MoltenVK main + SPIRV-Cross #2704) Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
milescoviello commented 2026-10-19 06:17:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T06:17:31Z.


@jotitadev thanks for the Metal runs on both MoltenVK builds, and for the control without the fix. I've added them to the description.

main has moved again since: #4650 took request version 35 and #6503 took 36. I've rebased this PR onto main 9817d53cc9 locally:

  • the point fields now come with version 37, after #6503's flush-to-zero flag;
  • the journal format becomes 5, since main's merged coverage and depth remap already use 4;
  • the vertex stage keeps main's depth remap mode next to the point size.

The build and test set are running now. I'll push when they pass. The PR's own lines change only in the version number, so your 7ea3e6263 run still covers the point drawing itself.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6260978434 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6260978434). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T06:17:31Z. --- @jotitadev thanks for the Metal runs on both MoltenVK builds, and for the control without the fix. I've added them to the description. `main` has moved again since: #4650 took request version 35 and #6503 took 36. I've rebased this PR onto `main` 9817d53cc9 locally: - the point fields now come with version 37, after #6503's flush-to-zero flag; - the journal format becomes 5, since `main`'s merged coverage and depth remap already use 4; - the vertex stage keeps `main`'s depth remap mode next to the point size. The build and test set are running now. I'll push when they pass. The PR's own lines change only in the version number, so your 7ea3e6263 run still covers the point drawing itself. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 07:03:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T07:03:21Z.


Pushed the rebase, head 24d46893d6 on main 7f596df48d; it merges with 6b8228b2bf cleanly.

  • The point fields are now at request version 37, after #6503's flush-to-zero flag. #4650 took 35 and #6503 took 36.
  • The journal format becomes 5.
  • #4650's depth remap layout check skips the 13-byte point tail.
  • #6529's quad-list restart rule sits next to the point-list export mask.

On 9817d53cc9 the full set passed 616 of 617, against 615 of 616 on main alone; the one failure on both is agc_driver_bda_device (#7584). On this head, the 15 point, serializer, journal, shader memory, graphics, quad and primitive tests pass 3 of 3.

#6679 and #6801 also write 37, so whichever of the three lands first keeps it, and the others move to 38 and 39.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6261636612 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6261636612). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T07:03:21Z. --- Pushed the rebase, head 24d46893d6 on `main` 7f596df48d; it merges with 6b8228b2bf cleanly. - The point fields are now at request version 37, after #6503's flush-to-zero flag. #4650 took 35 and #6503 took 36. - The journal format becomes 5. - #4650's depth remap layout check skips the 13-byte point tail. - #6529's quad-list restart rule sits next to the point-list export mask. On 9817d53cc9 the full set passed 616 of 617, against 615 of 616 on `main` alone; the one failure on both is `agc_driver_bda_device` (#7584). On this head, the 15 point, serializer, journal, shader memory, graphics, quad and primitive tests pass 3 of 3. #6679 and #6801 also write 37, so whichever of the three lands first keeps it, and the others move to 38 and 39. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 16:25:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T16:25:55Z.


Rebased onto main 32004dfa55 (01119658d8). main took request version 37 for the stencil operation value export, so the point fields now come with 38, and the tests expect 38 and reject 39. Both sides had changed the same line to 37, so GitHub showed no conflict, but a v37 request from main would have been read with a point tail it doesn't have. 636 of 636 broad-set tests pass, the serializer, point and journal tests pass 3 of 3, and the 1.4.363 validation layer reports nothing on either side. As SleglJan laid out on #6679, #6679, #6941 and this PR now all write 38. Whichever lands first keeps it.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6271967207 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6271967207). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T16:25:55Z. --- Rebased onto `main` 32004dfa55 (01119658d8). `main` took request version 37 for the stencil operation value export, so the point fields now come with 38, and the tests expect 38 and reject 39. Both sides had changed the same line to 37, so GitHub showed no conflict, but a v37 request from `main` would have been read with a point tail it doesn't have. 636 of 636 broad-set tests pass, the serializer, point and journal tests pass 3 of 3, and the 1.4.363 validation layer reports nothing on either side. As SleglJan laid out on #6679, #6679, #6941 and this PR now all write 38. Whichever lands first keeps it. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 22:36:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T22:36:22Z.


Rebased onto main 3aa4448ed3 (a2554533a6). #6941 merged with request version 38 for its mesh barycentric layout, so the point fields move to 39, the tests expect 39 and reject 40. The only other conflict was neighbouring Module fields in ShaderValidation.cpp, and both sets are kept. Serializer, shader-memory, point and graphics tests pass, 10 of 10. The validation layer gives no messages on either side. Details are in the description.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6278883791 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6278883791). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T22:36:22Z. --- Rebased onto `main` 3aa4448ed3 (a2554533a6). #6941 merged with request version 38 for its mesh barycentric layout, so the point fields move to 39, the tests expect 39 and reject 40. The only other conflict was neighbouring `Module` fields in `ShaderValidation.cpp`, and both sets are kept. Serializer, shader-memory, point and graphics tests pass, 10 of 10. The validation layer gives no messages on either side. Details are in the description. AI-assisted: yes (Claude Code)
JJenkx commented 2026-10-20 15:28:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-20T15:28:14Z.


The next request-format collision is now present on main d073fe6a1da82441d33f4d3da72cc5f7d3496259: 8b8219dcef writes TessellationConfiguration::mergedHull in version 39, with its read gate at version >= 39u. This PR still writes its vertex point tail as 39 at head a2554533a6.

For the next rebase, the point tail needs version 40 (or the next free version at landing): update the writer, maximum accepted version and point-tail read gate together, while preserving main's merged-hull gate at 39. Merely changing the expected test version would misread old requests.

I prepared and locally tested that compatibility in the #6801 integration. The regression checks both mergedHull values in version 40 with point state, then removes the 13-byte point tail and changes the header to version 39 to verify mergedHull survives and point defaults are retained. Legacy vertex requests 32–39 also deserialize. This is local integration evidence, not a test of a refreshed #6639 head.

#6801 remains on your exact published dependency head, per the review request to avoid alternate copies of your commits. Once this dependency is refreshed, I can restack its geometry-only commits on the new head. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6294525754 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6294525754). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-20T15:28:14Z. --- The next request-format collision is now present on main `d073fe6a1da82441d33f4d3da72cc5f7d3496259`: `8b8219dcef` writes `TessellationConfiguration::mergedHull` in version 39, with its read gate at `version >= 39u`. This PR still writes its vertex point tail as 39 at head `a2554533a6`. For the next rebase, the point tail needs version 40 (or the next free version at landing): update the writer, maximum accepted version and point-tail read gate together, while preserving main's merged-hull gate at 39. Merely changing the expected test version would misread old requests. I prepared and locally tested that compatibility in the #6801 integration. The regression checks both mergedHull values in version 40 with point state, then removes the 13-byte point tail and changes the header to version 39 to verify mergedHull survives and point defaults are retained. Legacy vertex requests 32–39 also deserialize. This is local integration evidence, not a test of a refreshed #6639 head. #6801 remains on your exact published dependency head, per the review request to avoid alternate copies of your commits. Once this dependency is refreshed, I can restack its geometry-only commits on the new head. AI-assisted: yes.
milescoviello commented 2026-10-20 15:42:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-20T15:42:16Z.


Thanks @JJenkx. Done in 2134e93a27, rebased onto main 636aa09cb1.

  • The point fields now come with version 40. The writer writes 40, the maximum accepted is 40, and the point tail is read if (version >= 40u). main's merged hull gate stays at 39.
  • I added your check to request_serializer. A version 40 request with either merged hull value and point state round-trips. Cut back to version 39 by dropping the 13-byte point tail, it keeps the merged hull flag and reads the point fields as defaults.
  • agc_shader_memory's merged hull test from #6679 assumed the flag sits 52 bytes from the end. With the point tail after it, the test now drops the tail before it checks the older versions.

^(agc_|shader_|request_): 835 of 835 pass. This is ready for your #6801 restack.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6294834593 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6294834593). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-20T15:42:16Z. --- Thanks @JJenkx. Done in 2134e93a27, rebased onto `main` 636aa09cb1. - The point fields now come with version 40. The writer writes 40, the maximum accepted is 40, and the point tail is read `if (version >= 40u)`. `main`'s merged hull gate stays at 39. - I added your check to `request_serializer`. A version 40 request with either merged hull value and point state round-trips. Cut back to version 39 by dropping the 13-byte point tail, it keeps the merged hull flag and reads the point fields as defaults. - `agc_shader_memory`'s merged hull test from #6679 assumed the flag sits 52 bytes from the end. With the point tail after it, the test now drops the tail before it checks the older versions. `^(agc_|shader_|request_)`: 835 of 835 pass. This is ready for your #6801 restack. AI-assisted: yes (Claude Code)
JJenkx commented 2026-10-20 20:45:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-20T20:45:59Z.


Could you refresh this branch onto current main 26740077bdbf17a604fd1c681e0465c75a85de91 (or newer)? The dependency itself merges cleanly in a local git merge-tree check, so I am not requesting a behavior change here.

Merged #6611 moved mesh validation out of BuildShaderStageInputInfo into _validateMesh, which conflicts with #6801’s geometry-point change. I have prepared the geometry-side resolution: retain the point-list assignment in the builder and allow primitive size 1 in the new validator. Its focused candidate checks pass; the matched current-main checks are still running.

To preserve the reviewer-requested stack on your exact published commits, I need the refreshed dependency head before restacking #6801’s own commits. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6301102334 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6301102334). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-20T20:45:59Z. --- Could you refresh this branch onto current main `26740077bdbf17a604fd1c681e0465c75a85de91` (or newer)? The dependency itself merges cleanly in a local `git merge-tree` check, so I am not requesting a behavior change here. Merged #6611 moved mesh validation out of `BuildShaderStageInputInfo` into `_validateMesh`, which conflicts with #6801’s geometry-point change. I have prepared the geometry-side resolution: retain the point-list assignment in the builder and allow primitive size 1 in the new validator. Its focused candidate checks pass; the matched current-main checks are still running. To preserve the reviewer-requested stack on your exact published commits, I need the refreshed dependency head before restacking #6801’s own commits. AI-assisted: yes.
milescoviello commented 2026-10-20 20:56:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-20T20:56:14Z.


@JJenkx done. #6639 is now rebased onto main c6145997ef, with the same three commits and no conflicts; the new head is b76b55c6ea. On it, ctest -R '^(agc_|shader_|request_)' passes 842 of 843 (the usual three skip themselves; the one failure is agc_driver_lookup_log_fits_build, the load-sensitive test #8601 fixes, which this PR doesn't touch), and the point, serializer, journal and graphics tests pass 3 of 3. The branch is milescoviello:feat/vertex-point-lists, ready for #6801 to restack on.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6301297369 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6301297369). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-20T20:56:14Z. --- @JJenkx done. #6639 is now rebased onto `main` c6145997ef, with the same three commits and no conflicts; the new head is b76b55c6ea. On it, `ctest -R '^(agc_|shader_|request_)'` passes 842 of 843 (the usual three skip themselves; the one failure is `agc_driver_lookup_log_fits_build`, the load-sensitive test #8601 fixes, which this PR doesn't touch), and the point, serializer, journal and graphics tests pass 3 of 3. The branch is `milescoviello:feat/vertex-point-lists`, ready for #6801 to restack on. AI-assisted: yes (Claude Code)
oneandonlydean commented 2026-10-20 21:34:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T21:34:49Z.


@milescoviello thanks for the refresh. One thing got lost in the rebase: main has since moved PipelineJournal FileFormat to 5 (6bfb4c5a63), and this branch now also writes 5 while it still changes the journal record layout (the vertex point-list fields). Journals written by main would then be read with the new layout. Could you bump FileFormat to the next free number (6 on current main)? Several open PRs touch this constant, so whichever merges later will need to take the next number again at that point.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6302017857 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6302017857). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T21:34:49Z. --- @milescoviello thanks for the refresh. One thing got lost in the rebase: main has since moved `PipelineJournal` `FileFormat` to 5 (6bfb4c5a63d), and this branch now also writes 5 while it still changes the journal record layout (the vertex point-list fields). Journals written by main would then be read with the new layout. Could you bump `FileFormat` to the next free number (6 on current main)? Several open PRs touch this constant, so whichever merges later will need to take the next number again at that point.
milescoviello commented 2026-10-20 21:42:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-20T21:42:34Z.


Thanks @oneandonlydean, you're right. The rebase merged silently because main's #5656 had set FileFormat to the same value as this branch's own 4 → 5 bump. That left the branch's diff with no format change while it still changes the record layout.

Fixed in 0448e86f93: the journal commit now sets FileFormat to 6, and its message says so (fix(agc): journal a vertex point list and its point sizes, now 663ea91bdb). The two commits after it are unchanged, and the diff against the previous head (b76b55c6ea) is only that line. On the new head, the journal and graphics tests (agc_driver_pipeline_journal, savedata_memory_journal, agc_driver_graphics and the other journal cases, 5 in all) pass 3 of 3 on freshly built binaries.

#8365 also takes 6 on its current head. Whichever of the two merges second will take 7 when I rebase it.

@JJenkx, a correction to my last note: this branch has six commits, not three. The new head for #6801 to restack on is 0448e86f93.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6302214394 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6302214394). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-20T21:42:34Z. --- Thanks @oneandonlydean, you're right. The rebase merged silently because main's #5656 had set `FileFormat` to the same value as this branch's own 4 → 5 bump. That left the branch's diff with no format change while it still changes the record layout. Fixed in 0448e86f93: the journal commit now sets `FileFormat` to 6, and its message says so (`fix(agc): journal a vertex point list and its point sizes`, now 663ea91bdb). The two commits after it are unchanged, and the diff against the previous head (b76b55c6ea) is only that line. On the new head, the journal and graphics tests (`agc_driver_pipeline_journal`, `savedata_memory_journal`, `agc_driver_graphics` and the other journal cases, 5 in all) pass 3 of 3 on freshly built binaries. #8365 also takes 6 on its current head. Whichever of the two merges second will take 7 when I rebase it. @JJenkx, a correction to my last note: this branch has six commits, not three. The new head for #6801 to restack on is 0448e86f93. AI-assisted: yes (Claude Code)
JJenkx commented 2026-10-21 00:35:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T00:35:44Z.


Thanks for the journal-format correction. Before I restack #6801, current main 57fdffd915fa6 has merged #8697, which writes request serialization version 41 and reads float32DenormPreserve after float32FlushToZero for versions >=41. Your current head 0448e86f93 still writes/maxes at 40 and reads vertex point fields for versions >=40. A main-written v41 vertex request would therefore be interpreted as point data when those readers are combined without renumbering.

Could you rebase #6639 and give its point fields the next available request version (42 on this main), retaining the v41 denorm field before the new point fields and covering legacy v39 and main v41 requests? #8564 also currently uses 40, so the next version needs checking again when landing. I will then replay only #6801's eight commits onto your exact updated head and rerun the matched focused tests.

This is source/merge inspection, not a runtime test. AI-assisted: yes (Codex, with Claude research).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6305021308 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6305021308). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-21T00:35:44Z. --- Thanks for the journal-format correction. Before I restack #6801, current main `57fdffd915fa6` has merged #8697, which writes request serialization version 41 and reads `float32DenormPreserve` after `float32FlushToZero` for versions >=41. Your current head `0448e86f93` still writes/maxes at 40 and reads vertex point fields for versions >=40. A main-written v41 vertex request would therefore be interpreted as point data when those readers are combined without renumbering. Could you rebase #6639 and give its point fields the next available request version (42 on this main), retaining the v41 denorm field before the new point fields and covering legacy v39 and main v41 requests? #8564 also currently uses 40, so the next version needs checking again when landing. I will then replay only #6801's eight commits onto your exact updated head and rerun the matched focused tests. This is source/merge inspection, not a runtime test. AI-assisted: yes (Codex, with Claude research).
milescoviello commented 2026-10-21 00:50:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T00:50:06Z.


@JJenkx done. #6639 is rebased onto main 57fdffd915, and the new head is a31abee3a7, with the same six commits.

Serialization, as you asked:

  • New requests write version 42 and versions up to 42 are accepted, so 43 is rejected.
  • The point fields are read if (version >= 42u), after #8697's version 41 float32DenormPreserve flag, which keeps its place.
  • A version 41 vertex request from main has no point tail and reads with default point state.

Tests:

  • The request_serializer case you suggested earlier now round-trips a version 42 request with merged hull and point state. It then cuts the 13-byte tail and sets version 41, and the point fields read as defaults while merged hull survives. Last, it drops the denormal flag and sets version 39, with the same result. main's version 40 check for the denormal flag stays.
  • agc_shader_memory expects 42 for new requests, rejects 43, and drops the point tail and the denormal byte before checking older versions.

Two commit messages changed with the number: fix(shader): move the vertex point fields to request version 42 and test(shader): check version 39, 41 and 42 requests with merged hull and point state. The pipeline journal format stays at 6 (main has 5).

On this head (Linux, RTX 4070 Ti, NVIDIA 595.99.02, GCC 13.3), ctest -R '^(agc_|shader_|request_)' passes 853 of 853. request_serializer, agc_shader_memory, agc_driver_pipeline_journal and agc_driver_graphics pass 3 of 3.

On #8564: whichever of it and this PR lands second will take the next free number again.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6305212003 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6305212003). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T00:50:06Z. --- @JJenkx done. #6639 is rebased onto `main` 57fdffd915, and the new head is a31abee3a7, with the same six commits. Serialization, as you asked: - New requests write version 42 and versions up to 42 are accepted, so 43 is rejected. - The point fields are read `if (version >= 42u)`, after #8697's version 41 `float32DenormPreserve` flag, which keeps its place. - A version 41 vertex request from `main` has no point tail and reads with default point state. Tests: - The `request_serializer` case you suggested earlier now round-trips a version 42 request with merged hull and point state. It then cuts the 13-byte tail and sets version 41, and the point fields read as defaults while merged hull survives. Last, it drops the denormal flag and sets version 39, with the same result. `main`'s version 40 check for the denormal flag stays. - `agc_shader_memory` expects 42 for new requests, rejects 43, and drops the point tail and the denormal byte before checking older versions. Two commit messages changed with the number: `fix(shader): move the vertex point fields to request version 42` and `test(shader): check version 39, 41 and 42 requests with merged hull and point state`. The pipeline journal format stays at 6 (`main` has 5). On this head (Linux, RTX 4070 Ti, NVIDIA 595.99.02, GCC 13.3), `ctest -R '^(agc_|shader_|request_)'` passes 853 of 853. `request_serializer`, `agc_shader_memory`, `agc_driver_pipeline_journal` and `agc_driver_graphics` pass 3 of 3. On #8564: whichever of it and this PR lands second will take the next free number again. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-21 10:30:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T10:30:15Z.


@JJenkx heads-up for #6801: #6639 is rebased onto main b6fe513b9a. The new head is fb7eea88b0, still six commits.

main's #6683 took request version 42 for the pixel sample order, so the point fields move to 43, after it:

  • New requests write 43, the point tail is read if (version >= 43u), and 44 is rejected. agc_shader_memory's base64 prefixes follow.
  • The merged hull case now walks 43 → 42 (no point tail) → 41 (no sample order) → 39.
  • The journal format stays 6 (main has 5).

request_serializer, agc_shader_memory, agc_driver_pipeline_journal, agc_driver_graphics and both point-size tests pass 3 of 3. ^agc_|^request_serializer$|^shader passes 865 of 868. The three failures are #6683's new sample-order tests, which fail the same way on main b6fe513b9a on this RTX 4070 Ti.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6313786404 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6313786404). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T10:30:15Z. --- @JJenkx heads-up for #6801: #6639 is rebased onto `main` b6fe513b9a. The new head is `fb7eea88b0`, still six commits. `main`'s #6683 took request version 42 for the pixel sample order, so the point fields move to 43, after it: - New requests write 43, the point tail is read `if (version >= 43u)`, and 44 is rejected. `agc_shader_memory`'s base64 prefixes follow. - The merged hull case now walks 43 → 42 (no point tail) → 41 (no sample order) → 39. - The journal format stays 6 (`main` has 5). `request_serializer`, `agc_shader_memory`, `agc_driver_pipeline_journal`, `agc_driver_graphics` and both point-size tests pass 3 of 3. `^agc_|^request_serializer$|^shader` passes 865 of 868. The three failures are #6683's new sample-order tests, which fail the same way on `main` b6fe513b9a on this RTX 4070 Ti. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-21 11:03:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T11:03:20Z.


@JJenkx another restack note for #6801: #7869 merged and took journal format 6. So #6639 is rebased again, onto main 275e896797. The new head is 3ccf38feef, still six commits.

  • The journal format is now 7.
  • sizeof(State) stays 800 with #7869's polygonMode.
  • The request version stays 43.

The focused 8 tests pass 2 of 2.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6314357324 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6314357324). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T11:03:20Z. --- @JJenkx another restack note for #6801: #7869 merged and took journal format 6. So #6639 is rebased again, onto `main` 275e896797. The new head is `3ccf38feef`, still six commits. - The journal format is now 7. - `sizeof(State)` stays 800 with #7869's `polygonMode`. - The request version stays 43. The focused 8 tests pass 2 of 2. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-21 13:32:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T13:32:49Z.


Rebased once more, onto main 74bdc3a3a7, after #8856 (point-list output of NGG geometry programs) and #7911 (RELEASE_MEM of the system counter). The new head is 856256407b, six commits.

  • The only conflicts were in the debt file. #7911's new entry and #6639's two entries are all kept.
  • #8856's geometry point lists and this PR's vertex-path point lists merged without a text conflict in SpirvModuleEmitter.cpp.

The 17 tests matching the serializer, journal, point-size, point and geometry-output names pass 2 of 2. The formats are unchanged: journal 7, request version 43, sizeof(State) 800.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6317373880 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6639#issuecomment-6317373880). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T13:32:49Z. --- Rebased once more, onto `main` 74bdc3a3a7, after #8856 (point-list output of NGG geometry programs) and #7911 (RELEASE_MEM of the system counter). The new head is `856256407b`, six commits. - The only conflicts were in the debt file. #7911's new entry and #6639's two entries are all kept. - #8856's geometry point lists and this PR's vertex-path point lists merged without a text conflict in `SpirvModuleEmitter.cpp`. The 17 tests matching the serializer, journal, point-size, point and geometry-output names pass 2 of 2. The formats are unchanged: journal 7, request version 43, `sizeof(State)` 800. AI-assisted: yes (Claude Code)

Pull request closed

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!6639
No description provided.