fix(shader): write a mesh shader's layer through a per-primitive block #7674

Merged
thuanquang merged 1 commit from upstream-pr/7674 into main 2026-10-19 05:51:55 +00:00
thuanquang commented 2026-10-18 21:35:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by thuanquang on 2026-10-18T21:35:18Z.


What

On AMD's Windows driver, a draw through a geometry program that writes a layer crashes the process on main. The mesh shader the recompiler builds for it declares the per-primitive layer as a standalone Output array of uint, decorated BuiltIn Layer and PerPrimitiveEXT. Creating the pipeline crashes inside the driver:

FATAL: unhandled exception 0xc0000005 on thread 30504 ''
  rip 0x00007ffc7b523221 amdvlk64.dll+0x21f3221
  read of 0x0000000000000004

The layer is now written through an array of a one-member Block struct whose member is decorated BuiltIn Layer and PerPrimitiveEXT, stored with an access chain to member 0. That is how glslang declares gl_Layer, as a member of gl_MeshPerPrimitiveEXT. AMD's driver creates that pipeline and draws with it, also when the pixel shader reads the layer. ShaderValidation now reads PerPrimitiveEXT member decorations, so the block's array is checked against maxPrimitives like the other per-primitive outputs. The debt entry records why the block form is used.

#6379 (@Feuris) works around the same crash by removing the mesh layer output and the fragment layer input when pipelines are created, so layered mesh draws land in slice 0 on every vendor. This keeps the layer instead. I offered the block form for #6379 there first (comment); this is the separate PR that comment mentions. #7377 notes that Demon's Souls (PPSA01342) needed #6379 for this crash on AMD. #6959 (@JJenkx) renders layered mesh targets in windows and needs the layer output that #6379 removes; on this driver its new agc_driver_layered_volume_mesh crashes the same way, at amdvlk64.dll+0x21f3221.

The test is the one @oneandonlydean asked for on #7374: the layer each triangle lands on in first and last provoking vertex mode. On main it never reaches the comparison on this GPU, because the first draw crashes the driver.

Tested

