fix(agc): render all attachment layers with dynamic rendering #3763

Merged
eljackjoestar-cmd merged 12 commits from upstream-pr/3763 into main 2026-10-13 10:32:54 +00:00
eljackjoestar-cmd commented 2026-10-11 16:33:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by eljackjoestar-cmd on 2026-10-11T16:33:12Z.


What

With #1077's layered-target support, dynamic rendering must use the validated attachment layer count rather than one. Set VkRenderingInfoKHR::layerCount to state.renderLayers, matching the conventional framebuffer path.

Validate nonzero layers and maxFramebufferLayers before the dynamic-rendering constructor return. Retain main's nonlayered array-view admission and limit the array bit-18 rejection to non-3D targets. The mesh validation fixture uses the device target's subgroup size.

This branch carries #1077's authored implementation and layered-volume fixtures. Rebased onto main 4bb2c7f3947440d513b1dbd12143ec55b250495a, which includes merged #423. Both old copied #423 commits (995b8ee5a/21122721c, later 745dbf031/3bb16903d) are dropped from the topic history. The draw and preparation paths retain main's PositionExportLayout and add the routed layer bits at use. Clip/cull validation and its tests are retained from main.

Request serialization writes version 21 and continues reading version 20's position export field at its original boundary. Tests cover version 20, older vertex captures, and combined clip-distance/layer bits. #4451 also proposes version 21; whichever merges second must renumber.

Dependencies and merge order

#423 is merged. This branch carries #1077 rather than requiring its separate merge. The agreed sequencing with #4715 remains: #423 and #4584, then #4715, then this branch. The #4715 ordering is separate from the runtime layer-count correction. Combined validation with #4715 is not claimed here.

Tested

Final head dedb869fa2e860903d0403d8edff42211305c51f. Windows 11 x64, Ryzen 7 7800X3D, 32 GiB RAM, RTX 5070 (device subgroup size 32), WinLibs GCC 15.2, Release, BUILD_TESTING=ON.

Full Windows Release build passes. Ten focused tests pass without skips in 7.03 s:

  • agc_shader_memory
  • agc_driver_graphics
  • agc_driver_layered_volume_draw
  • agc_driver_layered_volume_submit
  • agc_driver_layered_volume_vertex
  • agc_driver_layered_volume_vertex_no_gpl
  • agc_driver_vertex_clip_cull_distances
  • agc_driver_vertex_clip_cull_draw
  • agc_driver_vertex_clip_cull_draw_no_key
  • agc_vertex_layer_export

The framebuffer regression rejects zero and excessive layer counts for both dynamic and conventional constructor paths, and accepts the dynamic path's limit boundary. Layered vertex readbacks check every channel of four slices, including routed bands and the untouched slice outside the view. The mesh case validates shader metadata on the physical subgroup size; it does not perform mesh pixel readback. Driver submission checks ordinary, uncompressed-DCC and fast-clear-DCC rendering. Its fixture now calls #423's explicit driver shutdown on success and exception paths: the first test run completed all readback checks but crashed at teardown without that call; the final run above exits cleanly.

Conventions and whitespace checks pass. Earlier title tests used a broader Lost Soul Aside PPSA26358 integration; this update does not claim a fresh game run, full-suite/CI success or complete playability.

