feat(agc): draw point lists on the vertex path with their point size #6639
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6639"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by 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
main19 s in:The draw is a point list (
VGT_PRIMITIVE_TYPE1) on the vertex path (VGT_SHADER_STAGES_EN0x2012010).PA_CL_VS_OUT_CNTL0x01210000 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.mainaccepts 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 onmain.How
PA_SU_POINT_SIZEandPA_SU_POINT_MINMAXare 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.PointSize. It starts as thePA_SU_POINT_SIZEheight. When USE_VTX_POINT_SIZE is set, the misc export's X replaces it, clamped toPA_SU_POINT_MINMAX. The recompiler already mapped that component togl_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 onmain), and into the cache key, the draw register key and the draw lookup. Shader validation accepts aPointSizeoutput for these draws.largePointsis enabled when available, and a point draw whose size can differ from one pixel requires it.Vulkan needs a
PointSizeabove 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_CNTLPT_SPRITE_TEX or PT_SPRITE_TEX_ATTR1 whileSPI_INTERP_CONTROL_0.PNT_SPRITE_ENAis set). Nothing onmainchecks 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
pointSizeRangeare 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). Withmain'sSpirvModuleEmitter.cppandShaderInfoCollector.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 onmain.request_serializer: the upgrade fixtures now expect version 37 and the new tail, and a point request round-trips and rejects a truncated tail.agc_driver_inactive_vertex_point_sizeandagc_driver_zero_position_vertexpass 3 of 3.maineb901bcf4(10-16, with #6784). #5884 had taken request version 31, so the point fields moved to 32 (3069ed85c):agc_shader_memoryexpects 32 for new requests and rejects 33. Pipeline creation and SPIR-V validation read the point state, so the pipeline journal now carriesvertexPointsand the three sizes, theStateguard names its new size and the journal format becomes 4 (3ddbd2138). A point-list recipe must decode with its sizes inagc_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 soagc_driver_graphicsreaches this PR's cases): 501 pass.agc_driver_store_over_untrackedfails the same way onmain; #6385 addresses it. My earlier regex left outagc_shader_memory, which this PR had broken; screamm found it.main1b1f8483ca(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_memoryexpects 33 for new requests and rejects 34, and therequest_serializerfixtures append the spanned-wave byte before the point tail.agc_driver_vertex_point_size,request_serializerandagc_driver_graphicspass 3 of 3. Of the 898 area tests (the regex above plus^guest_|libc), all pass exceptmain'sagc_driver_store_over_untrackedandguest_kernel_fcntl; the latter aborted once underctest -j4and passes on its own.main895f47f4ee(0116102be4). #8115 took journal format 7 andsizeof(State)808, so this PR's journal format moves to 8 and theStateguard 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 (mainwrites 42).Pipeline.cppkeeps #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),mainpasses 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.main275e896797(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_graphicsand both point-size tests pass 2 of 2.mainb6fe513b9a(fb7eea88b0). #6683 took request version 42 for the pixel sample order, so the point fields move to 43, after it:if (version >= 43u), and 44 is rejected.agc_shader_memory's base64 prefixes for the new and the rejected version follow.mainhas no point tail and reads without point state.request_serializernow 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.mainhad 5).request_serializer,agc_shader_memory,agc_driver_pipeline_journal,agc_driver_graphicsand both point-size tests pass 3 of 3.ctest -R '^agc_|^request_serializer$|^shader'passes 865 of 868. The 3 failures are #6683's newagc_driver_sample_order,agc_driver_sample_order_grid_referenceandagc_driver_sample_order_recipe_depth_locations. They fail the same way onmainb6fe513b9aon this RTX 4070 Ti, 2 of 2 each, with the same messages.main57fdffd915(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 readif (version >= 42u)after the version 41 flag, and 43 is rejected. A version 41 vertex request frommainhas no point tail and reads without point state. The merged hull case inrequest_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 (mainhas 5, from #5656).ctest -R '^(agc_|shader_|request_)'passes 853 of 853, andrequest_serializer,agc_shader_memory,agc_driver_pipeline_journalandagc_driver_graphicspass 3 of 3.main636aa09cb1(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 readif (version >= 40u), 41 is rejected, andmain's merged hull gate stays at 39. A newrequest_serializercase (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.main3aa4448ed3(a2554533a6). #6941 took request version 38 for its mesh barycentric layout, so the point fields move to 39: readif (version >= 39u), the tests expect 39 and reject 40, and version 35 to 38 requests frommainread 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.cppconflicted only on neighbouringModulefields (#6941's mesh ones and this PR's point ones), and both are kept.request_serializer,agc_shader_memory, the point tests andagc_driver_graphicspass, 10 of 10. Under the LunarG SDK's 1.4.363 layer,point|^agc_driver_graphics$gives no validation messages onmain(7 tests) or with this PR (8).main32004dfa55(01119658d8).maintook request version 37 for the stencil operation value export (7563b4a480), so the point fields move to 38. They're readif (version >= 38u), the tests expect 38 and reject 39, and version 35 to 37 requests frommainread 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 onmain, 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.main7f596df48d(24d46893d6; it merges with6b8228b2bfcleanly). #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 keepsmain's depth remap mode beside the point size (Draw.cpp,DrawRegisterKey.cpp, the cache key andShaderInputInfoBuilder.cpp).main's merged coverage and depth remap already use journal format 4, so the journal format becomes 6 (State800 bytes), since #5656 took 5 onmain. #4650's depth remap layout check inagc_shader_memorynow skips the 13-byte point tail of a vertex request. InState.cppthe point-list export mask sits next to #6529's quad-list primitive restart rule. On9817d53cc9the AGC, shader, request, journal and point set passed 616 of 617, against 615 of 616 onmainalone; the one failure on both isagc_driver_bda_device(#7584). On the final head the 15 point, serializer, journal, shader memory, graphics, quad and primitive tests pass 3 of 3.main7bc7905978(7944d73962; it merges withc8e3fcb703cleanly).maintook request version 34 for its pixel fields, so a version 34 request frommainhas no point tail. The point fields now come with version 35 (0ad86288c1):agc_shader_memoryexpects 35 for new requests and rejects 36, and therequest_serializerfixtures move to 35. InShaderRegistry.cpp,mainnow decodes the vertex stage after its deferral check and inside atry, soApplyPointSizemoved there. InState.cpp,main'sPixelSampleLocationsand this PR'sApplyPointSizeboth stay. The AGC, shader, request, journal and point set passes 610 of 611, against 609 of 610 onmain7bc7905978alone; the one failure on both isagc_driver_bda_device(#7584). The 10 point, serializer, journal and shader memory tests pass 3 of 3.main9f25d0bf5b(1d714dd50d), with #7175. Its newPolygonPrimitiveTestsintests/Graphics.cppsits next to this PR'svertexPointListTests; both stay. Request version 33 is still free onmain(32 is the newest). The 34 tests matchinggraphics|point|journal|vertexpass.OliSe Player, 60 s, scripted pad input, copies of the app whose preset folder holds only one of its own presets:
main5d9dcc42dSPI_PS_INPUT_ENA/ADDR 0x4002(SAMPLE_COVERAGE), which #6530 accepts. With #6530 as well, it reaches the limit (2 of 2) and the visualiser rendersOn the Intel VM (Arrow Lake iGPU, Mesa 26.1.6 ANV, Debian 13):
agc_driver_vertex_point_sizefrom 869495776 passes 3 of 3, with the same squares as on NVIDIA in every case, including one pixel for exported sizes 0 and -3.main5d9dcc42dwith 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_sizeandagc_driver_zero_position_vertexpassed 3 of 3. Withmain'sSpirvModuleEmitter.cppandShaderInfoCollector.cpp,agc_driver_vertex_point_sizefailed withregister size 4: a point is not a 4x4 square. In OliSe Player (150 s) with #6530, both presets reached the limit 2 of 2, wheremain+ #6530 stopped on the0x207line. There the visualiser composite was black on the default path and rendered withAPS5_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
main82ddae75b. 1287 of 1288 tests pass, and the one failure ismain'sagc_driver_graphics(#6792).agc_driver_vertex_point_sizepasses, and with #6789 merged too,agc_driver_graphicspasses with and without this PR, so the newGraphics.cppcases run there.@screamm rechecked the current head on Windows (ea05b7804, stacked with #6530 and #6669 on
main5f61879a9).agc_shader_memory,request_serializer, the point-size tests and both journal tests pass 3 of 3, including the new point-list journal case. WithRequestSerializer.cppset back to version 32,agc_shader_memoryfails on trailing data. OliSe Player (Che - Escape) reaches the 120 s limit 2 of 2, wheremainstops on register 0x207 2 of 2.#6530 (mine) also moves the pipeline journal format from 3 to 4, for
State::mergedCoverage. Its fields sit beforequadSampleMaskin 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
0x207check, #6530 inPipeline.cpp, #5859 inSpirvModuleEmitter.cpp. #6470 and #6503 also took request version 31, which #5884 has since used onmain; 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.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 reportswas not found but was requested by env var VK_INSTANCE_LAYERS.^agc_driver_graphics$|vertex_point_size|^agc_shader_memory$: onmain7f596df48dit reportsVkDeviceCreateInfo-pNext-pNext×6 andVkGraphicsPipelineCreateInfo-pLibraries-06681×3. With this PR it reports the same two (×9 and ×30, mostly from the newagc_driver_vertex_point_size) and no other VUID. This older layer gives both onmainfor every device-creating test.main7f596df48dor with this PR.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
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 140Could 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?
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 140My 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?
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=0withUSE_VTX_POINT_SIZEclamps the exported value to zero, and without that bitPA_SU_POINT_SIZE=0initializesPointSizeto 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 VulkanPointSizerequirement is documented here: https://docs.vulkan.org/refpages/latest/refpages/source/PointSize.htmlImported 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 140Thanks, you're right on both paths. Fixed in 869495776:
PA_SU_POINT_SIZEof 0 throws (points of size 0 (PA_SU_POINT_SIZE 0) are unsupported).PA_SU_POINT_MINMAXmaximum 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_graphicscovers 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_sizedraws 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 knownagc_driver_store_over_untrackedfailure.AI-assisted: yes
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 140Thanks 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.
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
869495776on main5d9dcc42d(fast-forward, no conflicts).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 relatedagc_driver_tests (vertex, draw, prepared, provoking vertex, layered vertex, NGG vertex) 3 of 3: no failures, 1 skipped.SpirvModuleEmitter.cppandShaderInfoCollector.cppfrom main (tests kept),agc_driver_vertex_point_sizefails withAGC graphics: register size 4: a point is not a 4x4 square. Restored: it passes.-j6 --timeout 120, loaded host): 830 of 837 pass. 6 of the 7 failures are timeouts that pass serially (conventions_function_bodies*, andhardware_oracle_compare, which also times out on main). One real failure:agc_shader_memoryfails withnew 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/mainandgit diff --check: pass.OliSe Player PPSA01153 (02.001.000),
presetstrimmed 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 builtmain + #6530 (1fd45dc99)as "before" andmain + #6530 + #6639as "after". Merging the two has one textual conflict, inGraphics/src/Pipeline.cpp(themergedCoverageandvertexPointsRequirelines 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).5d9dcc42dAGC graphics: unsupported SPI_PS_INPUT_ENA/ADDR bit combination (ena 0x4002 addr 0x4002)(#6530's refusal)APS5_NO_RESIDENT_TARGETS=1also reaches itAPS5_NO_RESIDENT_TARGETS=1also reaches itOn 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=1the 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 onagc_driver_vertex_point_size, not on the title. No module played (the download fails here andmusic/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).
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_shaderandbda) has onlyagc_driver_store_over_untrackedfailing, as onmain. I rebased ontomain7dcfff559(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
Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-16T13:56:31Z.
AMD run with this head (3ddbd2138) merged onto
main82ddae75b: AMD Radeon RX 7600 (RDNA 3, RADV NAVI33, Mesa 25.2.8), Ubuntu 24.04, GCC 13.3, Release, fullctest -j4.main: 1286 / 1287. With this PR: 1287 / 1288, the same single failure.agc_driver_vertex_point_sizepasses.agc_driver_graphics. It fails the same way onmain(#6792, "VOP2 opcode is not implemented") and stops before the cases this PR adds toGraphics.cpp. With #6789 merged as well it passes, with this PR and without, so the new cases run and pass here.AI-assisted: yes (Claude Code)
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.cppcases run once #6789 is in. I added it to the description.AI-assisted: yes
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 main5f61879a9+ #6530 (faea7a221) + this PR + #6669 (8455a5cce). The only conflict is the same pair of adjacentRequirelines inPipeline.cpp; I kept both. Full build: no failures.What changed since my run on
869495776:agc_shader_memorypasses 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.cppexpectsNVNQQSEAAAA=(33) and rejectsNVNQQSIAAAA=(34), andRequestSerializerTests.cppuses 33 and 34. No other hard-coded request version is left in the tree.RequestSerializer.cppset back to version 32 and the tests kept,agc_shader_memoryfails withRequestSerializer: unexpected trailing dataandrequest_serializeraborts. 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_journalandagc_driver_pipeline_journal: 3 of 3 each. The new point-list journal case passes.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 main5f61879a9here. Non-GPU suite: 872 of 876 pass, 2 skipped as on main. The 2 load timeouts pass when run directly.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).
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)
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-18T14:17:41Z.
Rebased onto
maina62c724c38(head 7ea3e6263d). The only conflicts were inEmitProgram, where #5859 addedEmitBdaAnchors(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).mainstill writes request version 32, so this PR's version 33 is unchanged. Built and ran the 12 tests matchingpoint|^agc_driver_graphics|pipeline_journal|request_serializer|agc_shader_replay, includingagc_driver_vertex_point_size: all pass.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T02:56:37Z.
Rebased onto
main7bc7905978(head 7944d73962).maintook 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 tomain's new deferral path inShaderRegistry.cppandPixelSampleLocationsinState.cpp; both sides are kept. The AGC, shader, request, journal and point set passes 610 of 611 (609 of 610 onmainalone, with the sameagc_driver_bda_devicefailure, #7584), and the point, serializer and journal tests pass 3 of 3.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-19T03:22:49Z.
Review: COMMENTED
Apple GPU / MoltenVK run.
agc_driver_vertex_point_sizeruns and passes on Metal, fails without the fix, and the full^agcsuite 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
maina373e85e5+ 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 plainmain(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^agcfailures 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_journalandagc_pipeline_journalpass 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.SpirvModuleEmitter.cppandShaderInfoCollector.cppback to the base, tests kept),agc_driver_vertex_point_sizefails on both drivers withregister size 4: a point is not a 4x4 square.^agcsuite with the stack: the base failures on each driver, plusagc_driver_address_draw_reusefrom #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.
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.
mainhas moved again since: #4650 took request version 35 and #6503 took 36. I've rebased this PR ontomain9817d53cc9locally:main's merged coverage and depth remap already use 4;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)
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T07:03:21Z.
Pushed the rebase, head 24d46893d6 on
main7f596df48d; it merges with6b8228b2bfcleanly.On
9817d53cc9the full set passed 616 of 617, against 615 of 616 onmainalone; the one failure on both isagc_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)
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T16:25:55Z.
Rebased onto
main32004dfa55(01119658d8).maintook 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 frommainwould 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)
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T22:36:22Z.
Rebased onto
main3aa4448ed3(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 neighbouringModulefields inShaderValidation.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)
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:8b8219dcefwritesTessellationConfiguration::mergedHullin version 39, with its read gate atversion >= 39u. This PR still writes its vertex point tail as 39 at heada2554533a6.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.
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-20T15:42:16Z.
Thanks @JJenkx. Done in 2134e93a27, rebased onto
main636aa09cb1.if (version >= 40u).main's merged hull gate stays at 39.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)
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 localgit merge-treecheck, so I am not requesting a behavior change here.Merged #6611 moved mesh validation out of
BuildShaderStageInputInfointo_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.
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-20T20:56:14Z.
@JJenkx done. #6639 is now rebased onto
mainc6145997ef, 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 isagc_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 ismilescoviello:feat/vertex-point-lists, ready for #6801 to restack on.AI-assisted: yes (Claude Code)
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
PipelineJournalFileFormatto 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 bumpFileFormatto 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.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
FileFormatto 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
FileFormatto 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_graphicsand 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)
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
57fdffd915fa6has merged #8697, which writes request serialization version 41 and readsfloat32DenormPreserveafterfloat32FlushToZerofor versions >=41. Your current head0448e86f93still 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).
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T00:50:06Z.
@JJenkx done. #6639 is rebased onto
main57fdffd915, and the new head is a31abee3a7, with the same six commits.Serialization, as you asked:
if (version >= 42u), after #8697's version 41float32DenormPreserveflag, which keeps its place.mainhas no point tail and reads with default point state.Tests:
request_serializercase 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_memoryexpects 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 42andtest(shader): check version 39, 41 and 42 requests with merged hull and point state. The pipeline journal format stays at 6 (mainhas 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_journalandagc_driver_graphicspass 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)
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T10:30:15Z.
@JJenkx heads-up for #6801: #6639 is rebased onto
mainb6fe513b9a. The new head isfb7eea88b0, still six commits.main's #6683 took request version 42 for the pixel sample order, so the point fields move to 43, after it:if (version >= 43u), and 44 is rejected.agc_shader_memory's base64 prefixes follow.mainhas 5).request_serializer,agc_shader_memory,agc_driver_pipeline_journal,agc_driver_graphicsand both point-size tests pass 3 of 3.^agc_|^request_serializer$|^shaderpasses 865 of 868. The three failures are #6683's new sample-order tests, which fail the same way onmainb6fe513b9aon this RTX 4070 Ti.AI-assisted: yes (Claude Code)
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
main275e896797. The new head is3ccf38feef, still six commits.sizeof(State)stays 800 with #7869'spolygonMode.The focused 8 tests pass 2 of 2.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T13:32:49Z.
Rebased once more, onto
main74bdc3a3a7, after #8856 (point-list output of NGG geometry programs) and #7911 (RELEASE_MEM of the system counter). The new head is856256407b, six commits.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