Windows 11 26200, AMD Radeon RX 6700 XT (gfx1031), driver 32.0.21045.5002, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON, ANYPS5_REQUIRE_VULKAN=1, main 05171bc66:

  • New agc_driver_mesh_provoking_layer. It draws one quad through the geometry program agc_driver_layered_volume_draw compiles, which exports each vertex's layer, into a 2-slice target. Each triangle's vertices carry layers 0, 0 and 1.
    • First mode must fill slice 0 and leave slice 1 untouched.
    • Last mode must fill slice 1 and leave slice 0 untouched (#7374's provoking vertex for the per-primitive layer).
    • Both modes run twice: with a white pixel shader, and with one that writes the layer it reads from its ancillary input (0 and 128).
    • Built with main's emitter and ShaderValidation, the test crashes at the first draw, 3 of 3, with the amdvlk64.dll+0x21f3221 crash above. With this change it passes 3 of 3.
    • It skips without VK_EXT_mesh_shader, VK_EXT_shader_viewport_index_layer or a last provoking vertex mode, and on llvmpipe like the other mesh execution tests, so CI does not run it.
  • ctest -R "mesh|layer|provoking" (18 tests): all pass except agc_driver_layered_volume_vertex_no_gpl, which fails on main here too (#4768).
  • Full ctest --parallel 4 --timeout 120 on main 023106ae4 with this change, before the rebase onto 05171bc66: 1509 tests. The failures are the three that main has on this machine (agc_driver_lds_mixed_width_atomics #6976, agc_driver_lds_lock_budget, agc_driver_layered_volume_vertex_no_gpl #4768), plus log_macros and log_macros_timestamps, which fail in this build only because ccache rewrites __FILE__.
  • python tools/check_conventions.py --base origin/main with this title and body passes.
  • Not tested:
    • NVIDIA, Intel and other AMD drivers. The block form is what glslang produces, so other drivers already compile it from GLSL.
    • titles. #6379 reports the crash in Super Meat Boy 3D (PPSA31162); I don't have it.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 6700 XT (gfx1031), driver 32.0.21045.5002, Windows 11 26200
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4913008112 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7674). Originally posted by [thuanquang](https://github.com/thuanquang) on 2026-10-18T21:35:18Z. --- ### What On AMD's Windows driver, a draw through a geometry program that writes a layer crashes the process on `main`. The mesh shader the recompiler builds for it declares the per-primitive layer as a standalone `Output` array of `uint`, decorated `BuiltIn Layer` and `PerPrimitiveEXT`. Creating the pipeline crashes inside the driver: ``` FATAL: unhandled exception 0xc0000005 on thread 30504 '' rip 0x00007ffc7b523221 amdvlk64.dll+0x21f3221 read of 0x0000000000000004 ``` The layer is now written through an array of a one-member `Block` struct whose member is decorated `BuiltIn Layer` and `PerPrimitiveEXT`, stored with an access chain to member 0. That is how glslang declares `gl_Layer`, as a member of `gl_MeshPerPrimitiveEXT`. AMD's driver creates that pipeline and draws with it, also when the pixel shader reads the layer. `ShaderValidation` now reads `PerPrimitiveEXT` member decorations, so the block's array is checked against `maxPrimitives` like the other per-primitive outputs. The debt entry records why the block form is used. #6379 (@Feuris) works around the same crash by removing the mesh layer output and the fragment layer input when pipelines are created, so layered mesh draws land in slice 0 on every vendor. This keeps the layer instead. I offered the block form for #6379 there first ([comment](https://github.com/boykopovar/AnyPS5/pull/6379#issuecomment-6249999851)); this is the separate PR that comment mentions. #7377 notes that Demon's Souls (PPSA01342) needed #6379 for this crash on AMD. #6959 (@JJenkx) renders layered mesh targets in windows and needs the layer output that #6379 removes; on this driver its new `agc_driver_layered_volume_mesh` crashes the same way, at `amdvlk64.dll+0x21f3221`. The test is the one @oneandonlydean asked for on #7374: the layer each triangle lands on in first and last provoking vertex mode. On `main` it never reaches the comparison on this GPU, because the first draw crashes the driver. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows 11 26200, AMD Radeon RX 6700 XT (gfx1031), driver 32.0.21045.5002, WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`, `ANYPS5_REQUIRE_VULKAN=1`, `main` `05171bc66`: - New `agc_driver_mesh_provoking_layer`. It draws one quad through the geometry program `agc_driver_layered_volume_draw` compiles, which exports each vertex's layer, into a 2-slice target. Each triangle's vertices carry layers 0, 0 and 1. - First mode must fill slice 0 and leave slice 1 untouched. - Last mode must fill slice 1 and leave slice 0 untouched (#7374's provoking vertex for the per-primitive layer). - Both modes run twice: with a white pixel shader, and with one that writes the layer it reads from its ancillary input (0 and 128). - Built with `main`'s emitter and `ShaderValidation`, the test crashes at the first draw, 3 of 3, with the `amdvlk64.dll+0x21f3221` crash above. With this change it passes 3 of 3. - It skips without `VK_EXT_mesh_shader`, `VK_EXT_shader_viewport_index_layer` or a last provoking vertex mode, and on llvmpipe like the other mesh execution tests, so CI does not run it. - `ctest -R "mesh|layer|provoking"` (18 tests): all pass except `agc_driver_layered_volume_vertex_no_gpl`, which fails on `main` here too (#4768). - Full `ctest --parallel 4 --timeout 120` on `main` `023106ae4` with this change, before the rebase onto `05171bc66`: 1509 tests. The failures are the three that `main` has on this machine (`agc_driver_lds_mixed_width_atomics` #6976, `agc_driver_lds_lock_budget`, `agc_driver_layered_volume_vertex_no_gpl` #4768), plus `log_macros` and `log_macros_timestamps`, which fail in this build only because ccache rewrites `__FILE__`. - `python tools/check_conventions.py --base origin/main` with this title and body passes. - Not tested: - NVIDIA, Intel and other AMD drivers. The block form is what glslang produces, so other drivers already compile it from GLSL. - titles. #6379 reports the crash in Super Meat Boy 3D (PPSA31162); I don't have it. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: AMD Radeon RX 6700 XT (gfx1031), driver 32.0.21045.5002, Windows 11 26200 - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-18 21:46:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T21:46:30Z.


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 6959 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp L1003-1004

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 4072 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
PR 5021 docs/dev/debt/shader.md
PR 5371 docs/dev/debt/shader.md
PR 5426 docs/dev/debt/shader.md
PR 5500 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/shader.md
PR 5941 docs/dev/debt/shader.md
PR 6009 docs/dev/debt/shader.md
PR 6235 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/shader.md
PR 6612 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/shader.md
PR 6639 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 6679 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/shader.md
PR 6683 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 6762 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 6767 docs/dev/debt/shader.md
PR 6801 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 6924 docs/dev/debt/shader.md
PR 6941 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 6947 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 6977 docs/dev/debt/shader.md
PR 7085 docs/dev/debt/shader.md
PR 7201 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 7223 docs/dev/debt/shader.md
PR 7332 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/shader.md
PR 7388 docs/dev/debt/shader.md
PR 7390 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 7392 docs/dev/debt/shader.md
PR 7395 docs/dev/debt/shader.md
PR 7410 docs/dev/debt/shader.md
PR 7429 docs/dev/debt/shader.md
PR 7484 docs/dev/debt/shader.md
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255539114 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7674#issuecomment-6255539114). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T21:46:30Z. --- <!-- 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 6959](https://www.github.com/boykopovar/AnyPS5/pull/6959) | `core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` [L1003-1004](https://github.com/boykopovar/AnyPS5/blob/9f5d4bd929862fc7c50e6cbb256032cf2095b10f/core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp#L1003-L1004) | | | 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 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `docs/dev/debt/shader.md` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `docs/dev/debt/shader.md` | | [PR 5426](https://www.github.com/boykopovar/AnyPS5/pull/5426) | `docs/dev/debt/shader.md` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`docs/dev/debt/shader.md` | | [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 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`docs/dev/debt/shader.md` | | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`docs/dev/debt/shader.md` | | [PR 6639](https://www.github.com/boykopovar/AnyPS5/pull/6639) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 6679](https://www.github.com/boykopovar/AnyPS5/pull/6679) | `core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`docs/dev/debt/shader.md` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 6762](https://www.github.com/boykopovar/AnyPS5/pull/6762) | `core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 6767](https://www.github.com/boykopovar/AnyPS5/pull/6767) | `docs/dev/debt/shader.md` | | [PR 6801](https://www.github.com/boykopovar/AnyPS5/pull/6801) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 6924](https://www.github.com/boykopovar/AnyPS5/pull/6924) | `docs/dev/debt/shader.md` | | [PR 6941](https://www.github.com/boykopovar/AnyPS5/pull/6941) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `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/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 7223](https://www.github.com/boykopovar/AnyPS5/pull/7223) | `docs/dev/debt/shader.md` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`docs/dev/debt/shader.md` | | [PR 7388](https://www.github.com/boykopovar/AnyPS5/pull/7388) | `docs/dev/debt/shader.md` | | [PR 7390](https://www.github.com/boykopovar/AnyPS5/pull/7390) | `core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 7392](https://www.github.com/boykopovar/AnyPS5/pull/7392) | `docs/dev/debt/shader.md` | | [PR 7395](https://www.github.com/boykopovar/AnyPS5/pull/7395) | `docs/dev/debt/shader.md` | | [PR 7410](https://www.github.com/boykopovar/AnyPS5/pull/7410) | `docs/dev/debt/shader.md` | | [PR 7429](https://www.github.com/boykopovar/AnyPS5/pull/7429) | `docs/dev/debt/shader.md` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `docs/dev/debt/shader.md` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` |
oneandonlydean commented 2026-10-19 00:10:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-19T00:10:07Z.


Thanks, this looks good on our side: review passes and all the mesh and layered tests pass on NVIDIA, including the new one. We don't have an AMD GPU, so before merging we'd like one independent AMD run: the crash on current main, and no crash with this PR. Could anyone with an RDNA2 card (or another AMD GPU) on a recent Windows driver post that?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256885259 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7674#issuecomment-6256885259). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-19T00:10:07Z. --- Thanks, this looks good on our side: review passes and all the mesh and layered tests pass on NVIDIA, including the new one. We don't have an AMD GPU, so before merging we'd like one independent AMD run: the crash on current main, and no crash with this PR. Could anyone with an RDNA2 card (or another AMD GPU) on a recent Windows driver post that?
wachi35676 commented 2026-10-19 01:23:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-19T01:23:58Z.


Independent AMD run, as requested. Windows 11, AMD Radeon(TM) Graphics iGPU (Granite Ridge, RDNA2, deviceID 0x13c0), driver 32.0.21042.62, WinLibs GCC 15.2.0, Release, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_GPU=AMD. Base is main a373e85e5; head is that plus a9cd39045.

  • On main: the new test, built against main's emitter and ShaderValidation, crashes at the first draw with 0xc0000005 ... amdvlk64.dll+0x21f31a1, read of 0x0000000000000004. That is the same crash as the reported offset 0x21f3221, shifted by the driver build.
  • With this PR: it passes 3/3 on the AMD iGPU, and 3/3 on an RTX 5070 Ti (driver 617.42).
  • NVIDIA: on the RTX 5070 Ti the test also passes against main, so only an AMD run catches this regression.
  • Regressions: the related subset (agc|shader|spirv|recomp|video|pad|record|mesh|layer, 793 tests) has no new failures on either GPU. The AMD failures lds_lock_budget, lds_mixed_width_atomics and layered_volume_vertex_no_gpl also fail on main.

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

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6257667036 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7674#issuecomment-6257667036). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-19T01:23:58Z. --- Independent AMD run, as requested. Windows 11, AMD Radeon(TM) Graphics iGPU (Granite Ridge, RDNA2, deviceID 0x13c0), driver 32.0.21042.62, WinLibs GCC 15.2.0, Release, `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_GPU=AMD`. Base is `main` `a373e85e5`; head is that plus `a9cd39045`. - **On `main`:** the new test, built against `main`'s emitter and `ShaderValidation`, crashes at the first draw with `0xc0000005 ... amdvlk64.dll+0x21f31a1, read of 0x0000000000000004`. That is the same crash as the reported offset `0x21f3221`, shifted by the driver build. - **With this PR:** it passes 3/3 on the AMD iGPU, and 3/3 on an RTX 5070 Ti (driver 617.42). - **NVIDIA:** on the RTX 5070 Ti the test also passes against `main`, so only an AMD run catches this regression. - **Regressions:** the related subset (`agc|shader|spirv|recomp|video|pad|record|mesh|layer`, 793 tests) has no new failures on either GPU. The AMD failures `lds_lock_budget`, `lds_mixed_width_atomics` and `layered_volume_vertex_no_gpl` also fail on `main`. AI-assisted: yes (Claude Code); results above were run on this machine.
Feuris commented 2026-10-19 05:33:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Feuris on 2026-10-19T05:33:38Z.


Tested on Windows 11 with AMD Radeon RX 6700 XT and AMD Ryzen 9 7900X:

  • \gc_driver_mesh_provoking_layer: passes cleanly (0.22 s).
  • Mesh & layer regression test suite: 17/18 pass (the known \layered_volume_vertex_no_gpl\ issue is pre-existing on AMD \main).
  • Super Meat Boy 3D (PPSA31162):
    • The previous \mdvlk64.dll\ crash is completely gone.
    • Unlike #6379 where dropping the layer caused the 3D background scene to render pitch black, declaring the block struct allows the 3D scene geometry, sky, and diorama on \L_MainMenu\ to actually reach their layers and render, with noticeable FPS improvements.
    • (Note: The 3D scene still has separate visual artifacts such as checkerboard tile dropouts from virtual texturing/PRT and color contour banding, but the mesh shader layer crash and routing targeted by this PR are fully resolved).

Fully support closing #6379 in favor of this cleaner solution. Thanks @thuanquang and @oneandonlydean!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6260429589 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7674#issuecomment-6260429589). Originally posted by [Feuris](https://github.com/Feuris) on 2026-10-19T05:33:38Z. --- Tested on Windows 11 with AMD Radeon RX 6700 XT and AMD Ryzen 9 7900X: - \gc_driver_mesh_provoking_layer\: passes cleanly (0.22 s). - Mesh & layer regression test suite: 17/18 pass (the known \layered_volume_vertex_no_gpl\ issue is pre-existing on AMD \main\). - **Super Meat Boy 3D (PPSA31162):** - The previous \mdvlk64.dll\ crash is completely gone. - Unlike #6379 where dropping the layer caused the 3D background scene to render pitch black, declaring the block struct allows the 3D scene geometry, sky, and diorama on \L_MainMenu\ to actually reach their layers and render, with noticeable FPS improvements. - *(Note: The 3D scene still has separate visual artifacts such as checkerboard tile dropouts from virtual texturing/PRT and color contour banding, but the mesh shader layer crash and routing targeted by this PR are fully resolved).* Fully support closing #6379 in favor of this cleaner solution. Thanks @thuanquang and @oneandonlydean!
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!7674
No description provided.