feat(agc): run registered merged hull programs (binary type 3) #6679

Merged
SleglJan merged 1 commit from upstream-pr/6679 into main 2026-10-20 15:12:04 +00:00
SleglJan commented 2026-10-16 04:12:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-16T04:12:35Z.


What

PPSA11386 (007 First Light) registers its tessellation hull programs as type 3: one binary with the local and the hull part, addressed through SPI_SHADER_PGM_LO_LS (SH 0x148), with no SPI_SHADER_PGM_LO_HS. The local part runs on the lanes below s3[7:0] and writes LDS, an s_barrier follows, and the hull part runs on the lanes below s3[15:8] and may store the registers the local part filled. main skips type 3 at registration (#1893) and its draw decode asks 0x148 for a type-5 local half, so the title stops in its level load:

registered program refers to an incompatible shader binary type

#3444 handles a header fused at runtime that selects a registered back half; a registered type-3 binary has no back half to select.

Changes:

  • Draw decode: a registered type-3 program at 0x148 gets both the local and the hull role, and the tessellation configuration is marked mergedHull. The hull user-data address (SH 0x102/0x103) is optional for it: s[0:1] take it, without the range check, when the draw sets it and are zero otherwise (the separate hull half keeps requiring and checking it). Type 3 is prepared with its stage group like type 5 and takes its float mode from RSRC1_HS.
  • Local stage: only passes gl_VertexIndex and gl_InstanceIndex in a 16-byte record per input control point.
  • Hull stage: runs the whole program, one invocation per output control point. v2 and v5 come from the record of control point min(gl_InvocationID, inputs - 1), v3 is the relative vertex id, and the LDS becomes a per-control-point output array (ControlShared): a control point writes its own record and reads any record of its patch after the barrier, with the stride taken from the code as for the local stride. Registers live across the barrier stay in the invocation.
  • The hull stage of a merged program runs at one lane per invocation on every device (HostSubgroupSize 1, as vertex programs do without vertex subgroups). Its lanes are gl_InvocationID, not host subgroup invocations, and main's hull lowering already turns every lane-dependent value into a per-invocation one (lane id, own-lane bits) and refuses other lane masks. In the test's merged program the s_cbranch_execz around the local part is the only wave-level operation left: with the device's subgroup it took a subgroup ballot (GroupNonUniform, GroupNonUniformBallot), which lavapipe rejects in the tessellation control stage (subgroup capability 61 is unsupported for shader stage 2). With one lane per invocation the branch tests the invocation's own lane and the module declares no subgroup capability, on lavapipe and on hardware alike.
  • The lowering refuses: more input than output control points; LDS writes outside the own record and reads outside the patch's records; an s_barrier that some invocations do not reach or that sits in a loop; reads or writes of another lane's register (v_readlane_b32, v_writelane_b32, DPP, ds_swizzle_b32, ds_permute_b32, ds_bpermute_b32, v_permlane16_b32), which one lane per invocation does not hold; outputs beyond the device's tessellation control limits; fetch subroutines.
  • Both stages refer to one binary, so a draw lists each code and header region once (AppendProgramMemory, used by the draw and by PrepareGraphicsStages); a request's memory regions must not overlap (RequestMemoryView memory regions overlap otherwise).
  • A CPU-path indirect draw writes its record words (base vertex, start instance, draw index) into every program whose user data holds the register (UserDataWords). The local and hull stages both hold SH 0x10c onwards; main wrote only the first, the local stage, which of a merged program only writes the vertex record. Separate hull halves now get the words in both halves too, as both read the same registers.
  • mergedHull is part of the recompile cache key of the local and hull stages, the draw decode comparison and key, and the request serialization: version 39, a byte at the end of the tessellation configuration.
  • A hull program declares gl_InvocationID when it writes a per-control-point output (ControlOutput, ControlShared), not only when it reads its lane id: those writes are indexed by it.
  • PrepareGraphicsStages takes its memory from AppendProgramMemory too, so it now leaves out empty regions, as the draw already did.

The Merged hull programs entry in docs/dev/debt/shader.md records where this differs from the console: the same control point of the same patch per hull lane, the register layout taken from the separate halves (not measured on hardware), the one-lane wave-mask branch (an invocation whose own lane fails skips the scalar instructions the console runs for the wave) and v_readfirstlane_b32 (the invocation's own value), runtime buffer loads for the vertex fetches, and the optional user-data address.

Overlap (trial merges with git merge-tree of the 98 open PRs that touch the same files, against this branch and against main 3aa4448ed3; 82 give the same result with both, 40 of them merging cleanly):

  • Request serialization: main writes version 38. #4650 took 35 (target.depthRangeRemap and, with a vertex context, depthRemapMode), #6503 took 36 (target.float32FlushToZero), #6762 took 37 (the pixel stage's stencilOperationValueExport) and #6941 took 38 (the mesh barycentric layout, a flag after the draw fields); #6470 took 34 before that. So this change takes 39 and reads mergedHull only from 39 on; version 38 and older requests read as not merged.
    • #6639 (a2554533a6), #6801 (793cccc706, on #6639's commits), #7410 (a80f17d7c3) and #7888 (69ee247b2f) also write 39. Whichever of them and this change lands first keeps 39; the next one takes 40.
    • #8004 (2276a44aa8) writes 38, on a base from before #6941.
  • #7816 adds a term to PreparedControlFlow::Matches in Recompiler.cpp, on the line after the one where this change adds mergedHull, and #7691 and #6188 an include line in DrawCache.hpp where this change adds one; they conflict textually.
  • #6612 (open, milescoviello) builds on this change ("Depends on: #6679"): it dropped its own type-3 split and keeps the tessellation-to-geometry path on top of this one. Its head 6f8d397618 is on the previous head 0307183985, which differs from this one only in a test's user-data words.
  • #6657 (open, 2026-10-16) accepts a local tessellation index that nothing observes; it conflicts with this change in TessellationLowering.cpp only on the Lowering members (its Dependence enum and map beside localStride and sharedStride).
  • #7484, #6959 and #8077 edit or add the lines next to this change's entry in docs/dev/debt/shader.md; placement only.
  • #7642 and #1896 already conflict with main in Draw.cpp, and with this change in the same files; #6188 too, plus the DrawCache.hpp include above. #6946 (fbe1f8b1ec) merges with main cleanly and conflicts with this change in Draw.cpp (the AppendProgramMemory call and the record's UserDataWords patch). #7642 and #6946 each turn the per-draw memory and programs into a per-draw tail; AppendProgramMemory then fills the tail's vector.

Tested

  • Rebased onto main ef0eed9b31, after #7623 changed the debt line next to this change's entry (placement only). There, on the Linux build node, the change's own 12 tests pass (request_serializer, agc_shader_memory, agc_driver_tessellation, agc_tessellation_factor_ring, the agc_driver_prepared_graphics tests, the two journal tests, #6931's agc_driver_pipelined_indirect_draw and guest_requested_exit). The wider runs below are on main 3aa4448ed3. #6941 took request version 38 there, so this change writes 39 and reads mergedHull only from 39. Both sides wrote 38, so git merged RequestSerializer.cpp without a conflict at the old number; the tests catch that, as they did on the rebase onto #4650's 35.
    • verifyMergedHullConfiguration finds the flag 52 bytes from the end; the fields after it include the draw fields, #6941's mesh barycentric flag, #4650's depth-remap fields and #6503's flag. It reads version 30, 31, 32, 34, 35, 36, 37 and 38 requests as not merged.
    • The serializer replay test replays main's version 38 format.
    • The technical-debt entry is shortened to main's new 1000-character limit, with the gap first.
    • With #6931, a CPU-path indirect draw's record loop keeps its lastDrawable scan after this change's three UserDataWords lookups (one textual conflict in Draw.cpp).
    • Earlier resolutions, still in: milescoviello's rebase onto version 34 (1254a68e8); with #6312, an indirect record's words go into writablePrograms; AppendProgramMemory fills the vector main reserves.
    • On the Linux build node below, request_serializer, agc_shader_memory, agc_driver_tessellation, agc_tessellation_factor_ring, agc_driver_prepared_graphics, agc_driver_prepared_graphics_prebuild_unset, agc_pipeline_journal, agc_driver_pipeline_journal and guest_requested_exit pass.
    • ctest -R 'agc|shader|recompiler|request|tess', 814 tests: this change passes 735, skips 60 and fails 19, and so does main 3aa4448ed3 built the same way, with the same skips and the same failures: shader_cache_runtime_sources, agc_driver_lookup_log_fits_build, plus 17 of the 18 listed below for 324e0e48e (agc_driver_storage_write_back_overhang passes now). The container does not permit userfaultfd, and 15 of those 17 report guest memory that is not write-watched or needs to be. agc_driver_pipelined_indirect_draw, #6931's test, passes on both.
  • On main 324e0e48e, the previous head (4e7fa2be5, version 35): 744 of 762 pass, the same as main 324e0e48e. Both fail the same 18: agc_driver_bc_block_copy, agc_driver_depth_compare_copy, agc_driver_guest_memory_lifetime_converted, agc_driver_image_srgb_sample_copy, agc_driver_image_srgb_sample_copy_forced, agc_driver_image_table_vouched_lookups, agc_driver_image_table_vouch_queued_draws, agc_driver_msaa_dcc_clear_2, agc_driver_msaa_dcc_clear_4, agc_driver_msaa_dcc_clear_8, agc_driver_native_depth_bda_clear, agc_driver_native_depth_clear_refusals, agc_driver_native_depth_clears, agc_driver_native_depth_retirement, agc_driver_native_multisample_depth, agc_driver_staged_clear_sampled_read, agc_driver_storage_write_back_overhang, agc_storage_kept_unit_settle.
  • Linux build node: Arch Linux container on a 16-thread Xeon E5-2640 v3, GCC 16.2.1, Release with BUILD_TESTING=ON, lavapipe (Mesa 26.2.4, LLVM 23.1.1). ctest -R 'agc|shader|recompiler|request' on main 92e50418f, with the earlier version-31 head:
    • This change: 591 of 601 pass.
    • main: 591 of 601 pass.
    • Both fail the same ten with the same messages: agc_storage_kept_unit_settle, agc_pending_key_stores, agc_driver_bc_block_copy, agc_driver_depth_compare_copy, agc_driver_native_multisample_depth, agc_driver_staged_clear_sampled_read, agc_driver_storage_write_back_overhang, agc_driver_native_depth_retirement, agc_driver_native_depth_clears, agc_driver_native_depth_clear_refusals (most need write watching, which the container does not have).
  • New and extended tests:
    • The merged test programs (MergedHull* in Tessellation.cpp) are written for these tests. Each is an eight-dword entry, then main's LocalCode (without its s_swappc), two dwords of glue and main's HullCode with one LDS read offset changed (LocalCode and HullCode are from the same file). The entry's lane id is HullCode's, and its other instructions are assembled with llvm-mc (gfx1010). MergedHullReadLane's v_readlane_b32 is also assembled with llvm-mc (gfx1030). MergedHullDivergentBarrier inserts an s_barrier. MergedHullRegisters, MergedHullForeignRecord and MergedHullOutsidePatch change a store's registers or an LDS offset by hand. The entry's layout and the vertex-table slots of CheckMergedHullVertexTables follow PPSA11386's merged programs, and the entry's first seven dwords (the lane test) also occur in them; apart from HullCode's own v_mbcnt pair, no run of four consecutive dwords from these programs occurs in the title's shader binaries captured here. The PreparedGraphics.cpp cases use 64 filler words and s_endpgm, as main's Fixture does.
    • agc_driver_tessellation: two merged-hull draws (MergedHullCode, and MergedHullRegisters, whose hull part stores a register its local part filled) checked like the separate-hull draws (RequirePatches); refusals for more input than output control points, an LDS write into another control point's record, an LDS read past the patch's records, a divergent s_barrier and a v_readlane_b32 of lane 0 (which the one-lane emitter would otherwise compile); the merged hull stage compiled with the device target declares no GroupNonUniform capability; registration and graphics ABI resolution of a type-3 stage group (twice, the second from the prepared ABI).
    • agc_driver_prepared_graphics: the decode of a merged hull draw at ABI resolution and at draw time (roles, entry points, user SGPR layout, user-data address set, unset, zero, and set to an unmapped address that the program does not need), its program memory listed once and accepted by RequestMemoryView (and used as the stages' request memory), the user-data words of SH 0x10e in both stages, preparation as two separate stages that the draw reuses, separate halves still decoded as before and still requiring the address; a merged program's vertex tables read from its user-data slots behind the eight hidden words.
    • agc_shader_memory and request_serializer: the mergedHull byte round-trips; version 30, 31, 32, 34, 35, 36, 37 and 38 requests (38 is main's current format; with and without tessellation) read as not merged, keep their fields and re-serialize to the version 39 bytes; the version 39 fixtures; version 40 is rejected. With the field read from version 35 on, as git merged it on the rebase onto #4650, both fail with RequestSerializer: truncated data.
  • Rebased onto main 1b1f8483c (after #5405 took version 32), the same node: request_serializer, agc_shader_memory, agc_driver_tessellation, agc_tessellation_factor_ring, the four agc_driver_prepared_graphics tests and guest_requested_exit pass (9 of 9). ctest -R 'agc|shader|recompiler|request': this change 617 of 626 pass, main 1b1f8483c built the same way 617 of 626; both fail the same nine (agc_driver_bc_block_copy, agc_driver_depth_compare_copy, agc_driver_native_depth_clear_refusals, agc_driver_native_depth_clears, agc_driver_native_depth_retirement, agc_driver_native_multisample_depth, agc_driver_staged_clear_sampled_read, agc_driver_storage_write_back_overhang, agc_storage_kept_unit_settle).
  • On main eb901bcf4 with the previous head 36529f17d, the same node: request_serializer, agc_shader_memory, agc_driver_tessellation, agc_tessellation_factor_ring, the four agc_driver_prepared_graphics tests and guest_requested_exit pass (9 of 9).
  • On the same node and base (main 92e50418f, earlier head): main with only the tests that compile there (the type-3 registration case in agc_driver_tessellation, the serializer fixtures): agc_driver_tessellation fails with registered program refers to an incompatible shader binary type, agc_shader_memory with new requests did not use serialization version 31 (39 now), and request_serializer aborts on its version fixture. The other new cases use the new field and functions; with the change and one part reverted at a time, the check written for that part fails: the draw decode not detecting type 3 (agc_driver_prepared_graphics and agc_driver_tessellation: registered program refers to an incompatible shader binary type); no mergedHull byte in the serialization (a merged hull configuration was lost in serialization, request_serializer aborts); the lowering not treating the program as merged (unsupported LDS access in a tessellation stage); the hull stage at the device subgroup size (the hull stage of a merged hull program declares subgroup operations ...); no cross-lane refusal (a tessellation program was accepted although another lane's register: a v_readlane_b32 of lane 0 compiles silently); the program memory without the dedupe (a merged hull draw's program memory does not list each code and header region once); UserDataWords stopping at the first program (an indirect draw's user-data register does not reach both stages of a merged hull program); the hull user-data address required (merged shader user-data address is null); the optional address range-checked (guest memory is not readable at 0x10); the read-past-patch check removed (a tessellation program was accepted although reads LDS outside its patch's control point records).
  • On the same node and base, the hull stage of MergedHullCode without the one-lane layout declared capabilities 61 and 64 with one OpGroupNonUniform* instruction; with its s_cbranch_execz replaced by s_nop it declared neither, so the branch is the only source.
  • Not covered by a test: the Draw.cpp indirect record loop (only UserDataWords is), the draw key's mergedHull, and the refusals for outputs beyond the device limits, a barrier in a loop and fetch subroutines.
  • agc_driver_tessellation takes under 1 s on the node.
  • tools/check_conventions.py --base upstream/main and git diff --check pass.
  • With the previous head 36529f17d on main eb901bcf4: NVIDIA GeForce RTX 3080 (615.78.08), CachyOS (Linux 7.2.10), GCC 16.2.1, Release with BUILD_TESTING=ON, ctest -R 'agc|shader|recompiler|pm4|draw|position|tess|hull|request':
    • This change: 625 of 627 pass; agc_driver_stencil_ref_export skips and agc_driver_store_over_untracked fails.
    • main built the same way: the same 625 pass, the same skip and the same failure, on the same test list.
    • agc_driver_store_over_untracked fails on both with the result did not reach a block the CPU left alone; #6347 tracks the same test failing on Windows.
  • PPSA11386 v01.018.000, RTX 3080, in a bubblewrap sandbox, on my bring-up stack: main 4186f06a9 plus open PRs, unpublished local fixes the title needs, local logging and scripted input, and the title's two feedback-wait limits widened in its executable as described in #6172 (local only). These runs used the earlier version-31 head, before #6931's queued indirect path; the version changes do not touch the draw path.
    • With this change the level load passes and the title reaches gameplay's first tutorial prompt.
    • An earlier main-based stack without a merged-hull change stopped in the level load after present 1188 with registered program refers to an incompatible shader binary type.
    • With this change reverted and #6612 (head 89aa76a76) merged instead, which brings main up to 5d9dcc42d, the title stops in the level load after present 1195 with merged shader user-data address is null: a merged hull draw there leaves the hull user-data address null.

Checklist

  • Based on current main; #6612 builds on this change
  • 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: PPSA11386 #5714
  • GPUs tested: lavapipe (Mesa 26.2.4, LLVM 23.1.1), Arch Linux container; NVIDIA GeForce RTX 3080, 615.78.08, CachyOS
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4883372396 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-16T04:12:35Z. --- ### What PPSA11386 (007 First Light) registers its tessellation hull programs as type 3: one binary with the local and the hull part, addressed through `SPI_SHADER_PGM_LO_LS` (SH 0x148), with no `SPI_SHADER_PGM_LO_HS`. The local part runs on the lanes below `s3[7:0]` and writes LDS, an `s_barrier` follows, and the hull part runs on the lanes below `s3[15:8]` and may store the registers the local part filled. `main` skips type 3 at registration (#1893) and its draw decode asks 0x148 for a type-5 local half, so the title stops in its level load: `registered program refers to an incompatible shader binary type` #3444 handles a header fused at runtime that selects a registered back half; a registered type-3 binary has no back half to select. Changes: - Draw decode: a registered type-3 program at 0x148 gets both the local and the hull role, and the tessellation configuration is marked `mergedHull`. The hull user-data address (SH 0x102/0x103) is optional for it: `s[0:1]` take it, without the range check, when the draw sets it and are zero otherwise (the separate hull half keeps requiring and checking it). Type 3 is prepared with its stage group like type 5 and takes its float mode from `RSRC1_HS`. - Local stage: only passes `gl_VertexIndex` and `gl_InstanceIndex` in a 16-byte record per input control point. - Hull stage: runs the whole program, one invocation per output control point. `v2` and `v5` come from the record of control point `min(gl_InvocationID, inputs - 1)`, `v3` is the relative vertex id, and the LDS becomes a per-control-point output array (`ControlShared`): a control point writes its own record and reads any record of its patch after the barrier, with the stride taken from the code as for the local stride. Registers live across the barrier stay in the invocation. - The hull stage of a merged program runs at one lane per invocation on every device (`HostSubgroupSize` 1, as vertex programs do without vertex subgroups). Its lanes are `gl_InvocationID`, not host subgroup invocations, and `main`'s hull lowering already turns every lane-dependent value into a per-invocation one (lane id, own-lane bits) and refuses other lane masks. In the test's merged program the `s_cbranch_execz` around the local part is the only wave-level operation left: with the device's subgroup it took a subgroup ballot (`GroupNonUniform`, `GroupNonUniformBallot`), which lavapipe rejects in the tessellation control stage (`subgroup capability 61 is unsupported for shader stage 2`). With one lane per invocation the branch tests the invocation's own lane and the module declares no subgroup capability, on lavapipe and on hardware alike. - The lowering refuses: more input than output control points; LDS writes outside the own record and reads outside the patch's records; an `s_barrier` that some invocations do not reach or that sits in a loop; reads or writes of another lane's register (`v_readlane_b32`, `v_writelane_b32`, DPP, `ds_swizzle_b32`, `ds_permute_b32`, `ds_bpermute_b32`, `v_permlane16_b32`), which one lane per invocation does not hold; outputs beyond the device's tessellation control limits; fetch subroutines. - Both stages refer to one binary, so a draw lists each code and header region once (`AppendProgramMemory`, used by the draw and by `PrepareGraphicsStages`); a request's memory regions must not overlap (`RequestMemoryView memory regions overlap` otherwise). - A CPU-path indirect draw writes its record words (base vertex, start instance, draw index) into every program whose user data holds the register (`UserDataWords`). The local and hull stages both hold SH 0x10c onwards; `main` wrote only the first, the local stage, which of a merged program only writes the vertex record. Separate hull halves now get the words in both halves too, as both read the same registers. - `mergedHull` is part of the recompile cache key of the local and hull stages, the draw decode comparison and key, and the request serialization: version 39, a byte at the end of the tessellation configuration. - A hull program declares `gl_InvocationID` when it writes a per-control-point output (`ControlOutput`, `ControlShared`), not only when it reads its lane id: those writes are indexed by it. - `PrepareGraphicsStages` takes its memory from `AppendProgramMemory` too, so it now leaves out empty regions, as the draw already did. The `Merged hull programs` entry in `docs/dev/debt/shader.md` records where this differs from the console: the same control point of the same patch per hull lane, the register layout taken from the separate halves (not measured on hardware), the one-lane wave-mask branch (an invocation whose own lane fails skips the scalar instructions the console runs for the wave) and `v_readfirstlane_b32` (the invocation's own value), runtime buffer loads for the vertex fetches, and the optional user-data address. Overlap (trial merges with `git merge-tree` of the 98 open PRs that touch the same files, against this branch and against `main` 3aa4448ed3; 82 give the same result with both, 40 of them merging cleanly): - Request serialization: `main` writes version 38. #4650 took 35 (`target.depthRangeRemap` and, with a vertex context, `depthRemapMode`), #6503 took 36 (`target.float32FlushToZero`), #6762 took 37 (the pixel stage's `stencilOperationValueExport`) and #6941 took 38 (the mesh barycentric layout, a flag after the draw fields); #6470 took 34 before that. So this change takes 39 and reads `mergedHull` only from 39 on; version 38 and older requests read as not merged. - #6639 (a2554533a6), #6801 (793cccc706, on #6639's commits), #7410 (a80f17d7c3) and #7888 (69ee247b2f) also write 39. Whichever of them and this change lands first keeps 39; the next one takes 40. - #8004 (2276a44aa8) writes 38, on a base from before #6941. - #7816 adds a term to `PreparedControlFlow::Matches` in `Recompiler.cpp`, on the line after the one where this change adds `mergedHull`, and #7691 and #6188 an include line in `DrawCache.hpp` where this change adds one; they conflict textually. - #6612 (open, milescoviello) builds on this change ("Depends on: #6679"): it dropped its own type-3 split and keeps the tessellation-to-geometry path on top of this one. Its head 6f8d397618 is on the previous head 0307183985, which differs from this one only in a test's user-data words. - #6657 (open, 2026-10-16) accepts a local tessellation index that nothing observes; it conflicts with this change in `TessellationLowering.cpp` only on the `Lowering` members (its `Dependence` enum and map beside `localStride` and `sharedStride`). - #7484, #6959 and #8077 edit or add the lines next to this change's entry in `docs/dev/debt/shader.md`; placement only. - #7642 and #1896 already conflict with `main` in `Draw.cpp`, and with this change in the same files; #6188 too, plus the `DrawCache.hpp` include above. #6946 (fbe1f8b1ec) merges with `main` cleanly and conflicts with this change in `Draw.cpp` (the `AppendProgramMemory` call and the record's `UserDataWords` patch). #7642 and #6946 each turn the per-draw `memory` and `programs` into a per-draw tail; `AppendProgramMemory` then fills the tail's vector. ### Tested - Rebased onto `main` ef0eed9b31, after #7623 changed the debt line next to this change's entry (placement only). There, on the Linux build node, the change's own 12 tests pass (`request_serializer`, `agc_shader_memory`, `agc_driver_tessellation`, `agc_tessellation_factor_ring`, the `agc_driver_prepared_graphics` tests, the two journal tests, #6931's `agc_driver_pipelined_indirect_draw` and `guest_requested_exit`). The wider runs below are on `main` 3aa4448ed3. #6941 took request version 38 there, so this change writes 39 and reads `mergedHull` only from 39. Both sides wrote 38, so git merged `RequestSerializer.cpp` without a conflict at the old number; the tests catch that, as they did on the rebase onto #4650's 35. - `verifyMergedHullConfiguration` finds the flag 52 bytes from the end; the fields after it include the draw fields, #6941's mesh barycentric flag, #4650's depth-remap fields and #6503's flag. It reads version 30, 31, 32, 34, 35, 36, 37 and 38 requests as not merged. - The serializer replay test replays `main`'s version 38 format. - The technical-debt entry is shortened to `main`'s new 1000-character limit, with the gap first. - With #6931, a CPU-path indirect draw's record loop keeps its `lastDrawable` scan after this change's three `UserDataWords` lookups (one textual conflict in `Draw.cpp`). - Earlier resolutions, still in: milescoviello's rebase onto version 34 (1254a68e8); with #6312, an indirect record's words go into `writablePrograms`; `AppendProgramMemory` fills the vector `main` reserves. - On the Linux build node below, `request_serializer`, `agc_shader_memory`, `agc_driver_tessellation`, `agc_tessellation_factor_ring`, `agc_driver_prepared_graphics`, `agc_driver_prepared_graphics_prebuild_unset`, `agc_pipeline_journal`, `agc_driver_pipeline_journal` and `guest_requested_exit` pass. - `ctest -R 'agc|shader|recompiler|request|tess'`, 814 tests: this change passes 735, skips 60 and fails 19, and so does `main` 3aa4448ed3 built the same way, with the same skips and the same failures: `shader_cache_runtime_sources`, `agc_driver_lookup_log_fits_build`, plus 17 of the 18 listed below for 324e0e48e (`agc_driver_storage_write_back_overhang` passes now). The container does not permit userfaultfd, and 15 of those 17 report guest memory that is not write-watched or needs to be. `agc_driver_pipelined_indirect_draw`, #6931's test, passes on both. - On `main` 324e0e48e, the previous head (4e7fa2be5, version 35): 744 of 762 pass, the same as `main` 324e0e48e. Both fail the same 18: `agc_driver_bc_block_copy`, `agc_driver_depth_compare_copy`, `agc_driver_guest_memory_lifetime_converted`, `agc_driver_image_srgb_sample_copy`, `agc_driver_image_srgb_sample_copy_forced`, `agc_driver_image_table_vouched_lookups`, `agc_driver_image_table_vouch_queued_draws`, `agc_driver_msaa_dcc_clear_2`, `agc_driver_msaa_dcc_clear_4`, `agc_driver_msaa_dcc_clear_8`, `agc_driver_native_depth_bda_clear`, `agc_driver_native_depth_clear_refusals`, `agc_driver_native_depth_clears`, `agc_driver_native_depth_retirement`, `agc_driver_native_multisample_depth`, `agc_driver_staged_clear_sampled_read`, `agc_driver_storage_write_back_overhang`, `agc_storage_kept_unit_settle`. - Linux build node: Arch Linux container on a 16-thread Xeon E5-2640 v3, GCC 16.2.1, Release with `BUILD_TESTING=ON`, lavapipe (Mesa 26.2.4, LLVM 23.1.1). `ctest -R 'agc|shader|recompiler|request'` on `main` 92e50418f, with the earlier version-31 head: - This change: 591 of 601 pass. - `main`: 591 of 601 pass. - Both fail the same ten with the same messages: `agc_storage_kept_unit_settle`, `agc_pending_key_stores`, `agc_driver_bc_block_copy`, `agc_driver_depth_compare_copy`, `agc_driver_native_multisample_depth`, `agc_driver_staged_clear_sampled_read`, `agc_driver_storage_write_back_overhang`, `agc_driver_native_depth_retirement`, `agc_driver_native_depth_clears`, `agc_driver_native_depth_clear_refusals` (most need write watching, which the container does not have). - New and extended tests: - The merged test programs (`MergedHull*` in `Tessellation.cpp`) are written for these tests. Each is an eight-dword entry, then `main`'s `LocalCode` (without its `s_swappc`), two dwords of glue and `main`'s `HullCode` with one LDS read offset changed (`LocalCode` and `HullCode` are from the same file). The entry's lane id is `HullCode`'s, and its other instructions are assembled with `llvm-mc` (gfx1010). `MergedHullReadLane`'s `v_readlane_b32` is also assembled with `llvm-mc` (gfx1030). `MergedHullDivergentBarrier` inserts an `s_barrier`. `MergedHullRegisters`, `MergedHullForeignRecord` and `MergedHullOutsidePatch` change a store's registers or an LDS offset by hand. The entry's layout and the vertex-table slots of `CheckMergedHullVertexTables` follow PPSA11386's merged programs, and the entry's first seven dwords (the lane test) also occur in them; apart from `HullCode`'s own `v_mbcnt` pair, no run of four consecutive dwords from these programs occurs in the title's shader binaries captured here. The `PreparedGraphics.cpp` cases use 64 filler words and `s_endpgm`, as `main`'s `Fixture` does. - `agc_driver_tessellation`: two merged-hull draws (`MergedHullCode`, and `MergedHullRegisters`, whose hull part stores a register its local part filled) checked like the separate-hull draws (`RequirePatches`); refusals for more input than output control points, an LDS write into another control point's record, an LDS read past the patch's records, a divergent `s_barrier` and a `v_readlane_b32` of lane 0 (which the one-lane emitter would otherwise compile); the merged hull stage compiled with the device target declares no `GroupNonUniform` capability; registration and graphics ABI resolution of a type-3 stage group (twice, the second from the prepared ABI). - `agc_driver_prepared_graphics`: the decode of a merged hull draw at ABI resolution and at draw time (roles, entry points, user SGPR layout, user-data address set, unset, zero, and set to an unmapped address that the program does not need), its program memory listed once and accepted by `RequestMemoryView` (and used as the stages' request memory), the user-data words of SH 0x10e in both stages, preparation as two separate stages that the draw reuses, separate halves still decoded as before and still requiring the address; a merged program's vertex tables read from its user-data slots behind the eight hidden words. - `agc_shader_memory` and `request_serializer`: the `mergedHull` byte round-trips; version 30, 31, 32, 34, 35, 36, 37 and 38 requests (38 is `main`'s current format; with and without tessellation) read as not merged, keep their fields and re-serialize to the version 39 bytes; the version 39 fixtures; version 40 is rejected. With the field read from version 35 on, as git merged it on the rebase onto #4650, both fail with `RequestSerializer: truncated data`. - Rebased onto `main` 1b1f8483c (after #5405 took version 32), the same node: `request_serializer`, `agc_shader_memory`, `agc_driver_tessellation`, `agc_tessellation_factor_ring`, the four `agc_driver_prepared_graphics` tests and `guest_requested_exit` pass (9 of 9). `ctest -R 'agc|shader|recompiler|request'`: this change 617 of 626 pass, `main` 1b1f8483c built the same way 617 of 626; both fail the same nine (`agc_driver_bc_block_copy`, `agc_driver_depth_compare_copy`, `agc_driver_native_depth_clear_refusals`, `agc_driver_native_depth_clears`, `agc_driver_native_depth_retirement`, `agc_driver_native_multisample_depth`, `agc_driver_staged_clear_sampled_read`, `agc_driver_storage_write_back_overhang`, `agc_storage_kept_unit_settle`). - On `main` eb901bcf4 with the previous head 36529f17d, the same node: `request_serializer`, `agc_shader_memory`, `agc_driver_tessellation`, `agc_tessellation_factor_ring`, the four `agc_driver_prepared_graphics` tests and `guest_requested_exit` pass (9 of 9). - On the same node and base (`main` 92e50418f, earlier head): `main` with only the tests that compile there (the type-3 registration case in `agc_driver_tessellation`, the serializer fixtures): `agc_driver_tessellation` fails with `registered program refers to an incompatible shader binary type`, `agc_shader_memory` with `new requests did not use serialization version 31` (39 now), and `request_serializer` aborts on its version fixture. The other new cases use the new field and functions; with the change and one part reverted at a time, the check written for that part fails: the draw decode not detecting type 3 (`agc_driver_prepared_graphics` and `agc_driver_tessellation`: `registered program refers to an incompatible shader binary type`); no `mergedHull` byte in the serialization (`a merged hull configuration was lost in serialization`, `request_serializer` aborts); the lowering not treating the program as merged (`unsupported LDS access in a tessellation stage`); the hull stage at the device subgroup size (`the hull stage of a merged hull program declares subgroup operations ...`); no cross-lane refusal (`a tessellation program was accepted although another lane's register`: a `v_readlane_b32` of lane 0 compiles silently); the program memory without the dedupe (`a merged hull draw's program memory does not list each code and header region once`); `UserDataWords` stopping at the first program (`an indirect draw's user-data register does not reach both stages of a merged hull program`); the hull user-data address required (`merged shader user-data address is null`); the optional address range-checked (`guest memory is not readable at 0x10`); the read-past-patch check removed (`a tessellation program was accepted although reads LDS outside its patch's control point records`). - On the same node and base, the hull stage of `MergedHullCode` without the one-lane layout declared capabilities 61 and 64 with one `OpGroupNonUniform*` instruction; with its `s_cbranch_execz` replaced by `s_nop` it declared neither, so the branch is the only source. - Not covered by a test: the `Draw.cpp` indirect record loop (only `UserDataWords` is), the draw key's `mergedHull`, and the refusals for outputs beyond the device limits, a barrier in a loop and fetch subroutines. - `agc_driver_tessellation` takes under 1 s on the node. - `tools/check_conventions.py --base upstream/main` and `git diff --check` pass. - With the previous head 36529f17d on `main` eb901bcf4: NVIDIA GeForce RTX 3080 (615.78.08), CachyOS (Linux 7.2.10), GCC 16.2.1, Release with `BUILD_TESTING=ON`, `ctest -R 'agc|shader|recompiler|pm4|draw|position|tess|hull|request'`: - This change: 625 of 627 pass; `agc_driver_stencil_ref_export` skips and `agc_driver_store_over_untracked` fails. - `main` built the same way: the same 625 pass, the same skip and the same failure, on the same test list. - `agc_driver_store_over_untracked` fails on both with `the result did not reach a block the CPU left alone`; #6347 tracks the same test failing on Windows. - PPSA11386 v01.018.000, RTX 3080, in a bubblewrap sandbox, on my bring-up stack: `main` 4186f06a9 plus open PRs, unpublished local fixes the title needs, local logging and scripted input, and the title's two feedback-wait limits widened in its executable as described in #6172 (local only). These runs used the earlier version-31 head, before #6931's queued indirect path; the version changes do not touch the draw path. - With this change the level load passes and the title reaches gameplay's first tutorial prompt. - An earlier `main`-based stack without a merged-hull change stopped in the level load after present 1188 with `registered program refers to an incompatible shader binary type`. - With this change reverted and #6612 (head 89aa76a76) merged instead, which brings `main` up to 5d9dcc42d, the title stops in the level load after present 1195 with `merged shader user-data address is null`: a merged hull draw there leaves the hull user-data address null. ### Checklist - [x] Based on current `main`; #6612 builds on this change - [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: PPSA11386 #5714 - [x] GPUs tested: lavapipe (Mesa 26.2.4, LLVM 23.1.1), Arch Linux container; NVIDIA GeForce RTX 3080, 615.78.08, CachyOS - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
milescoviello commented 2026-10-16 04:17:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T04:17:51Z.


A note on overlap: #6612 (Crimson Desert, PPSA25286, opened 10-15) also takes a registered type-3 program at 0x148 with nothing at 0x108, in the same lines of DrawDecode.cpp (L96-101) and in TessellationLowering.cpp. Whichever lands second needs a rebase.

The two handle it differently. #6612 compiles the program twice: once as the local role, with no hull threads in s3, and once as the hull role, with no local vertices. The values then go through the existing local-to-hull LDS path. That split can't carry VGPRs from the local part into the hull part across the barrier. Your MergedHullRegisters case covers that, and you say 007 First Light needs it, so your approach looks like the more general one.

Crimson Desert's merged hull draw has VGT_LS_HS_CONFIG 0x1043f (63 patches, 4 input and 4 output control points), so your refusal for more input than output control points wouldn't apply to it. Its halves pass 16-bit values through LDS, and #6612 adds 16-bit LDS writes in local programs and reads in hull programs for that. I haven't run it on your path. The title still needs #6612's tessellation-to-geometry path either way, so I can't check it with this PR alone.

If this lands first, I'll move #6612 onto your merged hull, drop its type-3 split, and check that Crimson Desert gets as far as before.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6207968489 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6207968489). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-16T04:17:51Z. --- A note on overlap: #6612 (Crimson Desert, PPSA25286, opened 10-15) also takes a registered type-3 program at 0x148 with nothing at 0x108, in the same lines of `DrawDecode.cpp` (L96-101) and in `TessellationLowering.cpp`. Whichever lands second needs a rebase. The two handle it differently. #6612 compiles the program twice: once as the local role, with no hull threads in `s3`, and once as the hull role, with no local vertices. The values then go through the existing local-to-hull LDS path. That split can't carry VGPRs from the local part into the hull part across the barrier. Your `MergedHullRegisters` case covers that, and you say 007 First Light needs it, so your approach looks like the more general one. Crimson Desert's merged hull draw has `VGT_LS_HS_CONFIG` 0x1043f (63 patches, 4 input and 4 output control points), so your refusal for more input than output control points wouldn't apply to it. Its halves pass 16-bit values through LDS, and #6612 adds 16-bit LDS writes in local programs and reads in hull programs for that. I haven't run it on your path. The title still needs #6612's tessellation-to-geometry path either way, so I can't check it with this PR alone. If this lands first, I'll move #6612 onto your merged hull, drop its type-3 split, and check that Crimson Desert gets as far as before. AI-assisted: yes
github-actions[bot] commented 2026-10-16 04:35:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T04:35:01Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6639 core/shader/recompiler/tests/RequestSerializerTests.cpp L217, L221-222, L257, L261-262, L283, L407-413, L422, L427-428, L443, L445
PR 6657 core/shader/recompiler/Optimization/src/TessellationLowering.cpp L959-960, L962
PR 6801 core/shader/recompiler/tests/RequestSerializerTests.cpp L217, L221-222, L257, L261-262, L283, L407-413, L422, L427-428, L443, L445
PR 6959 docs/dev/debt/shader.md L172
PR 7410 core/shader/recompiler/tests/RequestSerializerTests.cpp L217, L257, L283, L407-411, L422, L443, L445
PR 7691 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp L13, L46-47
PR 7816 core/shader/recompiler/Recompiler.cpp L146-147
PR 7888 core/shader/recompiler/tests/RequestSerializerTests.cpp L217, L221-222, L257, L261-262, L283, L407-413, L422, L427-428, L443, L445
PR 8077 docs/dev/debt/shader.md L172
PR 8134 docs/dev/debt/shader.md L172
PR 8267 docs/dev/debt/shader.md L172
PR 8489 docs/dev/debt/shader.md L172

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1896 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
PR 4072 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Translation/src/InstructionTranslator.cpp
PR 5021 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 5115 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 5371 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
docs/dev/debt/shader.md
PR 5404 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
PR 5426 docs/dev/debt/shader.md
PR 5431 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
PR 5500 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/StageIO.hpp
core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/shader.md
PR 5609 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/shader/recompiler/Recompiler.hpp
PR 5941 docs/dev/debt/shader.md
PR 6009 docs/dev/debt/shader.md
PR 6177 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/shader/recompiler/Recompiler.hpp
PR 6235 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/debt/shader.md
PR 6280 docs/dev/debt/shader.md
PR 6290 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6412 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/debt/shader.md
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
docs/dev/debt/shader.md
PR 6539 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 6636 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
PR 6645 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6683 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp
core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 6867 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 6946 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 6947 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ProgramMetadata.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/Translation/src/InstructionTranslator.cpp
docs/dev/debt/shader.md
PR 7085 docs/dev/debt/shader.md
PR 7201 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ProgramMetadata.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 7392 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 7395 core/shader/recompiler/Recompiler.cpp
docs/dev/debt/shader.md
PR 7446 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
PR 7484 core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 7642 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ProgramMetadata.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 7644 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 7684 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
docs/dev/debt/shader.md
PR 7689 core/shader/recompiler/Recompiler.hpp
PR 7922 docs/dev/debt/shader.md
PR 8004 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/debt/shader.md
PR 8281 docs/dev/debt/shader.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6208163448 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6208163448). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T04:35:01Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 6639](https://www.github.com/boykopovar/AnyPS5/pull/6639) | `core/shader/recompiler/tests/RequestSerializerTests.cpp` [L217](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L217), [L221-222](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L221-L222), [L257](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L257), [L261-262](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L261-L262), [L283](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L283), [L407-413](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L407-L413), [L422](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L422), [L427-428](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L427-L428), [L443](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L443), [L445](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L445) | | | | [PR 6657](https://www.github.com/boykopovar/AnyPS5/pull/6657) | `core/shader/recompiler/Optimization/src/TessellationLowering.cpp` [L959-960](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/Optimization/src/TessellationLowering.cpp#L959-L960), [L962](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/Optimization/src/TessellationLowering.cpp#L962) | | | | [PR 6801](https://www.github.com/boykopovar/AnyPS5/pull/6801) | `core/shader/recompiler/tests/RequestSerializerTests.cpp` [L217](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L217), [L221-222](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L221-L222), [L257](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L257), [L261-262](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L261-L262), [L283](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L283), [L407-413](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L407-L413), [L422](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L422), [L427-428](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L427-L428), [L443](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L443), [L445](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L445) | | | | [PR 6959](https://www.github.com/boykopovar/AnyPS5/pull/6959) | `docs/dev/debt/shader.md` [L172](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/docs/dev/debt/shader.md#L172) | | | | [PR 7410](https://www.github.com/boykopovar/AnyPS5/pull/7410) | `core/shader/recompiler/tests/RequestSerializerTests.cpp` [L217](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L217), [L257](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L257), [L283](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L283), [L407-411](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L407-L411), [L422](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L422), [L443](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L443), [L445](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L445) | | | | [PR 7691](https://www.github.com/boykopovar/AnyPS5/pull/7691) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp` [L13](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp#L13), [L46-47](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp#L46-L47) | | | | [PR 7816](https://www.github.com/boykopovar/AnyPS5/pull/7816) | `core/shader/recompiler/Recompiler.cpp` [L146-147](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/Recompiler.cpp#L146-L147) | | | | [PR 7888](https://www.github.com/boykopovar/AnyPS5/pull/7888) | `core/shader/recompiler/tests/RequestSerializerTests.cpp` [L217](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L217), [L221-222](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L221-L222), [L257](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L257), [L261-262](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L261-L262), [L283](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L283), [L407-413](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L407-L413), [L422](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L422), [L427-428](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L427-L428), [L443](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L443), [L445](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/core/shader/recompiler/tests/RequestSerializerTests.cpp#L445) | | | | [PR 8077](https://www.github.com/boykopovar/AnyPS5/pull/8077) | `docs/dev/debt/shader.md` [L172](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/docs/dev/debt/shader.md#L172) | | | | [PR 8134](https://www.github.com/boykopovar/AnyPS5/pull/8134) | `docs/dev/debt/shader.md` [L172](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/docs/dev/debt/shader.md#L172) | | | | [PR 8267](https://www.github.com/boykopovar/AnyPS5/pull/8267) | `docs/dev/debt/shader.md` [L172](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/docs/dev/debt/shader.md#L172) | | | | [PR 8489](https://www.github.com/boykopovar/AnyPS5/pull/8489) | `docs/dev/debt/shader.md` [L172](https://github.com/boykopovar/AnyPS5/blob/7526640c3c1c5ea236c33b43b854681e8d169745/docs/dev/debt/shader.md#L172) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1896](https://www.github.com/boykopovar/AnyPS5/pull/1896) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Translation/src/InstructionTranslator.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`docs/dev/debt/shader.md` | | [PR 5115](https://www.github.com/boykopovar/AnyPS5/pull/5115) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`docs/dev/debt/shader.md` | | [PR 5404](https://www.github.com/boykopovar/AnyPS5/pull/5404) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp` | | [PR 5426](https://www.github.com/boykopovar/AnyPS5/pull/5426) | `docs/dev/debt/shader.md` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`<br>`core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/StageIO.hpp`<br>`core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`docs/dev/debt/shader.md` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 5941](https://www.github.com/boykopovar/AnyPS5/pull/5941) | `docs/dev/debt/shader.md` | | [PR 6009](https://www.github.com/boykopovar/AnyPS5/pull/6009) | `docs/dev/debt/shader.md` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`<br>`core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp`<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp`<br>`docs/dev/debt/shader.md` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `docs/dev/debt/shader.md` | | [PR 6290](https://www.github.com/boykopovar/AnyPS5/pull/6290) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`docs/dev/debt/shader.md` | | [PR 6488](https://www.github.com/boykopovar/AnyPS5/pull/6488) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`docs/dev/debt/shader.md` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6636](https://www.github.com/boykopovar/AnyPS5/pull/6636) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp` | | [PR 6645](https://www.github.com/boykopovar/AnyPS5/pull/6645) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`<br>`core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp`<br>`core/shader/recompiler/Optimization/src/ShaderInfoCollector.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp`<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp` | | [PR 6867](https://www.github.com/boykopovar/AnyPS5/pull/6867) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ProgramMetadata.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawDecode.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/Translation/src/InstructionTranslator.cpp`<br>`docs/dev/debt/shader.md` | | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `docs/dev/debt/shader.md` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ProgramMetadata.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 7392](https://www.github.com/boykopovar/AnyPS5/pull/7392) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`docs/dev/debt/shader.md` | | [PR 7395](https://www.github.com/boykopovar/AnyPS5/pull/7395) | `core/shader/recompiler/Recompiler.cpp`<br>`docs/dev/debt/shader.md` | | [PR 7446](https://www.github.com/boykopovar/AnyPS5/pull/7446) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`docs/dev/debt/shader.md` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ProgramMetadata.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 7644](https://www.github.com/boykopovar/AnyPS5/pull/7644) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp` | | [PR 7684](https://www.github.com/boykopovar/AnyPS5/pull/7684) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`docs/dev/debt/shader.md` | | [PR 7689](https://www.github.com/boykopovar/AnyPS5/pull/7689) | `core/shader/recompiler/Recompiler.hpp` | | [PR 7922](https://www.github.com/boykopovar/AnyPS5/pull/7922) | `docs/dev/debt/shader.md` | | [PR 8004](https://www.github.com/boykopovar/AnyPS5/pull/8004) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp`<br>`docs/dev/debt/shader.md` | | [PR 8281](https://www.github.com/boykopovar/AnyPS5/pull/8281) | `docs/dev/debt/shader.md` |
milescoviello commented 2026-10-16 12:08:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T12:08:25Z.


A heads-up on the request version: #5884 merged with version 31 for MeshConfiguration::outputPrimitiveSize, so main now writes 31 without mergedHull. This PR still merges textually, but it reads mergedHull under version >= 31. A version 31 request from main with a tessellation configuration would then have the byte after its tessellation fields read as mergedHull. I hit it while rebasing #6612 on top of this PR. #6639 has moved its point fields to 32, so whichever of the two lands second would take 33.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6215176227 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6215176227). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-16T12:08:25Z. --- A heads-up on the request version: #5884 merged with version 31 for `MeshConfiguration::outputPrimitiveSize`, so `main` now writes 31 without `mergedHull`. This PR still merges textually, but it reads `mergedHull` under `version >= 31`. A version 31 request from `main` with a tessellation configuration would then have the byte after its tessellation fields read as `mergedHull`. I hit it while rebasing #6612 on top of this PR. #6639 has moved its point fields to 32, so whichever of the two lands second would take 33. AI-assisted: yes
SleglJan commented 2026-10-16 13:00:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-16T13:00:30Z.


Thanks @milescoviello, good catch: after #5884 this PR still merged cleanly with main, since both made the same 30 to 31 edits. This PR now writes 32 and reads mergedHull only from 32 on, and a new test checks that main's version 31 requests, with and without tessellation, read as not merged and keep their fields. That test fails with the old >= 31 gate. #6639 and the others that also take 32 are listed under Overlap. #6612's first commit is the old head 8f93aa0bd, so it needs a restack onto the new one.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6216047600 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6216047600). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-16T13:00:30Z. --- Thanks @milescoviello, good catch: after #5884 this PR still merged cleanly with `main`, since both made the same 30 to 31 edits. This PR now writes 32 and reads `mergedHull` only from 32 on, and a new test checks that `main`'s version 31 requests, with and without tessellation, read as not merged and keep their fields. That test fails with the old `>= 31` gate. #6639 and the others that also take 32 are listed under Overlap. #6612's first commit is the old head 8f93aa0bd, so it needs a restack onto the new one. AI-assisted: yes (Claude Code)
Scramblrrrr commented 2026-10-16 17:40:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-16T17:40:39Z.


Fresh Windows11/RTX5070Ti617.42 cross-test on current integrationc6bd8b539047dacb9ddc95b41c45e69b78d39f19 (main d9b696ddb + shared-table/007 boot stack + canonical #6679 36529f17d and #6364 9fffceaa9; #4339 excluded):30/30 selected native controls PASS15.94s, no skips. Includes storage_flush_ordering, storage_write_back_overhang, depth_storage_dispatch, tessellation, prepared_graphics and its unset/0/1 prebuild cases, serializer, shader memory/disk cache, shared tables and draw-cache checks.

6364 negative control: retained the new fixture and other integration code, removed only FlushPending's PendingWriterSerial/Reap/Sync/FinishUpTo wait block, rebuilt the unpatched driver and ran the fixture. It FAILS in0.37s with storage flush ordering, writer in flight: the pending image's store put its older texels over a newer address-based store. Restored the exact committed Texture.cpp, rebuilt patched modules, and30/30PASS14.53s. Source/conventions clean. This is a wait-only negative in our integration, not a standalone main red/green.

Public branch https://github.com/Scramblrrrr/AnyPS5/tree/codex/first-light-level-two-lane . Matched driver/Agc/VideoOut now staged together, same2GiBfree/28GiBprivate guard. Starting007; title level/cinematic outcome still pending, so the native pass is not claimed as playable gameplay. AI-assisted: Codex; title data local.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6221245555 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6221245555). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-16T17:40:39Z. --- Fresh Windows11/RTX5070Ti617.42 cross-test on current integrationc6bd8b539047dacb9ddc95b41c45e69b78d39f19 (main d9b696ddb + shared-table/007 boot stack + canonical #6679 36529f17d and #6364 9fffceaa9; #4339 excluded):30/30 selected native controls PASS15.94s, no skips. Includes storage_flush_ordering, storage_write_back_overhang, depth_storage_dispatch, tessellation, prepared_graphics and its unset/0/1 prebuild cases, serializer, shader memory/disk cache, shared tables and draw-cache checks. 6364 negative control: retained the new fixture and other integration code, removed only FlushPending's PendingWriterSerial/Reap/Sync/FinishUpTo wait block, rebuilt the unpatched driver and ran the fixture. It FAILS in0.37s with `storage flush ordering, writer in flight: the pending image's store put its older texels over a newer address-based store`. Restored the exact committed Texture.cpp, rebuilt patched modules, and30/30PASS14.53s. Source/conventions clean. This is a wait-only negative in our integration, not a standalone main red/green. Public branch https://github.com/Scramblrrrr/AnyPS5/tree/codex/first-light-level-two-lane . Matched driver/Agc/VideoOut now staged together, same2GiBfree/28GiBprivate guard. Starting007; title level/cinematic outcome still pending, so the native pass is not claimed as playable gameplay. AI-assisted: Codex; title data local.
SleglJan commented 2026-10-16 20:14:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-16T20:14:21Z.


@milescoviello #6679 is rebased onto main 1b1f8483c. #5405 merged with request version 32 (target.spannedWaves), so mergedHull now reads from version 33. The new head is 01947dd9b. Against 36529f17d it changes only the request version (the writer, the reader limit and the mergedHull gate) and the serializer tests; the rest of the change, the debt entry included, is the same. #6612's first commit, 734a8f5ef, is 36529f17d rebased onto main 452494439, so it needs another restack, and its first commit should read mergedHull from 33. #6639 and #6801 also write 33 now; whichever lands first keeps it.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6223855241 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6223855241). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-16T20:14:21Z. --- @milescoviello #6679 is rebased onto `main` 1b1f8483c. #5405 merged with request version 32 (`target.spannedWaves`), so `mergedHull` now reads from version 33. The new head is 01947dd9b. Against 36529f17d it changes only the request version (the writer, the reader limit and the `mergedHull` gate) and the serializer tests; the rest of the change, the debt entry included, is the same. #6612's first commit, 734a8f5ef, is 36529f17d rebased onto `main` 452494439, so it needs another restack, and its first commit should read `mergedHull` from 33. #6639 and #6801 also write 33 now; whichever lands first keeps it. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-18 18:54:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-18T18:54:53Z.


@SleglJan following up, sorry for the late answer: #6612 now carries this PR's current head unchanged. git range-diff shows 53c0af2c16 identical to #6612's first commit (52a658cb7f), restacked on main 8625038579 today. The tessellation tests pass there 2 runs of 2.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6253803476 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6253803476). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-18T18:54:53Z. --- @SleglJan following up, sorry for the late answer: #6612 now carries this PR's current head unchanged. `git range-diff` shows 53c0af2c16 identical to #6612's first commit (52a658cb7f), restacked on `main` 8625038579 today. The tessellation tests pass there 2 runs of 2. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 01:30:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T01:30:18Z.


@SleglJan a heads-up: this PR conflicts with main again. main is now at request serialization version 34. The pixel stage's iteratesSamples, positionLocation and sampleLocations read from 34, and there's no use of 33. So mergedHull needs version 35.

I rebased your commit onto main 017f2151ca for #6612, which stacks on it, and pushed it as offer/6679-main-017f2151 (1254a68e84, you as author) in case it saves you time. It still merges with main b5be95ff0b. Against your head it changes only:

  • the request version: the writer writes 35, the reader accepts up to 35, and mergedHull reads from 35;
  • the tests' version expectations: NVNQQSMAAAA= for 35, NVNQQSQAAAA= (36) as unsupported, the main34 replay in RequestSerializerTests.cpp, and version 34 added to the old-version loop in verifyMergedHullConfiguration. Main's version 34 fields are pixel-only, so the tessellation-control request there doesn't contain them;
  • "version 33" in the commit message, now 35.

The conflicts were all version numbers: the writer, the reader limit, and the tests' expected bytes. I'm running the serializer and tessellation tests on it now and will post the results here. I'll restack #6612 on whatever head you choose.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6257733244 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6257733244). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T01:30:18Z. --- @SleglJan a heads-up: this PR conflicts with `main` again. `main` is now at request serialization version 34. The pixel stage's `iteratesSamples`, `positionLocation` and `sampleLocations` read from 34, and there's no use of 33. So `mergedHull` needs version 35. I rebased your commit onto `main` 017f2151ca for #6612, which stacks on it, and pushed it as [`offer/6679-main-017f2151`](https://github.com/milescoviello/AnyPS5/tree/offer/6679-main-017f2151) (1254a68e84, you as author) in case it saves you time. It still merges with `main` b5be95ff0b. Against your head it changes only: - the request version: the writer writes 35, the reader accepts up to 35, and `mergedHull` reads from 35; - the tests' version expectations: `NVNQQSMAAAA=` for 35, `NVNQQSQAAAA=` (36) as unsupported, the `main34` replay in `RequestSerializerTests.cpp`, and version 34 added to the old-version loop in `verifyMergedHullConfiguration`. Main's version 34 fields are pixel-only, so the tessellation-control request there doesn't contain them; - "version 33" in the commit message, now 35. The conflicts were all version numbers: the writer, the reader limit, and the tests' expected bytes. I'm running the serializer and tessellation tests on it now and will post the results here. I'll restack #6612 on whatever head you choose. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 01:54:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T01:54:19Z.


@SleglJan results for offer/6679-main-017f2151 (1254a68e84) on Linux, RTX 4070 Ti: request_serializer, agc_shader_memory (with verifyMergedHullConfiguration, now also over version 34), agc_driver_tessellation, agc_tessellation_factor_ring, agc_pipeline_journal and agc_driver_pipeline_journal all pass.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6257983324 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6257983324). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T01:54:19Z. --- @SleglJan results for [`offer/6679-main-017f2151`](https://github.com/milescoviello/AnyPS5/tree/offer/6679-main-017f2151) (1254a68e84) on Linux, RTX 4070 Ti: `request_serializer`, `agc_shader_memory` (with `verifyMergedHullConfiguration`, now also over version 34), `agc_driver_tessellation`, `agc_tessellation_factor_ring`, `agc_pipeline_journal` and `agc_driver_pipeline_journal` all pass. AI-assisted: yes (Claude Code)
SleglJan commented 2026-10-19 02:19:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-19T02:19:41Z.


@milescoviello thanks, that saved me the work. I took your 1254a68e8 as is. Since then main moved to 324e0e48e, and #6312 made Driver::draw read programs through a const alias, which conflicted in Draw.cpp. The head is now 4e7fa2be5:

  • an indirect record's words go into writablePrograms;
  • ProgramMemory became AppendProgramMemory, which fills the vector main reserves, so #6312's single allocation for the draw's memory regions stays.

The request version is 35, as in your branch. Tests are in the description: on the Linux node, the serializer, tessellation, prepared-graphics and journal tests pass, and the agc|shader|recompiler|request|tess set fails the same 18 tests as main built the same way. #6612 conflicts today: its first commit is the previous head, so stacking it means swapping that commit for 4e7fa2be5 and rebasing.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258268970 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6258268970). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-19T02:19:41Z. --- @milescoviello thanks, that saved me the work. I took your 1254a68e8 as is. Since then `main` moved to 324e0e48e, and #6312 made `Driver::draw` read `programs` through a const alias, which conflicted in `Draw.cpp`. The head is now 4e7fa2be5: - an indirect record's words go into `writablePrograms`; - `ProgramMemory` became `AppendProgramMemory`, which fills the vector `main` reserves, so #6312's single allocation for the draw's memory regions stays. The request version is 35, as in your branch. Tests are in the description: on the Linux node, the serializer, tessellation, prepared-graphics and journal tests pass, and the `agc|shader|recompiler|request|tess` set fails the same 18 tests as `main` built the same way. #6612 conflicts today: its first commit is the previous head, so stacking it means swapping that commit for 4e7fa2be5 and rebasing. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 02:23:21 +00:00 (Migrated from github.com)

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


@SleglJan thanks. I've restacked #6612 on 4e7fa2be5 locally: its three commits now sit on your head instead of the previous one. Two conflicts, both from main:

  • ShaderRegistry.cpp: kept main's new order (push offset, then the deferral check, then the vertex decode inside its try), with #6612's StageWaveSize and StageMeshConfiguration in place of the fixed wave size and stages.mesh.
  • Draw.cpp: #6612's || captured plus main's KeepMultisampleTarget loop.

The result merges cleanly with main 40393b0f9. I'm building it now and will run the AGC, shader, request and tessellation set on 4e7fa2be5 and on the restack before I push.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258307457 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6258307457). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T02:23:21Z. --- @SleglJan thanks. I've restacked #6612 on 4e7fa2be5 locally: its three commits now sit on your head instead of the previous one. Two conflicts, both from `main`: - `ShaderRegistry.cpp`: kept `main`'s new order (push offset, then the deferral check, then the vertex decode inside its `try`), with #6612's `StageWaveSize` and `StageMeshConfiguration` in place of the fixed wave size and `stages.mesh`. - `Draw.cpp`: #6612's `|| captured` plus `main`'s `KeepMultisampleTarget` loop. The result merges cleanly with `main` 40393b0f9. I'm building it now and will run the AGC, shader, request and tessellation set on 4e7fa2be5 and on the restack before I push. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 02:39:52 +00:00 (Migrated from github.com)

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


@SleglJan #6612 is pushed on top of 4e7fa2be5 (head 9825024871). On the Linux node (RTX 4070 Ti), the AGC, shader, request, journal and tessellation set passes 609 of 610 with it, against 608 of 609 on 4e7fa2be5 alone. The one failure on both is agc_driver_bda_device, the fence timeout from #7584. The tessellation, serializer and journal tests pass 3 of 3.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258485838 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6258485838). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T02:39:52Z. --- @SleglJan #6612 is pushed on top of 4e7fa2be5 (head 9825024871). On the Linux node (RTX 4070 Ti), the AGC, shader, request, journal and tessellation set passes 609 of 610 with it, against 608 of 609 on 4e7fa2be5 alone. The one failure on both is `agc_driver_bda_device`, the fence timeout from #7584. The tessellation, serializer and journal tests pass 3 of 3. AI-assisted: yes (Claude Code)
SleglJan commented 2026-10-19 04:37:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-19T04:37:35Z.


@milescoviello a heads-up for #6612: #4650 merged and took request version 35, so this PR moved again. The head is now d919e6384 on main 676d42396, and it writes 36 and reads mergedHull only from 36. On the rebase, git merged this PR's version >= 35u read without a conflict. #4650's version 35 requests have no flag, so on those that read takes the next field's first byte as mergedHull and shifts every later read by one. The serializer tests catch it as truncated data. #6612 carries the 35 read from 4e7fa2be5, so its restack needs this head.

The test side:

  • The flag is now 50 bytes from the end, followed by #4650's five depth-remap bytes.
  • Version 35 joins the old-version loop in verifyMergedHullConfiguration.
  • The serializer replay test replays main's version 35 format (main35, was main34).

#6801 and #7410 also write 36, so after the first of the three lands, the next one takes 37.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6259771158 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6259771158). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-19T04:37:35Z. --- @milescoviello a heads-up for #6612: #4650 merged and took request version 35, so this PR moved again. The head is now d919e6384 on `main` 676d42396, and it writes 36 and reads `mergedHull` only from 36. On the rebase, git merged this PR's `version >= 35u` read without a conflict. #4650's version 35 requests have no flag, so on those that read takes the next field's first byte as `mergedHull` and shifts every later read by one. The serializer tests catch it as `truncated data`. #6612 carries the 35 read from 4e7fa2be5, so its restack needs this head. The test side: - The flag is now 50 bytes from the end, followed by #4650's five depth-remap bytes. - Version 35 joins the old-version loop in `verifyMergedHullConfiguration`. - The serializer replay test replays `main`'s version 35 format (`main35`, was `main34`). #6801 and #7410 also write 36, so after the first of the three lands, the next one takes 37. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 06:17:32 +00:00 (Migrated from github.com)

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


@SleglJan thanks for the heads-up. I've restacked #6612 on d919e6384 locally. #4650's depth remap pushes against the same push-constant limit that #6612's StagePushLimit replaced, so the helper now takes the depth remap mode, in main's order (mesh, tessellation before rasterization, depth remap, then the slot). Its journal format becomes 5. Tests are running, and I'll push when they pass.

One more collision since then: #6503 merged at main 9817d53cc9 and writes request version 36 (the f32 flush-to-zero flag, read if (version >= 36u)). So d919e6384's 36 now conflicts with main too, and the next free version is 37. #6639 moves its point fields to 37 in the rebase I'm testing now. Whichever of #6679 and #6639 lands first keeps 37, and the other takes 38. I'll restack #6612 on whatever head you settle on.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6260978673 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6260978673). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T06:17:32Z. --- @SleglJan thanks for the heads-up. I've restacked #6612 on d919e6384 locally. #4650's depth remap pushes against the same push-constant limit that #6612's `StagePushLimit` replaced, so the helper now takes the depth remap mode, in `main`'s order (mesh, tessellation before rasterization, depth remap, then the slot). Its journal format becomes 5. Tests are running, and I'll push when they pass. One more collision since then: #6503 merged at `main` 9817d53cc9 and writes request version 36 (the f32 flush-to-zero flag, read `if (version >= 36u)`). So d919e6384's 36 now conflicts with `main` too, and the next free version is 37. #6639 moves its point fields to 37 in the rebase I'm testing now. Whichever of #6679 and #6639 lands first keeps 37, and the other takes 38. I'll restack #6612 on whatever head you settle on. AI-assisted: yes (Claude Code)
SleglJan commented 2026-10-19 06:25:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-19T06:25:28Z.


@milescoviello thanks. The head to restack #6612 on is 3b69fde44 on main 46f27623c, after #6503's version 36 (target.float32FlushToZero, a trailing flag after #4650's depth-remap fields). It writes 37 and reads mergedHull only from 37. In the tests:

  • the flag sits 51 bytes from the end;
  • the old-version loop reads 30, 31, 32, 34, 35 and 36 as not merged;
  • the serializer replay test replays main's version 36 format (main36).

#6801 now also writes 37, and so will #6639 after your rebase. The first of the three to land keeps 37, the second takes 38 and the third 39.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6261089002 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6261089002). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-19T06:25:28Z. --- @milescoviello thanks. The head to restack #6612 on is 3b69fde44 on `main` 46f27623c, after #6503's version 36 (`target.float32FlushToZero`, a trailing flag after #4650's depth-remap fields). It writes 37 and reads `mergedHull` only from 37. In the tests: - the flag sits 51 bytes from the end; - the old-version loop reads 30, 31, 32, 34, 35 and 36 as not merged; - the serializer replay test replays `main`'s version 36 format (`main36`). #6801 now also writes 37, and so will #6639 after your rebase. The first of the three to land keeps 37, the second takes 38 and the third 39. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 11:29:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T11:29:58Z.


@SleglJan thanks for the version map. #6612 now carries 3b69fde441's patch unchanged as its first commit (same patch id, rebased as 15949ba712), on main f72c7aacfa, because adriadam10 asked for the quadList conflict with main to be resolved. Its head is 235f5130c0, and the tessellation, journal and request serializer tests pass 3 of 3 there. #6639 takes 37 or 38, whichever of the three is free when it lands, as you laid out.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6266166742 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6266166742). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T11:29:58Z. --- @SleglJan thanks for the version map. #6612 now carries 3b69fde441's patch unchanged as its first commit (same patch id, rebased as 15949ba712), on `main` f72c7aacfa, because adriadam10 asked for the `quadList` conflict with `main` to be resolved. Its head is 235f5130c0, and the tessellation, journal and request serializer tests pass 3 of 3 there. #6639 takes 37 or 38, whichever of the three is free when it lands, as you laid out. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 16:09:54 +00:00 (Migrated from github.com)

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


@SleglJan a heads-up on versions: main took request version 37 itself, in simonbronk's 7563b4a480 (stencil operation value export, read if (version >= 37u) into the pixel info). So #6679's 37 now collides with main, and the next free version is 38. My #6639 is moving its point fields to 38 in the rebase I'm testing now. As before, whichever of #6679, #6801 and #6639 lands first keeps 38, and the next takes 39. I'll restack #6612 on your head again once #6679 is rebased.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6271670073 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6271670073). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T16:09:54Z. --- @SleglJan a heads-up on versions: `main` took request version 37 itself, in simonbronk's 7563b4a480 (stencil operation value export, read `if (version >= 37u)` into the pixel info). So #6679's 37 now collides with `main`, and the next free version is 38. My #6639 is moving its point fields to 38 in the rebase I'm testing now. As before, whichever of #6679, #6801 and #6639 lands first keeps 38, and the next takes 39. I'll restack #6612 on your head again once #6679 is rebased. AI-assisted: yes (Claude Code)
SleglJan commented 2026-10-19 16:19:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-19T16:19:39Z.


@milescoviello thanks, rebased: the head is 83a04aba0 on main 0fbfd91e5. It writes 38 and reads mergedHull only from 38. In the tests:

  • the flag still sits 51 bytes from the end;
  • the old-version loop also reads 37 as not merged;
  • the serializer replay test replays main's version 37 format (main37).

Both conflicts adriadam10 listed on #6612 (Draw.cpp with #6931, and RequestSerializerTests.cpp) are in this PR's commit, and this head resolves them; #6612's own three commits apply onto it without a conflict (git merge-tree). In Draw.cpp: the three record lookups stay UserDataWords(programs, roles, ...), so every program that holds the register gets the word, both stages of a merged hull program included. #6931's lastDrawable scan follows them. Each record's words are patched and its stages rebuilt before the check that queues the last drawable record, so the queued draw carries them. No test covers that path with a merged hull draw yet. The debt entry is also down to 999 characters, under main's 1000-character check (which counts the whole line).

#6941 already writes 38 on a base with #6762. Its version lines are the same as this PR's, so git merges RequestSerializer.cpp between the two without a conflict, and only the tests file stops. #6639 moving to 38 makes three at 38 (#6679, #6941, #6639); #6801 and #7410 still write 37 on bases before #6762, and #7332 reads its two target flags from 38. Whichever lands first keeps 38, the next takes 39, and so on.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6271853499 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6271853499). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-19T16:19:39Z. --- @milescoviello thanks, rebased: the head is 83a04aba0 on `main` 0fbfd91e5. It writes 38 and reads `mergedHull` only from 38. In the tests: - the flag still sits 51 bytes from the end; - the old-version loop also reads 37 as not merged; - the serializer replay test replays `main`'s version 37 format (`main37`). Both conflicts adriadam10 listed on #6612 (`Draw.cpp` with #6931, and `RequestSerializerTests.cpp`) are in this PR's commit, and this head resolves them; #6612's own three commits apply onto it without a conflict (`git merge-tree`). In `Draw.cpp`: the three record lookups stay `UserDataWords(programs, roles, ...)`, so every program that holds the register gets the word, both stages of a merged hull program included. #6931's `lastDrawable` scan follows them. Each record's words are patched and its stages rebuilt before the check that queues the last drawable record, so the queued draw carries them. No test covers that path with a merged hull draw yet. The debt entry is also down to 999 characters, under `main`'s 1000-character check (which counts the whole line). #6941 already writes 38 on a base with #6762. Its version lines are the same as this PR's, so git merges `RequestSerializer.cpp` between the two without a conflict, and only the tests file stops. #6639 moving to 38 makes three at 38 (#6679, #6941, #6639); #6801 and #7410 still write 37 on bases before #6762, and #7332 reads its two target flags from 38. Whichever lands first keeps 38, the next takes 39, and so on. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 16:26:03 +00:00 (Migrated from github.com)

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


@SleglJan thanks, that was quick. #6612's three commits apply onto 83a04aba0 without a conflict here too (77d218a50a). The graphics, journal, serializer and tessellation runs on it are queued, and I'll push #6612 when they pass. #6639 is now at 38 too (01119658d8), so of the three at 38, whichever lands first keeps it.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6271969775 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6271969775). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T16:26:03Z. --- @SleglJan thanks, that was quick. #6612's three commits apply onto 83a04aba0 without a conflict here too (77d218a50a). The graphics, journal, serializer and tessellation runs on it are queued, and I'll push #6612 when they pass. #6639 is now at 38 too (01119658d8), so of the three at 38, whichever lands first keeps it. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 22:36:39 +00:00 (Migrated from github.com)

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


@SleglJan another version heads-up: #6941 merged at 3:17 PM PDT with request version 38 for its mesh barycentric layout (read if (version >= 38u && reader.ReadBool()) in the graphics section). So #6679's mergedHull at 38 now collides with main, and the next free version is 39. I've moved #6639's point fields to 39 (a2554533a6, pushed), so of the two at 39, whichever lands first keeps it and the other takes 40. In #6941's tests, the old-format fixtures get its field through InsertMeshBarycentricFlag before the version byte is raised, which is where I needed to add it in RequestSerializerTests.cpp. #6612 follows your rebase; I'll restack it once #6679 is on 39.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6278887821 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6278887821). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T22:36:39Z. --- @SleglJan another version heads-up: #6941 merged at 3:17 PM PDT with request version 38 for its mesh barycentric layout (read `if (version >= 38u && reader.ReadBool())` in the graphics section). So #6679's `mergedHull` at 38 now collides with `main`, and the next free version is 39. I've moved #6639's point fields to 39 (a2554533a6, pushed), so of the two at 39, whichever lands first keeps it and the other takes 40. In #6941's tests, the old-format fixtures get its field through `InsertMeshBarycentricFlag` before the version byte is raised, which is where I needed to add it in `RequestSerializerTests.cpp`. #6612 follows your rebase; I'll restack it once #6679 is on 39. AI-assisted: yes (Claude Code)
SleglJan commented 2026-10-19 23:05:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-19T23:05:38Z.


@milescoviello thanks, rebased. The head is 30541537b on main 3aa4448ed3; it writes 39 and reads mergedHull only from 39. In the tests:

  • The flag now sits 52 bytes from the end, because #6941's mesh barycentric flag follows the draw fields after it.
  • The old-version loop also reads 38 as not merged, and drops #6941's byte for the versions before 38.
  • The serializer replay test replays main's version 38 format (main38), with InsertMeshBarycentricFlag as in #6941's own fixtures.

Both sides wrote 38, so git merged RequestSerializer.cpp without a conflict at the old number, and only RequestSerializerTests.cpp stopped. #6639 and #6801 (on #6639's commits) also write 39, on bases with #6941, and merge the same way against this head, so whichever of #6639 and this change lands first keeps 39. #7332 also writes 39, on a base from before #6941. 30541537b is ready for the #6612 restack. #6612's head 77d218a50a still carries 83a04aba0's version 38 read, which collides with #6941's 38; restacked onto this head it reads 39 with the rest of this change, as #6612 adds no version of its own. Its three commits then conflict only where main changed since 0fbfd91e5 (CacheKey.hpp, Draw.cpp, DrawCapture.cpp, ShaderValidation.cpp).

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6279296855 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6279296855). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-19T23:05:38Z. --- @milescoviello thanks, rebased. The head is 30541537b on `main` 3aa4448ed3; it writes 39 and reads `mergedHull` only from 39. In the tests: - The flag now sits 52 bytes from the end, because #6941's mesh barycentric flag follows the draw fields after it. - The old-version loop also reads 38 as not merged, and drops #6941's byte for the versions before 38. - The serializer replay test replays `main`'s version 38 format (`main38`), with `InsertMeshBarycentricFlag` as in #6941's own fixtures. Both sides wrote 38, so git merged `RequestSerializer.cpp` without a conflict at the old number, and only `RequestSerializerTests.cpp` stopped. #6639 and #6801 (on #6639's commits) also write 39, on bases with #6941, and merge the same way against this head, so whichever of #6639 and this change lands first keeps 39. #7332 also writes 39, on a base from before #6941. 30541537b is ready for the #6612 restack. #6612's head 77d218a50a still carries 83a04aba0's version 38 read, which collides with #6941's 38; restacked onto this head it reads 39 with the rest of this change, as #6612 adds no version of its own. Its three commits then conflict only where `main` changed since 0fbfd91e5 (`CacheKey.hpp`, `Draw.cpp`, `DrawCapture.cpp`, `ShaderValidation.cpp`). AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 23:28:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T23:28:04Z.


@SleglJan thanks. #6612 is restacked onto 30541537b (09356fedba, pushed). As you said, it reads 39 with the rest of your change. The four conflicts were all main's mesh barycentric change (#6941), in CacheKey.hpp, ShaderValidation.cpp, Draw.cpp and DrawCapture.cpp, and both sides are kept in each. The graphics, tessellation, journal, serializer, mesh and geometry tests pass, 16 of 16, 3 of 3. The 1.4.363 validation layer gives no messages on your head or on #6612's.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6279613309 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6279613309). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T23:28:04Z. --- @SleglJan thanks. #6612 is restacked onto 30541537b (09356fedba, pushed). As you said, it reads 39 with the rest of your change. The four conflicts were all `main`'s mesh barycentric change (#6941), in `CacheKey.hpp`, `ShaderValidation.cpp`, `Draw.cpp` and `DrawCapture.cpp`, and both sides are kept in each. The graphics, tessellation, journal, serializer, mesh and geometry tests pass, 16 of 16, 3 of 3. The 1.4.363 validation layer gives no messages on your head or on #6612's. AI-assisted: yes (Claude Code)
oneandonlydean commented 2026-10-20 13:17:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T13:17:22Z.


Thanks, the merged hull path reads correctly, and all changed files compile on current main. One question before merge, about the test data:

The six 87-88 dword test programs (the MergedHull* cases in Tessellation.cpp and the one in PreparedGraphics.cpp) don't say how they were made. Were they assembled by hand (or written for this test) rather than copied from a title's shader binary? The repository can't carry code taken from game files, so a sentence in the description saying how they were produced is enough.

Also a heads-up on ordering: request version 39 is also used by #7888, #7410, #6801 and #6639, so whichever of these merges second will need to move to 40.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6291763616 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6291763616). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T13:17:22Z. --- Thanks, the merged hull path reads correctly, and all changed files compile on current `main`. One question before merge, about the test data: The six 87-88 dword test programs (the `MergedHull*` cases in `Tessellation.cpp` and the one in `PreparedGraphics.cpp`) don't say how they were made. Were they assembled by hand (or written for this test) rather than copied from a title's shader binary? The repository can't carry code taken from game files, so a sentence in the description saying how they were produced is enough. Also a heads-up on ordering: request version 39 is also used by #7888, #7410, #6801 and #6639, so whichever of these merges second will need to move to 40.
milescoviello commented 2026-10-20 13:27:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-20T13:27:40Z.


Thanks for the heads-up @oneandonlydean. If this lands first, I will move #6639 to 40. #6801 (JJenkx) builds on #6639 and would follow it. The test-data question is for @SleglJan.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6291970840 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6291970840). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-20T13:27:40Z. --- Thanks for the heads-up @oneandonlydean. If this lands first, I will move #6639 to 40. #6801 (JJenkx) builds on #6639 and would follow it. The test-data question is for @SleglJan. AI-assisted: yes (Claude Code)
SleglJan commented 2026-10-20 14:18:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-20T14:18:53Z.


@oneandonlydean they were written for these tests, from the programs already in Tessellation.cpp.

How each MergedHull* program is built. In order:

  1. An eight-dword entry. It does s_mov_b64 exec, -1, computes the lane id as HullCode does, runs v_cmpx_lt_u32 against the local lane count in s3[7:0], then s_cbranch_execz. Its new instructions were assembled with llvm-mc (gfx1010).
  2. main's LocalCode, without its s_swappc.
  3. Two dwords of glue.
  4. main's HullCode, with one LDS read offset changed (8 to 72).

The variants:

  • MergedHullReadLane replaces three v_mov_b32 with a v_readlane_b32 and a v_mov_b32, assembled with llvm-mc (gfx1030).
  • MergedHullDivergentBarrier inserts an s_barrier, so its branch moves by one.
  • MergedHullRegisters stores two other registers: buffer_store_dwordx2 v[8:9] instead of buffer_store_dwordx4 v[2:5].
  • MergedHullForeignRecord and MergedHullOutsidePatch each change one LDS offset.
  • The last three are word edits by hand, checked with llvm-mc's disassembler.

The PreparedGraphics.cpp cases use 64 filler words and s_endpgm, as main's Fixture does. CheckMergedHullVertexTables builds the same words inline, with its own header.

Where PPSA11386 comes in:

  • I took the merged entry's layout from the disassembly of PPSA11386's own merged programs, and the entry's first seven dwords (the lane test) also occur in those programs. Apart from HullCode's own v_mbcnt pair, which is in main, no run of four consecutive dwords from these programs occurs in the title's shader binaries I captured.
  • The vertex-table slots in CheckMergedHullVertexTables (10 and 12) are also the ones that title's merged headers use.

If you'd rather the tests share neither the seven dwords nor those slots, I'll re-encode the entry and move the slots.

One value from the title. Checking this, I found it in the tests: CheckMergedHullVertexTables filled the four user-data slots that must not be read as vertex tables with a word pair copied from a PPSA11386 run log. I've replaced it with a made-up pair, so the head is now 8b8219dcef. Nothing else changed. The prepared-graphics, tessellation, serializer and shader-memory tests pass on the Linux build node (lavapipe, 7 of 7). @milescoviello #6612 needs a restack onto 8b8219dcef for that one test line.

Description: it now has a paragraph on how the programs were made. In its version list, #7410 and #7888 are now at 39, and #7332, which is closed, is gone. The second to land takes 40, as milescoviello said for #6639 and #6801.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6293028325 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6293028325). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-20T14:18:53Z. --- @oneandonlydean they were written for these tests, from the programs already in `Tessellation.cpp`. **How each `MergedHull*` program is built.** In order: 1. An eight-dword entry. It does `s_mov_b64 exec, -1`, computes the lane id as `HullCode` does, runs `v_cmpx_lt_u32` against the local lane count in `s3[7:0]`, then `s_cbranch_execz`. Its new instructions were assembled with `llvm-mc` (gfx1010). 2. `main`'s `LocalCode`, without its `s_swappc`. 3. Two dwords of glue. 4. `main`'s `HullCode`, with one LDS read offset changed (8 to 72). **The variants:** - `MergedHullReadLane` replaces three `v_mov_b32` with a `v_readlane_b32` and a `v_mov_b32`, assembled with `llvm-mc` (gfx1030). - `MergedHullDivergentBarrier` inserts an `s_barrier`, so its branch moves by one. - `MergedHullRegisters` stores two other registers: `buffer_store_dwordx2 v[8:9]` instead of `buffer_store_dwordx4 v[2:5]`. - `MergedHullForeignRecord` and `MergedHullOutsidePatch` each change one LDS offset. - The last three are word edits by hand, checked with `llvm-mc`'s disassembler. **The `PreparedGraphics.cpp` cases** use 64 filler words and `s_endpgm`, as `main`'s `Fixture` does. `CheckMergedHullVertexTables` builds the same words inline, with its own header. **Where PPSA11386 comes in:** - I took the merged entry's layout from the disassembly of PPSA11386's own merged programs, and the entry's first seven dwords (the lane test) also occur in those programs. Apart from `HullCode`'s own `v_mbcnt` pair, which is in `main`, no run of four consecutive dwords from these programs occurs in the title's shader binaries I captured. - The vertex-table slots in `CheckMergedHullVertexTables` (10 and 12) are also the ones that title's merged headers use. If you'd rather the tests share neither the seven dwords nor those slots, I'll re-encode the entry and move the slots. **One value from the title.** Checking this, I found it in the tests: `CheckMergedHullVertexTables` filled the four user-data slots that must not be read as vertex tables with a word pair copied from a PPSA11386 run log. I've replaced it with a made-up pair, so the head is now 8b8219dcef. Nothing else changed. The prepared-graphics, tessellation, serializer and shader-memory tests pass on the Linux build node (lavapipe, 7 of 7). @milescoviello #6612 needs a restack onto 8b8219dcef for that one test line. **Description:** it now has a paragraph on how the programs were made. In its version list, #7410 and #7888 are now at 39, and #7332, which is closed, is gone. The second to land takes 40, as milescoviello said for #6639 and #6801. AI-assisted: yes (Claude Code)
wachi35676 commented 2026-10-20 16:01:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-20T16:01:12Z.


An AMD data point after the merge. agc_driver_tessellation fails on AMD's proprietary Windows driver, on an AMD Radeon RDNA2 iGPU (1002:13c0, driver 32.0.21042.62, ANYPS5_GPU=AMD), 3 of 3:

AGC graphics: merged hull program, unculled: the level-1 patch was not drawn as one flat triangle, centre (16, 24, 40, 255)

Setup: Windows 11, WinLibs GCC 15.2.0, Release, ANYPS5_REQUIRE_VULKAN=1. The tree is main d073fe6a1 plus #7410, which only touches compute wave64 shared VGPRs. On the RTX 5070 Ti (617.42), the same build passes. I haven't looked into the cause.

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6295245676 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6295245676). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-20T16:01:12Z. --- An AMD data point after the merge. `agc_driver_tessellation` fails on AMD's proprietary Windows driver, on an AMD Radeon RDNA2 iGPU (`1002:13c0`, driver 32.0.21042.62, `ANYPS5_GPU=AMD`), 3 of 3: ``` AGC graphics: merged hull program, unculled: the level-1 patch was not drawn as one flat triangle, centre (16, 24, 40, 255) ``` Setup: Windows 11, WinLibs GCC 15.2.0, Release, `ANYPS5_REQUIRE_VULKAN=1`. The tree is `main` `d073fe6a1` plus #7410, which only touches compute wave64 shared VGPRs. On the RTX 5070 Ti (617.42), the same build passes. I haven't looked into the cause. AI-assisted: yes (Claude Code); results above were run on this machine.
SleglJan commented 2026-10-20 18:15:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-20T18:15:15Z.


@wachi35676 thanks for the data point. I can't reach that case on an AMD GPU here. On the Ryzen 9 7950X3D's iGPU (RDNA2, RADV, Mesa 26.2.4), agc_driver_tessellation crashes inside the driver in the fourth separate-hull case (HullDynamicIndex). With APS5_NO_GPL=1 it segfaults too; I didn't trace where. That matches #5444, Mesa 26.2's nir_opt_varyings crash on a hull that reads a control point at a computed index. The build was main 68323bae7 with #5799, #6868, #5372, #6918, #7643 and #6679 (at 0307183985).

The test stops at its first failure, so in your run the separate-hull cases before the merged ones passed. (16, 24, 40, 255) is the test's background colour, so the level-1 patch wasn't drawn at all. The difference is in what the merged lowering adds to the same patches.

Three things on your machine would narrow it down:

  1. Check the pipelineLibrary= value in the device's "Vulkan features" line.
  2. If it's 1, run with APS5_NO_GPL=1, so the draws go without graphics pipeline libraries. If the merged cases then pass, it's the library link on that driver.
  3. Run with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, to see whether any VUID- appears before the failure.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6297901812 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6297901812). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-20T18:15:15Z. --- @wachi35676 thanks for the data point. I can't reach that case on an AMD GPU here. On the Ryzen 9 7950X3D's iGPU (RDNA2, RADV, Mesa 26.2.4), `agc_driver_tessellation` crashes inside the driver in the fourth separate-hull case (`HullDynamicIndex`). With `APS5_NO_GPL=1` it segfaults too; I didn't trace where. That matches #5444, Mesa 26.2's `nir_opt_varyings` crash on a hull that reads a control point at a computed index. The build was `main` 68323bae7 with #5799, #6868, #5372, #6918, #7643 and #6679 (at 0307183985). The test stops at its first failure, so in your run the separate-hull cases before the merged ones passed. (16, 24, 40, 255) is the test's background colour, so the level-1 patch wasn't drawn at all. The difference is in what the merged lowering adds to the same patches. Three things on your machine would narrow it down: 1. Check the `pipelineLibrary=` value in the device's "Vulkan features" line. 2. If it's 1, run with `APS5_NO_GPL=1`, so the draws go without graphics pipeline libraries. If the merged cases then pass, it's the library link on that driver. 3. Run with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, to see whether any `VUID-` appears before the failure. AI-assisted: yes (Claude Code)
JJenkx commented 2026-10-21 01:15:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T01:15:08Z.


Regression on AMD (Windows): agc_driver_tessellation fails since this merge on an AMD Radeon RX 6700 XT (gfx1031, AMD proprietary driver 26.8.1, maxMeshOutputLayers 8), Windows 11 22621, WinLibs GCC 15.2 UCRT r7, Release, fresh BUILD_TESTING=ON build:

  • 3177d1989 (this merge's first parent): passes
  • 5ccf1824d (this merge): fails, and still fails on main 57fdffd91:
AGC graphics: merged hull program, unculled: the level-1 patch was not drawn as one flat triangle, centre (16, 24, 40, 255)

The tested GPUs above are lavapipe and an RTX 3080, so this may be AMD-specific. I can run a build or a diagnostic on this card if that helps.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6305552436 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6305552436). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-21T01:15:08Z. --- Regression on AMD (Windows): `agc_driver_tessellation` fails since this merge on an AMD Radeon RX 6700 XT (gfx1031, AMD proprietary driver 26.8.1, `maxMeshOutputLayers` 8), Windows 11 22621, WinLibs GCC 15.2 UCRT r7, Release, fresh `BUILD_TESTING=ON` build: - `3177d1989` (this merge's first parent): passes - `5ccf1824d` (this merge): fails, and still fails on `main` 57fdffd91: ``` AGC graphics: merged hull program, unculled: the level-1 patch was not drawn as one flat triangle, centre (16, 24, 40, 255) ``` The tested GPUs above are lavapipe and an RTX 3080, so this may be AMD-specific. I can run a build or a diagnostic on this card if that helps.
SleglJan commented 2026-10-21 01:48:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-21T01:48:09Z.


@JJenkx thanks for the bisect, and yes, a run on that card would help. An AMD data point from Linux first:

  • Setup: RADV on a Ryzen 9 7950X3D iGPU (gfx1036, Mesa 26.2.4), main 339217ebc9.
    • HullDynamicIndex crashes RADV before the merged cases are reached (#5444). I also dropped the neighbouring DomainComputedPoint locally; I didn't check it on its own.
  • Result: agc_driver_tessellation_tests passes 3 of 3 runs, including both merged-hull draws, with pipelineLibrary=1 in the "Vulkan features" line. It also passes with APS5_NO_GPL=1 (pipelineLibrary=0), and under VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation with no VUID-.

So RADV draws the merged programs. @wachi35676's RTX 5070 Ti passes on the same Windows build, so what you both see points to AMD's proprietary Windows driver. On the RX 6700 XT, the same three checks I asked @wachi35676 for above would narrow it down:

  1. The pipelineLibrary= value in the device's "Vulkan features" line.
  2. If it's 1, a run with APS5_NO_GPL=1. If the merged cases then pass, it's the library link on that driver.
  3. A run with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, to see whether any VUID- appears before the failure.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6305991404 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6305991404). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-21T01:48:09Z. --- @JJenkx thanks for the bisect, and yes, a run on that card would help. An AMD data point from Linux first: - **Setup:** RADV on a Ryzen 9 7950X3D iGPU (gfx1036, Mesa 26.2.4), `main` 339217ebc9. - `HullDynamicIndex` crashes RADV before the merged cases are reached (#5444). I also dropped the neighbouring `DomainComputedPoint` locally; I didn't check it on its own. - **Result:** `agc_driver_tessellation_tests` passes 3 of 3 runs, including both merged-hull draws, with `pipelineLibrary=1` in the "Vulkan features" line. It also passes with `APS5_NO_GPL=1` (`pipelineLibrary=0`), and under `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` with no `VUID-`. So RADV draws the merged programs. @wachi35676's RTX 5070 Ti passes on the same Windows build, so what you both see points to AMD's proprietary Windows driver. On the RX 6700 XT, the same three checks I asked @wachi35676 for above would narrow it down: 1. The `pipelineLibrary=` value in the device's "Vulkan features" line. 2. If it's 1, a run with `APS5_NO_GPL=1`. If the merged cases then pass, it's the library link on that driver. 3. A run with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, to see whether any `VUID-` appears before the failure. AI-assisted: yes (Claude Code)
JJenkx commented 2026-10-21 03:20:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T03:20:18Z.


@SleglJan the three checks on the RX 6700 XT (Windows 11 22621, AMD driver 26.8.1, MinGW GCC 15.2 Release), agc_driver_tessellation_tests built from main 6c12024f7:

  1. "Vulkan features" line: tessellationAvailable=1 mesh=1 depthClip=1 depthRangeUnrestricted=1 pipelineLibrary=1.
  2. Default (pipelineLibrary=1): fails at AGC graphics: merged hull program, unculled: the level-1 patch was not drawn as one flat triangle, centre (16, 24, 40, 255). With APS5_NO_GPL=1 (pipelineLibrary=0): fails at the same check, but the centre is (255, 243, 0, 255). So it is not only the library link. Without libraries something is drawn at the centre, but still not the flat triangle.
  3. Not done: the Khronos validation layer is not installed on this machine (no Vulkan SDK; the only registered explicit layer is a third-party one), so VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation loaded nothing and the zero VUID- count means nothing. I will add it if I can install the layer.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6307195281 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6307195281). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-21T03:20:18Z. --- @SleglJan the three checks on the RX 6700 XT (Windows 11 22621, AMD driver 26.8.1, MinGW GCC 15.2 Release), `agc_driver_tessellation_tests` built from `main` 6c12024f7: 1. "Vulkan features" line: `tessellationAvailable=1 mesh=1 depthClip=1 depthRangeUnrestricted=1 pipelineLibrary=1`. 2. Default (`pipelineLibrary=1`): fails at `AGC graphics: merged hull program, unculled: the level-1 patch was not drawn as one flat triangle, centre (16, 24, 40, 255)`. With `APS5_NO_GPL=1` (`pipelineLibrary=0`): fails at the same check, but the centre is `(255, 243, 0, 255)`. So it is not only the library link. Without libraries something is drawn at the centre, but still not the flat triangle. 3. Not done: the Khronos validation layer is not installed on this machine (no Vulkan SDK; the only registered explicit layer is a third-party one), so `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` loaded nothing and the zero `VUID-` count means nothing. I will add it if I can install the layer.
SleglJan commented 2026-10-21 03:44:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-21T03:44:53Z.


@JJenkx thanks, that helps. The two colours say different things about patch 0:

  • With libraries, the centre is the background, so nothing covers that patch's centre.
  • Without them, the centre is the patch colour with a high green channel. The domain program writes green from the barycentric coordinates, so a flat level-1 triangle has none and that pixel is an interior point.

So patch 0 differs between the two modes on that driver, while NVIDIA and RADV draw it flat. The domain program passed earlier in the same run with the separate hulls, so the difference is in the merged program's local or hull half. Either the merged lowering relies on behaviour Vulkan doesn't guarantee, or the driver mishandles it. I'm reading the lowering now. If a diagnostic build would separate the candidates, I'll push one to a branch on my fork and ask you to run it.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6307513151 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6307513151). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-21T03:44:53Z. --- @JJenkx thanks, that helps. The two colours say different things about patch 0: - With libraries, the centre is the background, so nothing covers that patch's centre. - Without them, the centre is the patch colour with a high green channel. The domain program writes green from the barycentric coordinates, so a flat level-1 triangle has none and that pixel is an interior point. So patch 0 differs between the two modes on that driver, while NVIDIA and RADV draw it flat. The domain program passed earlier in the same run with the separate hulls, so the difference is in the merged program's local or hull half. Either the merged lowering relies on behaviour Vulkan doesn't guarantee, or the driver mishandles it. I'm reading the lowering now. If a diagnostic build would separate the candidates, I'll push one to a branch on my fork and ask you to run it. AI-assisted: yes (Claude Code)
JJenkx commented 2026-10-21 04:04:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T04:04:31Z.


Correction to my last comment: the APS5_NO_GPL=1 difference does not reproduce. Five more runs each, same build and machine: all ten fail at the same check with centre (16, 24, 40, 255), whether pipelineLibrary=1 or pipelineLibrary=0. The single yellow (255, 243, 0, 255) result was only the first no-library run (possibly the first time those pipelines were built without libraries; not established). So turning off the library link changes nothing on this driver: the merged-hull draw leaves the clear colour either way.

Check 3 is still not done. The only Windows build of the validation layer I could get without the SDK (MSYS2's, 1.4.363) needs the GCC 16 C++ runtime. Loaded into this GCC 15.2 build, it hangs at layer initialization. I will report it if I get a working layer.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6307755972 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6307755972). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-21T04:04:31Z. --- Correction to my last comment: the `APS5_NO_GPL=1` difference does not reproduce. Five more runs each, same build and machine: all ten fail at the same check with centre `(16, 24, 40, 255)`, whether `pipelineLibrary=1` or `pipelineLibrary=0`. The single yellow `(255, 243, 0, 255)` result was only the first no-library run (possibly the first time those pipelines were built without libraries; not established). So turning off the library link changes nothing on this driver: the merged-hull draw leaves the clear colour either way. Check 3 is still not done. The only Windows build of the validation layer I could get without the SDK (MSYS2's, 1.4.363) needs the GCC 16 C++ runtime. Loaded into this GCC 15.2 build, it hangs at layer initialization. I will report it if I get a working layer.
SleglJan commented 2026-10-21 04:51:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-21T04:51:21Z.


@JJenkx thanks for the correction. With the centre background in all ten runs, the library link is out. The validation-layer check waits for a working layer.

A diagnostic build would separate the remaining candidates. The branch diag/merged-hull-amd on my fork is one commit (2127ffe37d) on main 7ab4b2e561.

  • It adds three switches. With all of them off it emits the same shaders as main.
  • APS5_DIAG_MERGED_CONSUME and APS5_DIAG_MERGED_BARRIER change only merged-hull draws; APS5_DIAG_MERGED_READBACK changes every tessellation draw.
  • Any value turns a switch on, 0 included.

From the build directory, with agc_driver_tessellation_tests only. In cmd the binary is tests\agc_driver_tessellation_tests.exe. Set the variables first, and clear the previous switch between runs (set APS5_DIAG_MERGED_CONSUME=).

  1. ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 tests/agc_driver_tessellation_tests
  2. The same with APS5_DIAG_MERGED_CONSUME=1: the domain stage reads the hull's shared records, so that hull output has a consumer.
  3. The same with APS5_DIAG_MERGED_BARRIER=1: the merged hull's barrier gets memory semantics (AcquireRelease | WorkgroupMemory, Device scope).
  4. The same with APS5_DIAG_MERGED_READBACK=1:
    • the hull stores its level source per patch and keeps every patch drawn, and the domain writes that source into the blue channel;
    • each draw then prints a "diag …" line with the three patch centres and coverage counts, its checks no longer stop at the first failure, and the run ends with a summary after the two merged cases.
    • The whole stdout of this run would be the most useful.
  5. Only if run 2 passes: APS5_DIAG_MERGED_CONSUME=place, which moves the records without the consumer.

On a driver that works, runs 1, 2, 3 and 5 print "Tessellation tests passed", and run 4 ends with "20 checks failed, 20 of them the level-0 patch drawn by design" and exits 0. In run 4, patch 0's blue shows what its hull read as the level source:

  • 96 is the right value;
  • 64 means it read 0: an unwritten record, or the level-0 patch's;
  • 223 means it read patch 2's record;
  • 0 or 255 means garbage;
  • (16, 24, 40) is still the background, not a reading.

All five runs pass on an RTX 3080 and lavapipe, and on RADV (gfx1036) with the two computed-index cases skipped locally (#5444). There, run 4 ends 16 of 16. Runs 2–4 under the validation layer on the RTX report no VUID-.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6308335075 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6679#issuecomment-6308335075). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-21T04:51:21Z. --- @JJenkx thanks for the correction. With the centre background in all ten runs, the library link is out. The validation-layer check waits for a working layer. A diagnostic build would separate the remaining candidates. The branch [`diag/merged-hull-amd`](https://github.com/SleglJan/AnyPS5/tree/diag/merged-hull-amd) on my fork is one commit (2127ffe37d) on `main` 7ab4b2e561. - It adds three switches. With all of them off it emits the same shaders as `main`. - `APS5_DIAG_MERGED_CONSUME` and `APS5_DIAG_MERGED_BARRIER` change only merged-hull draws; `APS5_DIAG_MERGED_READBACK` changes every tessellation draw. - Any value turns a switch on, `0` included. From the build directory, with `agc_driver_tessellation_tests` only. In cmd the binary is `tests\agc_driver_tessellation_tests.exe`. Set the variables first, and clear the previous switch between runs (`set APS5_DIAG_MERGED_CONSUME=`). 1. `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 tests/agc_driver_tessellation_tests` 2. The same with `APS5_DIAG_MERGED_CONSUME=1`: the domain stage reads the hull's shared records, so that hull output has a consumer. 3. The same with `APS5_DIAG_MERGED_BARRIER=1`: the merged hull's barrier gets memory semantics (AcquireRelease | WorkgroupMemory, Device scope). 4. The same with `APS5_DIAG_MERGED_READBACK=1`: - the hull stores its level source per patch and keeps every patch drawn, and the domain writes that source into the blue channel; - each draw then prints a "diag …" line with the three patch centres and coverage counts, its checks no longer stop at the first failure, and the run ends with a summary after the two merged cases. - The whole stdout of this run would be the most useful. 5. Only if run 2 passes: `APS5_DIAG_MERGED_CONSUME=place`, which moves the records without the consumer. On a driver that works, runs 1, 2, 3 and 5 print "Tessellation tests passed", and run 4 ends with "20 checks failed, 20 of them the level-0 patch drawn by design" and exits 0. In run 4, patch 0's blue shows what its hull read as the level source: - 96 is the right value; - 64 means it read 0: an unwritten record, or the level-0 patch's; - 223 means it read patch 2's record; - 0 or 255 means garbage; - (16, 24, 40) is still the background, not a reading. All five runs pass on an RTX 3080 and lavapipe, and on RADV (gfx1036) with the two computed-index cases skipped locally (#5444). There, run 4 ends 16 of 16. Runs 2–4 under the validation layer on the RTX report no `VUID-`. AI-assisted: yes (Claude Code)
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!6679
No description provided.