fix(agc): forward the vertex gl_Layer through rect-list and barycentric stages #17022
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17022"
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 frankea on 2026-11-08T06:58:33Z.
What
This is the follow-up that #16891 and #16923 name: rect-list and emulated barycentric draws now render to the layer their vertex shader writes, instead of layer 0. It started on the #16923 head
d117ed22d4; #16891 and #16923 have both merged since. The commits below are the change; the rest are merges of main.786a0726fdreplacesDemoteVertexLayerOutput(andGraphics/include/PatchVertexLayer.hpp) withRelocateVertexLayerOutputin the newSpirvBackend/SpirvVertexLayer.hpp. On a generated-stage route the vertex module's gl_Layer output becomes a plain uint output at the first free location.ShaderValidation.cppaccepts that location in the vertex module and a Layer built-in written by the generated evaluation stage.5ad585d8dfmakes the rect-list control shader read that location and the rect-list evaluation shader write the Layer built-in from the provoking corner.38a368690edoes the same for the barycentric tessellation stages.b60eddb262did the same for the barycentric geometry stage;c33fc7403etakes that back out (below).a1d2e4bbacmakesagc_driver_rect_list_vertex_layerandagc_driver_barycentric_patch_vertex_layerdraw into a two-slice array and check which slice each draw lands in.8b41081acbaddsagc_driver_provoking_vertex_layer_submit, which submits rect-list and emulated barycentric draws throughsceAgcDriverSubmitDcbin both provoking vertex modes.1826441020reconciles the branch with main:PixelHelperLaneMasks(new on main) gets the same call as the other execution tests, and the separate rule for generated evaluation stages is dropped, since main now accepts a Layer output from any evaluation stage that declares the layer capability.8dfd486defrefuses barycentric geometry and patch inputs whose highest location, including the forwarded layer's, does not fit the stage's input limits.87d4d09b94counts the forwarded rect-list layer as one per-vertex component when the rect-list stages work out how many parameters they can carry.c33fc7403eroutes layer-writing emulated-barycentric draws through the tessellation patches. The generated geometry stage cannot pick the provoking vertex's layer: Vulkan lets geometry input vertices arrive in any order that keeps the winding, so no input index is tied to the provoking vertex. On the RTX 4090 (driver 621.14) the driver hands the geometry stage last-mode odd strip and fan triangles rotated so the provoking vertex is input 2, as in GL, and main's flat colours are right there, but the spec does not require that order. The newGraphics::BarycentricGeometryRouteinPipeline.cpp, whichDraw.cppcalls, sends a vertex shader that writes gl_Layer to the patches whenever the device has tessellation.BuildBarycentricGeometryShaderrefuses such a shader by name, its layer plumbing and provoking-vertex parameter are removed, andShaderValidation.cppno longer accepts a Layer output from the generated geometry stage.Draw.cpprefuses by name the layer-writing draws the patches cannot take: fans, indexed strips with primitive restart, and lists with primitive restart on a device with VK_EXT_primitive_topology_list_restart. The forwarded scalar Layer now counts as one evaluation output component.38140f23f6draws an indirect triangle strip on the barycentric patches from its records on the CPU (newIndirectDrawPath::StripPatches), soprepareDrawInputsexpands each record into patches instead of stopping at its indirect-stripRequire. This covers the layer-writing strips thatc33fc7403emoved to the patches and the patch-route strips main already refused (devices without geometry shaders, last-mode strips without provokingVertexLast).Rect lists take the layer from vertex 0 in first mode and from vertex 2 in last mode, the same corner their flat inputs already use. The barycentric patches take it from the provoking vertex, which their strip expansion places at corner 0 or 2. The debt entry "Vertex layer through generated stages" is the fragment
docs/dev/debt/changes/fix-patch-routes-forward-vertex-layer.md(7e6bae76b0,b3903c8c93,2649539b79), and it names the refused topologies.Why
In Vulkan the layer comes from the last pre-rasterization stage. A tessellation control or geometry shader cannot read the Layer built-in (VUID-Layer-Layer-04272), and the generated evaluation and geometry stages wrote no layer. So on every driver, a rect-list or emulated barycentric draw whose vertex shader writes gl_Layer rendered to layer 0. #16891 and #16923 demoted the vertex gl_Layer to a private variable to stop the MoltenVK struct mismatch, and they left this unchanged.
Moving the layer to a location fixes both. The generated stages can read a location, and on MoltenVK the vertex kernel's capture struct and the control shader's input struct now agree. MSL that the local MoltenVK generated (MVK_CONFIG_DEBUG=1) for a rect-list pipeline whose vertex shader writes one parameter, three clip distances and a layer:
out_param_0,uint gl_Layer,gl_Position,gl_ClipDistance[3];m_37,uint m_35,gl_Position,gl_ClipDistance[3];uint gl_Layer [[render_target_array_index]].The MoltenVK pipeline cache bypass from #16891 and #16923 stays. gl_ViewportIndex is unchanged: it is still refused before any pipeline is created.
Tested
Head
38140f23f6(indirect strips on the patches).provoking_vertex_layer_submitalso submits its four strip cases (first and last provoking vertex, layer-writing vertex shader) throughDRAW_INDIRECTwith a non-indexed record. On4ce54cc6e3they stop with "an indirect triangle strip through emulated barycentric patches is unsupported" on the M5 Max and the RTX 4090. Eight tests: the seven above pluslayered_array_color_draw(skipped on the Mac build).VK_LAYER_KHRONOS_validationVUID-VK_LAYER_KHRONOS_validationVUID-APS5_NO_FRAGMENT_SHADER_BARYCENTRIC=1APS5_NO_FRAGMENT_SHADER_BARYCENTRIC=1,VK_LAYER_KHRONOS_validationVUID-StripPatcheshunk inDraw.cppremoved, the first indirect strip case fails again on the M5 Max.check_conventions.py --base origin/mainpasses.Head
2649539b79(the patch route for layer draws, with8dfd486defand87d4d09b94). Seven tests:graphics,provoking_vertex_layer_submit,barycentric_patch_vertex_layer,rect_list_vertex_layer,pixel_barycentric_emulation,provoking_vertex,vertex_provoking_vertex. The validation layer was confirmed loaded withVK_LOADER_DEBUGin every validation run.VK_LAYER_KHRONOS_validationVUID-VK_LAYER_KHRONOS_validationVUID-VK_LAYER_KHRONOS_validationVUID-APS5_NO_FRAGMENT_SHADER_BARYCENTRIC=1APS5_NO_FRAGMENT_SHADER_BARYCENTRIC=1,VK_LAYER_KHRONOS_validationVUID-provoking_vertex_layer_submitnow forces emulated barycentrics itself. Its triangle cases run on the patches in first and last mode: a triangle list with vertex layers 0, 0, 1 and 1, 0, 0, and a 4-vertex strip whose first triangle has zero area, so only the odd triangle draws (first mode takes vertex 1's layer, last mode vertex 3's, each also with the layers flipped). A fan case expects the named refusal.graphicsexpects the geometry-stage refusal for a layer-writing vertex shader and checksBarycentricGeometryRoutefor every input combination. Its tessellation block finds the smallest evaluation output limit an unlayered build fits in, and checks that the layered build is refused there and fits at one more.APS5_NO_FRAGMENT_SHADER_BARYCENTRIC=1,pixel_barycentric_emulationstill passes its unlayered geometry-stage case on the 4090.check_conventions.py --base origin/mainpasses.Mutations, each built and run on the M5 Max and then restored:
BarycentricGeometryRoutegraphicsfailsgraphicsfailsgraphicsfailsDraw.cppdroppedprovoking_vertex_layer_submitfails with the generic topology messageprovoking_vertex_layer_submitfails 4 last-mode cases, 2 of them the odd stripHead
4ce54cc6e3(2649539b79with main68d65e6b14merged; the PR's own diff is unchanged). Main against head on the M5 Max, the same seven tests on both ICDs, withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationfrom Vulkan SDK 1.4.363.0 andVK_LOADER_DEBUG=layer. "Main" is68d65e6b14with this PR's three layer tests added (rect_list_vertex_layer,barycentric_patch_vertex_layer,provoking_vertex_layer_submit). It ran main's owngraphics, because this PR's version callsBarycentricGeometryRoute, which main lacks.4ce54cc6e3VUID-4ce54cc6e3VUID-68d65e6b14VUID-68d65e6b14VUID-rect_list_vertex_layerandbarycentric_patch_vertex_layereach fail 11 checks. Every failure is a layer-1 draw that left slice 1 empty and drew into slice 0.provoking_vertex_layer_submitpasses 5 of its 11 cases. The 5 cases whose provoking vertex has layer 1 leave slice 1 empty and draw into slice 0, and the fan case gets main's generic topology message instead of the named refusal, so the test aborts. On the head all 11 pass.graphics,pixel_barycentric_emulation,provoking_vertexandvertex_provoking_vertexpass. The results are the same on both ICDs.Insert instance layer "VK_LAYER_KHRONOS_validation"and noVUID-, so the head adds no validation message.pixel_barycentric_emulation(the device lacks geometryShader).rect_list_vertex_layerandbarycentric_patch_vertex_layerdo not check last mode here, because the device lacks provokingVertexLast.The sections below are from earlier heads, before the patch route for layer draws.
macOS 27.0.1 on an Apple M5 Max (Rosetta x86-64 build). Runs used MoltenVK 1.4.2 from Vulkan SDK 1.4.363.0 and a local MoltenVK 1.4.2 build, with
ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1, on both ICDs. "Before" is the #16923 headd117ed22d4with the new tests added.agc_driver_rect_list_vertex_layerfails 11 checks on both ICDs;agc_driver_barycentric_patch_vertex_layerfails 11 checks on both ICDs;a1d2e4bbac(without the slice check) on both ICDs.agc_driver_provoking_vertex_layer_submitpasses its 4 first-mode cases on both ICDs. They are a rect list and a triangle list whose pixel shader reads emulated barycentrics, each with vertex layers 0, 0, 1 and 1, 0, 0.Draw.cppand fixing the tessellation corner to 2 makes all 4 cases fail.34744ad0ec, 13 test executables pass on both ICDs (26 of 26 runs):provoking_vertex_layer_submit;rect_list_vertex_layer,barycentric_patch_vertex_layer,graphics;pixel_barycentric_emulation,rect_list_corner,pipeline_journal,layered_array_color_draw,layered_volume_draw,zero_position_vertex,vertex_clip_cull_draw,agc_tessellation_pipeline_cache,agc_fragment_barycentric.agc_driver_tessellation,sample_multisample_target,provoking_vertex,pixel_sample_iteration,sample_order.VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(local ICD) the layer loaded and reported noVUID-in these runs:provoking_vertex_layer_submit,rect_list_vertex_layer,barycentric_patch_vertex_layer,rect_list_corner,pixel_barycentric_emulation.Windows 11, RTX 4090. The head
808fe0f480and main34744ad0ecwere each built with winlibs GCC.ctest -R "^agc_":image_plane_address_on_line,image_sample_lod_clamp,image_sample_lod_clamp_shader_lane.VK_LAYER_KHRONOS_validation, the head passes these 7 tests with noVUID-:rect_list_vertex_layer,barycentric_patch_vertex_layer,provoking_vertex_layer_submit,rect_list_corner,pixel_barycentric_emulation,provoking_vertex,layered_array_color_draw.APS5_NO_FRAGMENT_SHADER_BARYCENTRIC=1(#22052) the device took the barycentric geometry stage, which then still forwarded the layer. On the head398a684d3dwithVK_LAYER_KHRONOS_validationloaded (confirmed withVK_LOADER_DEBUG=layer), 9 of 9 pass with noVUID-:provoking_vertex_layer_submit(its 4 geometry-stage cases, first and last mode, vertex layers 0, 0, 1 and 1, 0, 0),rect_list_vertex_layer,barycentric_patch_vertex_layer,pixel_barycentric_emulation(geometry stage),rect_list_corner,provoking_vertex,vertex_provoking_vertex,layered_array_color_draw,graphics.Not covered.
graphics. On the Mac nothing reaches the geometry stage, so the route call inDraw.cppis exercised only on the 4090.The recompiler sources change, so the shader cache source version changes.
Checklist
main; no other open PR implements the same functions. Open #28142 (barycentric emulation for mesh draws run as compute) also changesShaderValidation.cppand conflicts with this PR there; it does not implement the same functions.NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T04:59:00Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected code supports forwarding vertex
gl_Layerthrough the generated rect-list and barycentric stages; this review did not run tests or inspect every changed file.What I ran
No commands or tests were run. I read the prepared description, commit list, manifest, and diff at head
398a684d3d17f002d33b82bf3dc69a8ee9906e27, then inspected relevant generated shader code throughrepo_read.py.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
None.
Not verified
I did not run tests or builds. GPU results in the PR description were not independently verified. I did not read all changed files in full, including
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp;core/libs/prx/libSceAgcDriver/Graphics/include/PatchVertexLayer.hppis deleted, and the largeBarycentricPatchVertexLayer.cppfile was excluded from the prepared bundle and not inspected through the reader. The barycentric geometry route is also reported as not GPU-tested.To get this to a good state
Nothing is required. Optional: run the relevant test suite on another supported device, including the barycentric geometry route if available.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T08:47:46Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the author has no required follow-up.
What I ran
Reviewed head
b3903c8c93a6c473e339cea8dd96895b48555facusing the prepared diff and the pinned repository reader (repo_read.py). No build or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Build and test results were not independently verified. Read changed files:
Draw.cpp,Pipeline.hpp,Pipeline.cpp,ShaderValidation.cpp,Graphics.cpp,BarycentricGeometryShader.cpp,Recompiler.hpp,SpirvVertexLayer.hpp,RectListShaders.cpp,BarycentricPatchVertexLayer.cpp, andSampleOrder.cpp. The deletedPatchVertexLayer.hpphas no head text. The manifest lists 28 reviewed changed files; I did not read every reviewed file, including all changed tests and documentation. Files excluded by rule were not reviewed.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T15:04:15Z.
Review: COMMENTED
Actionable comments posted: 3
aef9cf71-f93b-4b1e-a952-5dd0eed8c427Reviewing files that changed from the base of the PR and between
f171065f7eande70a5cdf89.core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/include/PatchVertexLayer.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/execution/BarycentricPatchVertexLayer.cppcore/libs/prx/libSceAgcDriver/tests/execution/InterpolationF16.cppcore/libs/prx/libSceAgcDriver/tests/execution/PixelBarycentricEmulation.cppcore/libs/prx/libSceAgcDriver/tests/execution/PixelHelperLaneMasks.cppcore/libs/prx/libSceAgcDriver/tests/execution/PixelImplicitDerivatives.cppcore/libs/prx/libSceAgcDriver/tests/execution/PixelSampleIteration.cppcore/libs/prx/libSceAgcDriver/tests/execution/ProvokingVertexLayerSubmit.cppcore/libs/prx/libSceAgcDriver/tests/execution/RectListVertexLayer.cppcore/libs/prx/libSceAgcDriver/tests/execution/SampleOrder.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvVertexLayer.hppcore/shader/recompiler/SpirvBackend/src/BarycentricGeometryShader.cppcore/shader/recompiler/SpirvBackend/src/RectListShaders.cppdocs/dev/debt/changes/fix-patch-routes-forward-vertex-layer.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T15:11:40Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the review is incomplete because several changed files were not inspected, so approval is not justified.
What I ran
Read the prepared description, commits, manifest, and diff at head
8dfd486defb9739ec392e758b3f7a44714eca7aa. No build or tests were run. The reader was used to inspectSpirvVertexLayer.hpp,RectListShaders.cpp, andBarycentricGeometryShader.cpp. The prepared review materials indicate these files were included; the deletedPatchVertexLayer.hpphas no head text.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
The remaining changed code was not inspected, including shader validation, pipeline integration, tessellation forwarding, remaining rect-list and geometry-stage implementation, tests, and debt documentation. Thus review completeness and behavior outside the inspected ranges are not verified. The manifest was read, but the excluded-file list was not available in the prepared folder listing.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T15:18:02Z.
Review: COMMENTED
Actionable comments posted: 1
897d02f7-62e0-4bb4-9cbb-9e48c0c8d807Reviewing files that changed from the base of the PR and between
e70a5cdf89and8dfd486def.core/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/shader/recompiler/SpirvBackend/src/BarycentricGeometryShader.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T03:34:40Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed implementation propagates vertex
gl_Layerthrough the generated rect-list and emulated-barycentric stages at head87d4d09b94fc83d58b45b7653b8ba8ec31277f43; no concrete blocking defect was found in the code read.What I ran
Read the prepared description, commits, manifest and diff, plus changed source and test context through the pinned
repo_read.pyreader. No build or tests were run in this review; test results in the description are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full text of
Graphics.cppwas read only for the relevant added helper and test ranges; the rest was not read. The deletedPatchVertexLayer.hpphas no head text. The full contents of the remaining changed test files and one-line call-site updates were not read. No build, automated test, Vulkan validation run or hardware behavior was verified independently. The description’s reported results are author-reported.Files read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch,review/README.md;Draw.cppdiff context;Pipeline.hppdiff;Pipeline.cpp;ShaderValidation.cpp;Graphics.cpprelevant ranges;SpirvVertexLayer.hpp;RectListShaders.cpp;BarycentricGeometryShader.cpp;ProvokingVertexLayerSubmit.cpp; and the opening/context ranges ofRectListVertexLayer.cppandBarycentricPatchVertexLayer.cpp.Excluded or not fully read: deleted
PatchVertexLayer.hpp; remainingGraphics.cpptext; full test files beyond the ranges listed; changed one-line execution test call sites;CMakeLists.txt,Recompiler.hpp, and debt documentation beyond their diff entries.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T04:07:24Z.
Review: COMMENTED
659b3ac0-fad9-4ea2-8c3b-30c5174fbacfReviewing files that changed from the base of the PR and between
87d4d09b94and2649539b79.core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/execution/ProvokingVertexLayerSubmit.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/SpirvBackend/src/BarycentricGeometryShader.cppdocs/dev/debt/changes/fix-patch-routes-forward-vertex-layer.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T04:09:51Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
2649539b798b0c10852a7bbb32744a539dc9b25fusing the prepared diff and targeted reads throughrepo_read.py. I ran no build or tests; the test results in the PR description are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full
Graphics.cppandBarycentricPatchVertexLayer.cppfiles were excluded from the review folder for size and were not read through the reader. Other changed files were available in the prepared folder; only targeted relevant code was read. No build, tests, device behavior, or validation-layer results were independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-02T03:25:23Z.
Review: COMMENTED
Actionable comments
da1242b2-9cd2-4248-b584-a1fe8fde11b7Reviewing files that changed from the base of the PR and between
2649539b79and4ce54cc6e3.core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/shader/recompiler/CMakeLists.txtIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T03:47:41Z.
Review: COMMENTED
Reviewed — no blocking findings
No blocking defect was verified in the changed implementation inspected; this review is incomplete because the full
Graphics.cppsource was unavailable through the prepared files.What I ran
Reviewed head
4ce54cc6e37a22d7d185327e45b2daf3fa421518using the prepared diff and head files. The read-only environment blocked furtherrepo_read.pyreads when its logging step attempted to write. No tests, builds, or other checks were run.Files read:
Draw.cpp,Pipeline.hpp,Pipeline.cpp,ShaderValidation.cpp,BarycentricPatchVertexLayer.cpp,ProvokingVertexLayerSubmit.cpp,RectListVertexLayer.cpp,CMakeLists.txt,SpirvVertexLayer.hpp,BarycentricGeometryShader.cpp,RectListShaders.cpp, and the debt entry. The deletedPatchVertexLayer.hppwas inspected in the diff.Graphics.cppwas reviewed only through its changed diff hunks.files.jsonlists no excluded paths.Results
Graphics.cppunavailableNegative control
Not run; no source mutation or test execution was performed.
Findings
Blocking
None verified in the implementation inspected.
Non-blocking
No code findings. The unavailable
Graphics.cppsource leaves its changed routing and limit assertions unverified.Sources
Not verified
The full
core/libs/prx/libSceAgcDriver/tests/Graphics.cppsource and its changed assertions were not available to inspect. Tests, validation runs, and behavior on hardware were not independently verified.To get this to a good state
Nothing is required. Optional: complete review of
Graphics.cppand rerun the reported checks when a readable source snapshot is available.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T06:06:24Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected excerpts show no concrete blocking defect, but the review is incomplete because some changed source could not be read.
What I ran
Reviewed head
38140f23f603969c1f6dd3237ae7d0b078043d8cusing the prepared diff and included file snapshots. No tests or build checks were run. The pinnedrepo_read.pysearch returned no matches and then failed when it attempted to write its read log in the read-only run folder.Results
Findings
Blocking
None established in the inspected excerpts.
Non-blocking
None.
Not verified
The full
core/libs/prx/libSceAgcDriver/tests/Graphics.cppsnapshot was excluded for size, so its changed code was not reviewed. The deletedcore/libs/prx/libSceAgcDriver/Graphics/include/PatchVertexLayer.hpphas no head text to inspect. The reader did not provide source context because it could not writereads.jsonl; no device or runtime behavior was independently verified. The included snapshots for other changed files were inspected selectively, not read in full.files.jsonlists 16 reviewed paths and no rule-based exclusions.To get this to a good state
Nothing is required. Optional: make the pinned reader usable in the read-only run, then review the omitted
Graphics.cppchanges and source context before making a formal decision.Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:37:12Z.
Review: COMMENTED
The trial merge onto
c1601e56d5was clean. I checked how the generated stages reserve a location and account for layer output at the tessellation limits. Keep the tests where vertices disagree andPROVOKING_VTX_LASTchanges the selected layer. A fixture with uniform layer values cannot distinguish the intended vertex from a fixed vertex selection. Paired graphics execution is pending.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.