Checklist

  • Topic branch based on main
  • One topic; #1077 implementation authorship retained
  • Known 3D/DCC assumptions recorded in technical debt
  • Unimplemented paths throw; no silent stubs added
  • No investigation files, images or game data committed
  • No new third-party code
  • Generic behaviour
  • Depends on: #4715 (agreed merge order; #4584 remains its prerequisite); #1077 carried here, #423 merged
  • Unblocks: PPSA26358 #4401
  • AI-assisted: yes, OpenAI Codex
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4820584544 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3763). Originally posted by [eljackjoestar-cmd](https://github.com/eljackjoestar-cmd) on 2026-10-11T16:33:12Z. --- ### What With #1077's layered-target support, dynamic rendering must use the validated attachment layer count rather than one. Set `VkRenderingInfoKHR::layerCount` to `state.renderLayers`, matching the conventional framebuffer path. Validate nonzero layers and `maxFramebufferLayers` before the dynamic-rendering constructor return. Retain main's nonlayered array-view admission and limit the array bit-18 rejection to non-3D targets. The mesh validation fixture uses the device target's subgroup size. This branch carries #1077's authored implementation and layered-volume fixtures. Rebased onto main `4bb2c7f3947440d513b1dbd12143ec55b250495a`, which includes merged #423. Both old copied #423 commits (`995b8ee5a`/`21122721c`, later `745dbf031`/`3bb16903d`) are dropped from the topic history. The draw and preparation paths retain main's `PositionExportLayout` and add the routed layer bits at use. Clip/cull validation and its tests are retained from main. Request serialization writes version 21 and continues reading version 20's position export field at its original boundary. Tests cover version 20, older vertex captures, and combined clip-distance/layer bits. #4451 also proposes version 21; whichever merges second must renumber. ### Dependencies and merge order #423 is merged. This branch carries #1077 rather than requiring its separate merge. The agreed sequencing with #4715 remains: #423 and #4584, then #4715, then this branch. The #4715 ordering is separate from the runtime layer-count correction. Combined validation with #4715 is not claimed here. ### Tested Final head `dedb869fa2e860903d0403d8edff42211305c51f`. Windows 11 x64, Ryzen 7 7800X3D, 32 GiB RAM, RTX 5070 (device subgroup size 32), WinLibs GCC 15.2, Release, `BUILD_TESTING=ON`. Full Windows Release build passes. Ten focused tests pass without skips in 7.03 s: - `agc_shader_memory` - `agc_driver_graphics` - `agc_driver_layered_volume_draw` - `agc_driver_layered_volume_submit` - `agc_driver_layered_volume_vertex` - `agc_driver_layered_volume_vertex_no_gpl` - `agc_driver_vertex_clip_cull_distances` - `agc_driver_vertex_clip_cull_draw` - `agc_driver_vertex_clip_cull_draw_no_key` - `agc_vertex_layer_export` The framebuffer regression rejects zero and excessive layer counts for both dynamic and conventional constructor paths, and accepts the dynamic path's limit boundary. Layered vertex readbacks check every channel of four slices, including routed bands and the untouched slice outside the view. The mesh case validates shader metadata on the physical subgroup size; it does not perform mesh pixel readback. Driver submission checks ordinary, uncompressed-DCC and fast-clear-DCC rendering. Its fixture now calls #423's explicit driver shutdown on success and exception paths: the first test run completed all readback checks but crashed at teardown without that call; the final run above exits cleanly. Conventions and whitespace checks pass. Earlier title tests used a broader Lost Soul Aside PPSA26358 integration; this update does not claim a fresh game run, full-suite/CI success or complete playability. ### Checklist - [x] Topic branch based on main - [x] One topic; #1077 implementation authorship retained - [x] Known 3D/DCC assumptions recorded in technical debt - [x] Unimplemented paths throw; no silent stubs added - [x] No investigation files, images or game data committed - [x] No new third-party code - [x] Generic behaviour - [x] Depends on: #4715 (agreed merge order; #4584 remains its prerequisite); #1077 carried here, #423 merged - [x] Unblocks: PPSA26358 #4401 - [x] AI-assisted: yes, OpenAI Codex
GustavoGamarra95 commented 2026-10-11 19:48:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by GustavoGamarra95 on 2026-10-11T19:48:47Z.


This also fixes Beast of Reincarnation (PPSA29343, Unreal Engine). It builds its 32x32x32 color-grading LUT (an A2B10G10R10 3D color target) with one draw of 32 instances whose vertex program picks the layer (PA_CL_VS_OUT_CNTL bit 18). With layerCount at 1 only slice 0 was written, holding the last instance; the tonemapper then mapped dark colors to white and bright ones to black, and the title screen showed a luminance negative. With the same one-line change on my branch the title screen renders as on the console.

Measured on Linux: agc_driver_layered_volume_draw and agc_driver_layered_volume_submit failed on an RTX 3050 Laptop (NVIDIA 615.78.08) and on lavapipe with "slice 1 ... another layer's band", and pass with the change (vertex case). A Radeon 660M (RADV) passed both before and after. On the RTX 3050 the mesh case of the draw test still fails with "missing or incompatible shader execution mode" and the submit test segfaults at exit; both also happen without the change.

We are still analyzing the remaining rendering issues of this title and an improvement for GPUs with little VRAM.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6113023573 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3763#issuecomment-6113023573). Originally posted by [GustavoGamarra95](https://github.com/GustavoGamarra95) on 2026-10-11T19:48:47Z. --- This also fixes Beast of Reincarnation (PPSA29343, Unreal Engine). It builds its 32x32x32 color-grading LUT (an A2B10G10R10 3D color target) with one draw of 32 instances whose vertex program picks the layer (`PA_CL_VS_OUT_CNTL` bit 18). With `layerCount` at 1 only slice 0 was written, holding the last instance; the tonemapper then mapped dark colors to white and bright ones to black, and the title screen showed a luminance negative. With the same one-line change on my branch the title screen renders as on the console. Measured on Linux: `agc_driver_layered_volume_draw` and `agc_driver_layered_volume_submit` failed on an RTX 3050 Laptop (NVIDIA 615.78.08) and on lavapipe with "slice 1 ... another layer's band", and pass with the change (vertex case). A Radeon 660M (RADV) passed both before and after. On the RTX 3050 the mesh case of the draw test still fails with "missing or incompatible shader execution mode" and the submit test segfaults at exit; both also happen without the change. We are still analyzing the remaining rendering issues of this title and an improvement for GPUs with little VRAM.
johnmaia commented 2026-10-12 11:54:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-12T11:54:15Z.


Tested with Epic Mickey: Rebrushed (PPSA15657, Unreal Engine) on Linux, RX 7600 (RADV NAVI33, Mesa 25.2.8).

  • On main the title stops at the start of the first level with "color views of several array slices are unsupported" (#2102).
  • With this branch (plus #2904 and #425 for its depth storage images) it gets past that and renders the level, including the layered translucency lighting volume.
  • The GPU hang I saw at the first lighting-volume pass on this branch was not caused by it: it was the pipeline library depth-format bug fixed in #4363. With both, the level ran 20 min with no hang.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6123739183 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3763#issuecomment-6123739183). Originally posted by [johnmaia](https://github.com/johnmaia) on 2026-10-12T11:54:15Z. --- Tested with Epic Mickey: Rebrushed (PPSA15657, Unreal Engine) on Linux, RX 7600 (RADV NAVI33, Mesa 25.2.8). - On `main` the title stops at the start of the first level with "color views of several array slices are unsupported" (#2102). - With this branch (plus #2904 and #425 for its depth storage images) it gets past that and renders the level, including the layered translucency lighting volume. - The GPU hang I saw at the first lighting-volume pass on this branch was not caused by it: it was the pipeline library depth-format bug fixed in #4363. With both, the level ran 20 min with no hang.
queeeef commented 2026-10-12 19:22:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by queeeef on 2026-10-12T19:22:45Z.


Palworld (PPSA23126) needs this. On an RTX 2080 Ti (NVIDIA 610.74), graphics pipeline libraries are available, so draws take the dynamic rendering path.

The title makes three layered draws (PA_CL_VS_OUT_CNTL 0x01240000, the render target index through the misc vector):

Target View Likely use
32x32x32 3D, A2B10G10R10, one color target slices 0..32 the color grading LUT
48x48x48 3D, R16G16B16A16_SFLOAT, two color targets slices 0..48 the translucency lighting volume
512x512 depth, no color target DB_DEPTH_VIEW slices 0..5 a point light's cube shadow map

With #1077 merged locally but layerCount still 1, only slice 0 of the LUT and of the volume was written. Every frame goes through the LUT, so the whole world rendered dark and grey, with odd tints and almost no colour.

With layerCount set from the framebuffer's layer count, as here, and nothing else changed, the same scene has normal colours: blue sky and distant terrain through an archway, warm torch light on the stone, skin and hair in the right tones.

The depth-only cube draw is not covered by this PR or #1077: layered rendering with a depth target is not implemented, so its six faces still land in one slice.

Setup: Windows 11 Pro 26300, RTX 2080 Ti (NVIDIA 610.74), MinGW-w64 GCC 15.2.0, main 5d933db02 with #1077 and the open PRs the title needs (#2648), local change equivalent to this PR's layerCount.

AI-assisted (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6131063024 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3763#issuecomment-6131063024). Originally posted by [queeeef](https://github.com/queeeef) on 2026-10-12T19:22:45Z. --- Palworld (PPSA23126) needs this. On an RTX 2080 Ti (NVIDIA 610.74), graphics pipeline libraries are available, so draws take the dynamic rendering path. The title makes three layered draws (`PA_CL_VS_OUT_CNTL` `0x01240000`, the render target index through the misc vector): | Target | View | Likely use | |---|---|---| | 32x32x32 3D, `A2B10G10R10`, one color target | slices 0..32 | the color grading LUT | | 48x48x48 3D, `R16G16B16A16_SFLOAT`, two color targets | slices 0..48 | the translucency lighting volume | | 512x512 depth, no color target | `DB_DEPTH_VIEW` slices 0..5 | a point light's cube shadow map | With #1077 merged locally but `layerCount` still 1, only slice 0 of the LUT and of the volume was written. Every frame goes through the LUT, so the whole world rendered dark and grey, with odd tints and almost no colour. With `layerCount` set from the framebuffer's layer count, as here, and nothing else changed, the same scene has normal colours: blue sky and distant terrain through an archway, warm torch light on the stone, skin and hair in the right tones. The depth-only cube draw is not covered by this PR or #1077: layered rendering with a depth target is not implemented, so its six faces still land in one slice. Setup: Windows 11 Pro 26300, RTX 2080 Ti (NVIDIA 610.74), MinGW-w64 GCC 15.2.0, `main` `5d933db02` with #1077 and the open PRs the title needs (#2648), local change equivalent to this PR's `layerCount`. AI-assisted (Claude Code)
Amoenus commented 2026-10-13 00:50:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-13T00:50:18Z.


Current serialization coordination with #4451: #3763 is merged and establishes canonical request 21. Our corrected head 0bcf45842, pinned to main 075169f7b3faeae1216efc35df41c44fac9f3190, writes format 22 for the added pixel dither flag. It preserves the primitive reader at >=19 and vertex paClVsOutCntl reader at >=20. Twelve original main-4bb version-20 requests and twelve independently emitted/round-tripped main-075 version-21 requests establish the compact compatibility bodies; these twelve pairs differ only at the version byte. Both canonical versions, nonzero vertex controls, trailing fields and upgrade identity are checked. The dither gate lowered to21 or20 and vertex gate raised to21 each produce the expected serializer failure; exact restoration/rebuild and compatibility x20 pass. Full NVIDIA: 1054 passed / 0 failed / 8 skipped of 1062, maximum 24.0818 s; current AMD limitations remain in #4451/#4768. This tests the corrected alpha branch on the merged canonical layout, not compatibility with other unmerged proposals. No new title/console or full upstream-CI claim. AI-assisted: Codex.

Historical audit: #3763 head53dae55 and the old #4451 headffd987b both used19 for different vertex/pixel fields while main was16–18. Those fork layouts cannot be distinguished by their version alone; they are not canonical main19. No combined-head build/runtime or cross-deserialization test is claimed. AI-assisted: Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6135588560 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3763#issuecomment-6135588560). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-13T00:50:18Z. --- **Current serialization coordination with #4451:** #3763 is merged and establishes canonical request 21. Our [corrected head 0bcf45842](https://github.com/Amoenus/AnyPS5/commit/0bcf458425f514f25b50b24a7695aa1cc3c79181), pinned to main `075169f7b3faeae1216efc35df41c44fac9f3190`, writes format 22 for the added pixel dither flag. It preserves the primitive reader at >=19 and vertex `paClVsOutCntl` reader at >=20. Twelve original main-4bb version-20 requests and twelve independently emitted/round-tripped main-075 version-21 requests establish the compact compatibility bodies; these twelve pairs differ only at the version byte. Both canonical versions, nonzero vertex controls, trailing fields and upgrade identity are checked. The dither gate lowered to21 or20 and vertex gate raised to21 each produce the expected serializer failure; exact restoration/rebuild and compatibility x20 pass. Full NVIDIA: 1054 passed / 0 failed / 8 skipped of 1062, maximum 24.0818 s; current AMD limitations remain in #4451/#4768. This tests the corrected alpha branch on the merged canonical layout, not compatibility with other unmerged proposals. No new title/console or full upstream-CI claim. AI-assisted: Codex. Historical audit: #3763 head53dae55 and the old #4451 headffd987b both used19 for different vertex/pixel fields while main was16–18. Those fork layouts cannot be distinguished by their version alone; they are not canonical main19. No combined-head build/runtime or cross-deserialization test is claimed. AI-assisted: Codex.
winstrex commented 2026-10-13 01:14:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by winstrex on 2026-10-13T01:14:33Z.


Windows + NVIDIA data point: Windows 11, WinLibs GCC 15.2.0, Release, RTX 5070 Ti (pipeline libraries, so draws take the dynamic-rendering path). Head 53dae55dc merged onto main 758aca737 (clean).

Both titles make the same layered draw as in #2102: a 64x64x64 RGBA16F 3D target with DCC, CB_COLOR_VIEW 0x80000, PA_CL_VS_OUT_CNTL 0x01240000.

  • The Pathless (PPSA01825), with #4500, #4491 and a local CMASK fix on top to get there. Without this PR, 2 of 4 runs stop at color views of several array slices are unsupported (the other 2 crash earlier in unrelated faults). With it, 2 of 4 runs reach the main menu and are still running there after 150 s with no error; the other 2 crash earlier in the title's Wwise thread, before the layered draw.
  • LEGO Horizon Adventures (PPSA14632, 01.004.000), this PR alone. Without it, 3 of 3 runs stop at the layered-draw check. With it, 4 of 4 get past it: 3 then stop at #1409 (storage image access to depth/stencil surface ... (storage=2112x1188 guest format=22 mip=0 dimension=1 tile=4)), and 1 ran to 75 s and then faulted in the title (write of 0x0 at app.exe+0x37dd2b), cause not traced. Nothing new is visible before those stops (loading spinner, then black, as on main).
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6135931615 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3763#issuecomment-6135931615). Originally posted by [winstrex](https://github.com/winstrex) on 2026-10-13T01:14:33Z. --- Windows + NVIDIA data point: Windows 11, WinLibs GCC 15.2.0, Release, RTX 5070 Ti (pipeline libraries, so draws take the dynamic-rendering path). Head `53dae55dc` merged onto `main` `758aca737` (clean). Both titles make the same layered draw as in #2102: a 64x64x64 RGBA16F 3D target with DCC, `CB_COLOR_VIEW` 0x80000, `PA_CL_VS_OUT_CNTL` 0x01240000. - **The Pathless (PPSA01825)**, with #4500, #4491 and a local CMASK fix on top to get there. Without this PR, 2 of 4 runs stop at `color views of several array slices are unsupported` (the other 2 crash earlier in unrelated faults). With it, 2 of 4 runs reach the main menu and are still running there after 150 s with no error; the other 2 crash earlier in the title's Wwise thread, before the layered draw. - **LEGO Horizon Adventures (PPSA14632, 01.004.000)**, this PR alone. Without it, 3 of 3 runs stop at the layered-draw check. With it, 4 of 4 get past it: 3 then stop at #1409 (`storage image access to depth/stencil surface ... (storage=2112x1188 guest format=22 mip=0 dimension=1 tile=4)`), and 1 ran to 75 s and then faulted in the title (write of 0x0 at `app.exe+0x37dd2b`), cause not traced. Nothing new is visible before those stops (loading spinner, then black, as on `main`).
oneandonlydean commented 2026-10-13 08:27:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T08:27:00Z.


This goes in after #423, as the branch that carries #1077. Three things first:

  • Drop the two #423 commits (995b8ee5a, 21122721c). They are #423 at 577b8d57; its head is now 66e1669c (PositionExportLayout, driver shutdown and the fragment push slot in its tests). At this head agc_driver_vertex_clip_cull_distances fails on NVIDIA with a stage's push constants lie outside its push constant slot. Rebase onto #423 once it merges and take the next free request version then (#4451 also wants 20).
  • Pipeline.cpp:77 returns before the maxFramebufferLayers check at :84, so the dynamic-rendering path passes state.renderLayers unchecked. Move the check above the return.
  • State.cpp:1071 brings back the throw for array views that #3633 removed. Keep main's array branch and limit its bit-18 check to targets that are not 3D. LayeredVolumeDraw.cpp:206 needs the device's subgroup size; the mesh case fails on wave32 with missing or incompatible shader execution mode.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6141488695 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3763#issuecomment-6141488695). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T08:27:00Z. --- This goes in after #423, as the branch that carries #1077. Three things first: - Drop the two #423 commits (`995b8ee5a`, `21122721c`). They are #423 at 577b8d57; its head is now 66e1669c (`PositionExportLayout`, driver shutdown and the fragment push slot in its tests). At this head `agc_driver_vertex_clip_cull_distances` fails on NVIDIA with `a stage's push constants lie outside its push constant slot`. Rebase onto #423 once it merges and take the next free request version then (#4451 also wants 20). - `Pipeline.cpp:77` returns before the `maxFramebufferLayers` check at `:84`, so the dynamic-rendering path passes `state.renderLayers` unchecked. Move the check above the return. - `State.cpp:1071` brings back the throw for array views that #3633 removed. Keep main's array branch and limit its bit-18 check to targets that are not 3D. `LayeredVolumeDraw.cpp:206` needs the device's subgroup size; the mesh case fails on wave32 with `missing or incompatible shader execution mode`.
eljackjoestar-cmd commented 2026-10-13 08:31:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by eljackjoestar-cmd on 2026-10-13T08:31:43Z.


Rebased the branch and its declared dependency commits onto main fc1f063f5, retaining their original authors. The conflict resolution preserves main’s multisampled-color tests, nonlayered array-range admission and invalid-range checks, while retaining the dependency’s layered 3D/DCC behavior. The dynamic-rendering layer count remains state.renderLayers.

Full Windows Release build passes. All five focused tests pass without skips in 5.72 s: graphics, shader memory, vertex layer export, layered-volume vertex readback with pipeline libraries, and the same readback without them. The stale ordinary-array rejection assertion was corrected during validation. Conventions and whitespace checks pass. Existing dependency/merge-order declarations are retained. No new game run, full-suite success or combined #4715 validation is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6141565672 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3763#issuecomment-6141565672). Originally posted by [eljackjoestar-cmd](https://github.com/eljackjoestar-cmd) on 2026-10-13T08:31:43Z. --- Rebased the branch and its declared dependency commits onto main `fc1f063f5`, retaining their original authors. The conflict resolution preserves main’s multisampled-color tests, nonlayered array-range admission and invalid-range checks, while retaining the dependency’s layered 3D/DCC behavior. The dynamic-rendering layer count remains `state.renderLayers`. Full Windows Release build passes. All five focused tests pass without skips in 5.72 s: graphics, shader memory, vertex layer export, layered-volume vertex readback with pipeline libraries, and the same readback without them. The stale ordinary-array rejection assertion was corrected during validation. Conventions and whitespace checks pass. Existing dependency/merge-order declarations are retained. No new game run, full-suite success or combined #4715 validation is claimed.
oneandonlydean commented 2026-10-13 08:51:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T08:51:31Z.


Thanks. #423 is merged now, so please drop 745dbf031c9 (the old #423 copy) and rebase onto main; it conflicts in 12 files because of it. Two points from before are still open on this head:

  • Pipeline.cpp: the maxFramebufferLayers check comes after the early return, so the dynamic-rendering path passes state.renderLayers unchecked. Move it above the return.
  • LayeredVolumeDraw.cpp: use the device's subgroup size instead of 64; the mesh case fails on wave32.

Main is at request version 20 now (#423), so this takes 21; #4451 also wants it, and whichever merges second renumbers.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6141902883 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3763#issuecomment-6141902883). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T08:51:31Z. --- Thanks. #423 is merged now, so please drop `745dbf031c9` (the old #423 copy) and rebase onto main; it conflicts in 12 files because of it. Two points from before are still open on this head: - `Pipeline.cpp`: the `maxFramebufferLayers` check comes after the early return, so the dynamic-rendering path passes `state.renderLayers` unchecked. Move it above the return. - `LayeredVolumeDraw.cpp`: use the device's subgroup size instead of 64; the mesh case fails on wave32. Main is at request version 20 now (#423), so this takes 21; #4451 also wants it, and whichever merges second renumbers.
eljackjoestar-cmd commented 2026-10-13 08:54:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by eljackjoestar-cmd on 2026-10-13T08:54:13Z.


Addressed the runtime and fixture corrections, and removed the copied #423 implementations from the public branch:

  • maxFramebufferLayers and the nonzero-layer check now run before the dynamic-rendering return. A regression covers zero, excessive and boundary layer counts.
  • Main's array branch is retained, with its bit-18 rejection restricted to non-3D targets.
  • The mesh fixture uses device.Target().subgroupSize; the full fixture now passes on this RTX 5070's subgroup size 32.
  • Both old #423 commits, their rebased equivalents and the legacy-version adaptation are dropped. The diff no longer changes request serialization or reserves version 20.

The review fixes pass six focused tests on local validation stack 9ac0f638b (old dependency retained locally only), in 5.88 s. I also reproduced the old clip/cull fixture's push-slot failure; I am not claiming that dependency fixed.

#423 remains open at 66e1669c. The cleaned branch explicitly waits for its merge, then needs the dependency/layout integration, the next free request version if required, and fresh builds/readbacks. No standalone-main or current-#423 combined validation is claimed for the cleaned branch. The description and dependency declarations now reflect that status.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6141947823 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3763#issuecomment-6141947823). Originally posted by [eljackjoestar-cmd](https://github.com/eljackjoestar-cmd) on 2026-10-13T08:54:13Z. --- Addressed the runtime and fixture corrections, and removed the copied #423 implementations from the public branch: - `maxFramebufferLayers` and the nonzero-layer check now run before the dynamic-rendering return. A regression covers zero, excessive and boundary layer counts. - Main's array branch is retained, with its bit-18 rejection restricted to non-3D targets. - The mesh fixture uses `device.Target().subgroupSize`; the full fixture now passes on this RTX 5070's subgroup size 32. - Both old #423 commits, their rebased equivalents and the legacy-version adaptation are dropped. The diff no longer changes request serialization or reserves version 20. The review fixes pass six focused tests on local validation stack `9ac0f638b` (old dependency retained locally only), in 5.88 s. I also reproduced the old clip/cull fixture's push-slot failure; I am not claiming that dependency fixed. #423 remains open at `66e1669c`. The cleaned branch explicitly waits for its merge, then needs the dependency/layout integration, the next free request version if required, and fresh builds/readbacks. No standalone-main or current-#423 combined validation is claimed for the cleaned branch. The description and dependency declarations now reflect that status.
eljackjoestar-cmd commented 2026-10-13 09:09:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by eljackjoestar-cmd on 2026-10-13T09:09:09Z.


Rebased onto main 4bb2c7f39 with merged #423; the new head is dedb869fa. Both old copied #423 commits, including 745dbf031c9, are removed from the topic history. The integration retains main's PositionExportLayout and clip/cull handling, with the routed layer bits added at draw/preparation use.

Both review points are now present on this head:

  • Pipeline.cpp:76 checks nonzero layers and maxFramebufferLayers before the dynamic-rendering return at line 78. The regression covers zero, excessive and boundary counts.
  • LayeredVolumeDraw.cpp:206 uses device.Target().subgroupSize; the mesh metadata case passes on this RTX 5070's subgroup size 32.

Main's ordinary-array branch is preserved, with the bit-18 rejection restricted to non-3D targets. Request serialization is version 21, retaining the version-20 read boundary and compatibility coverage. Agreed on #4451: whichever merges second must renumber.

Full Windows Release build passes. All ten focused tests pass without skips in 7.03 s: graphics, shader memory, vertex layer export, full layered-volume draw/mesh validation, driver submission, vertex readback with/without pipeline libraries, and all three merged clip/cull tests (distances, driver draw, driver draw without its key).

The new driver-submission run exposed a fixture teardown crash after its readbacks passed. Adding #423's explicit driver shutdown on success and exception paths fixes that exit; the final run above passes cleanly. Conventions and whitespace checks pass. The description now reflects validation against merged #423 rather than the old dependency stack. The existing #4715 merge-order agreement is retained; no combined #4715 build or new game run is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6142199834 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3763#issuecomment-6142199834). Originally posted by [eljackjoestar-cmd](https://github.com/eljackjoestar-cmd) on 2026-10-13T09:09:09Z. --- Rebased onto main `4bb2c7f39` with merged #423; the new head is `dedb869fa`. Both old copied #423 commits, including `745dbf031c9`, are removed from the topic history. The integration retains main's `PositionExportLayout` and clip/cull handling, with the routed layer bits added at draw/preparation use. Both review points are now present on this head: - `Pipeline.cpp:76` checks nonzero layers and `maxFramebufferLayers` before the dynamic-rendering return at line 78. The regression covers zero, excessive and boundary counts. - `LayeredVolumeDraw.cpp:206` uses `device.Target().subgroupSize`; the mesh metadata case passes on this RTX 5070's subgroup size 32. Main's ordinary-array branch is preserved, with the bit-18 rejection restricted to non-3D targets. Request serialization is version 21, retaining the version-20 read boundary and compatibility coverage. Agreed on #4451: whichever merges second must renumber. Full Windows Release build passes. All ten focused tests pass without skips in 7.03 s: graphics, shader memory, vertex layer export, full layered-volume draw/mesh validation, driver submission, vertex readback with/without pipeline libraries, and all three merged clip/cull tests (distances, driver draw, driver draw without its key). The new driver-submission run exposed a fixture teardown crash after its readbacks passed. Adding #423's explicit driver shutdown on success and exception paths fixes that exit; the final run above passes cleanly. Conventions and whitespace checks pass. The description now reflects validation against merged #423 rather than the old dependency stack. The existing #4715 merge-order agreement is retained; no combined #4715 build or new game run is claimed.
github-actions[bot] commented 2026-10-13 09:24:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T09:24:20Z.


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
#1077 core/libs/prx/libSceAgcDriver/tests/VertexLayerExport.cpp
core/libs/prx/libSceAgcDriver/tests/execution/LayeredVolumeDraw.cpp
core/libs/prx/libSceAgcDriver/tests/execution/LayeredVolumeSubmit.cpp
#1313 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp L147-148
#4201 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp L1829, L1835
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp L751, L782
#4222 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp L1829, L1835
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp L751, L782
#4450 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp L1829, L1835
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp L751, L782
#4767 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp L992-993
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6142459774 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3763#issuecomment-6142459774). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T09:24:20Z. --- <!-- 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 | |---|---|---|---| | #1077 | | | `core/libs/prx/libSceAgcDriver/tests/VertexLayerExport.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/LayeredVolumeDraw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/LayeredVolumeSubmit.cpp` | | #1313 | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp` [L147-148](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp#L147-L148) | | | | #4201 | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` [L1829](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L1829), [L1835](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L1835)<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp` [L751](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L751), [L782](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L782) | | | | #4222 | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` [L1829](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L1829), [L1835](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L1835)<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp` [L751](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L751), [L782](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L782) | | | | #4450 | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` [L1829](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L1829), [L1835](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L1835)<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp` [L751](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L751), [L782](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L782) | | | | #4767 | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` [L992-993](https://github.com/boykopovar/AnyPS5/blob/c7632f036f68f71a5e514f5b20f6df68a9062ada/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L992-L993) | | |
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!3763
No description provided.