fix(agc): release a published native multisample depth owner whose plane a written storage view covers #15707

Merged
hugodearaujo merged 7 commits from upstream-pr/15707 into main 2026-11-09 12:19:22 +00:00
hugodearaujo commented 2026-11-04 08:36:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-11-04T08:36:08Z.


What

Assassin's Creed Mirage (PPSA13960) reuses the memory of its 4-sample D32S8 depth target (no HTILE) within the frame. It draws the depth target, then a compute pass writes an R11G11B10F storage image with 4 mips over the same memory, and it covers both planes. On the next frame it binds the depth target at those addresses again.

When the written storage view is bound, cachedStorageTexture publishes the owner (RequireNoMultisampleTarget) and then RetireCoveredDepthSurfaces retires it. For a multisampled owner, retire only sets retired. The owner stays active, and its depth guards stay with hostEverWritten. That leaves two outcomes on the next frame:

  • A bind with the same layout (the same extent, or a smaller one since #15690) finds the active owner and clears retired. Its host samples are from before the storage writes. The storage results are still pending over the planes, and they are older than the new draws. The next guest access publishes the owner, and the publication refuses: native multisample depth publication over pending storage image writes is not implemented.
  • A bind with another layout (for example 1824x1028 over the 1920x1080 owner) meets the guard and is refused: a native multisample depth attachment over the planes of a host-written owner of another identity is not implemented.

Once the owner has been published, guest memory holds all its samples. A written storage view then covers one of its planes, so the host image no longer describes that memory. A retired owner is no longer sampled natively (DepthSurfaceTexture and the plane lookups skip retired owners). So its guards only bring back stale samples or block another target.

RetireCoveredDepthSurfaces now also releases a multisampled owner that has guards and has not been written since its publication. The owner becomes inactive and its depth guards are removed, as RetireUnmappedDepth_nid_no_patch does for unmapped planes. The next bind of that memory creates a new owner. Its import (prepareUniformPlaneSampling) first stores the pending storage results over the planes (StorageTexture::FlushPending), so they end up under the new target's samples, as on the console. It then imports the planes if each holds one value, and otherwise records the usual import refusal.

Unchanged:

  • An owner written since its last publication is not released.
  • Storage results that cover no plane do not retire the owner. If the owner is drawn again, the publication still refuses.
  • Single-sample surfaces.

The depth-surface debt entry, which said a retired surface bound again keeps its own depth, now names this exception. A released multisampled owner still keeps its host image until the existing teardown releases it. Freeing inactive multisampled owners earlier is #15300's topic, and this change does not depend on it.

Tested

Linux 7.2.11, AMD Radeon RX 9070 XT, RADV (Mesa 26.2.6), Release with tests.

  • New agc_driver_native_depth_covered_owner (--covered-owner), at 2, 4 and 8 samples. Setup: a 200x130 D32S8 owner without HTILE whose stencil plane follows its depth plane, drawn with per-sample depth and stencil. Then the sequence of cachedStorageTexture's written path: RequireNoMultisampleTarget over the storage range (it publishes the owner), RetireCoveredDepthSurfaces, then an R32F storage image over the range with a recorded clear to 0x3c3c3c3c and MarkWholeWritten, left pending.
    • Same target again, drawn at 193x129: the bind imports the stored results as uniform planes, the draw lands, and a guest read publishes. Every byte matches: the new samples inside 193x129, and the storage results everywhere else (outside 193x129 and in the padding). Nothing stays pending.
    • A 120x130 target over the same planes: same result for its planes, and the storage results in the rest of the old ones.
    • Storage results over the depth plane except its first 64 KiB, which retire nothing: the owner is reused and drawn again, and the results stay pending. The test does not assert the publication refusal that follows, since that path is unimplemented rather than refused by design.
    • Without the change, the first case fails with the title's native multisample depth publication over pending storage image writes is not implemented, and the second with a native multisample depth attachment over the planes of a host-written owner of another identity is not implemented. The third case passes on both.
  • Validation layer, paired, same machine, on #15690 (6cc534fb37) with only the test added and on this change (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, ctest -V -R "native_depth|native_multisample|depth_storage|depth_surface|agc_storage_|multisample_guest|repeat_storage_guard|cached_image|storage_flush_ordering|storage_one_slice|storage_read_during|storage_write_back|msaa_address_on_plane", 53 tests). Base: 52 of 53, the new test failing as above. This change: 53 of 53. Neither log has a VUID- line or "was not found but was requested". Both have the same 20 WARNING-VkImageSubresourceRange-layerCount-compatibility lines.
  • Repeated on #15690's current head a7d499a328 (which merges main 5b1d381d5a): with DepthSurface.cpp from that head and the new test, 20 of the 21 agc_driver_native_multisample_depth / agc_driver_native_depth_* tests pass, the new one failing with native multisample depth publication over pending storage image writes is not implemented; with this change, 21 of 21. No VUID- line on either side.
  • tools/check_conventions.py: passes.
  • Title: Assassin's Creed Mirage (PPSA13960), title, New Game, Assassin, Full Synchronization Off, on main c2eafe4461 + #13963 (7d548223bd) + #15688 + #15690:
    • Without this change: 3 runs, 3 stops at 449-486 s when the first gameplay frames start. One stopped on compute shader 0x10b4c89700: AGC graphics: native multisample depth publication over pending storage image writes is not implemented, one on the identity refusal above, and one on native multisample depth plane without HTILE does not hold one depth value in [0, 1], for a target at another address. That last one is a separate stop. A logging build (local only) shows the order of events for the owner on the publication stop:
      depth-owner 0x1242ac0000 created bound 1920x1080 owner 1920x1080 x4 refusal ''
      depth-draw  0x1242ac0000 owner 1920x1080 bound 1920x1080 x3
      depth-published 0x1242ac0000 1920x1080 x4 by storage image 0x1242ac0000+0x2b90000 fmt 36 3840x2160 mips 4 mip 0 written 1
      depth-retired-covered 0x1242ac0000 1920x1080 x4 depthCovered 0 stencilCovered 1 hostWritten 0 everWritten 1
      st-upload/st-mark 0x1242ac0000+0x2b90000 fmt 36 3840x2160 mips 4 (4 dispatches)
      depth-owner 0x1242ac0000 revived bound 1872x1056 owner 1920x1080 x4
      depth-draw  0x1242ac0000 owner 1920x1080 bound 1872x1056 x3
      refused publication of owner 0x1242ac0000 stencil 0x1244aa0000 1920x1080 x4, access: storage image 0x1242ac0000+0x2b90000 fmt 36 3744x2112 mips 4 mip 0 written 1
      pending storage image 0x1242ac0000+0x2b90000 fmt 36 3840x2160 mips 4 units 645/697 pending: [0x1242ac0000-0x1245310000)
      
      The pending units cover exactly the depth and stencil planes. They were recorded after the owner's publication and before its next draws.
    • With this change: 3 runs reached gameplay (a fourth missed the menu cursor and is not counted). None stops on either refusal above. Two stop at 464 s and 488 s on compute shader 0x10b4c8ad00: AGC graphics: native multisample depth plane without HTILE does not hold one depth value in [0, 1], the import refusal for a target whose planes do not hold one value each. One of the runs without this change also stopped there, for a target at another address. The third run is the same change in a logging build. It shows the owner released after the covered retirement (depth-released-covered 0x1246ac0000) and then three more frames at 1052x592. It stops at 466 s in the multisampled colour path: compute shader 0x10009d2700: AGC graphics: a storage image access of 0x10f4960000+0x800000 overlaps multisampled color target 0x10f4000000+0xaa0000 (4 samples), whose samples are only on the host. Both are separate stops.

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 (#15690 is merged; its test fixture and the smaller-extent attachment are what the title binds on the next frame)
  • Fixes: none
  • Unblocks: PPSA13960 #7534 (moves it to its next stop)
  • GPUs tested: AMD Radeon RX 9070 XT, RADV Mesa 26.2.6, Linux 7.2.11
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5151407988 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15707). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-11-04T08:36:08Z. --- ### What Assassin's Creed Mirage (PPSA13960) reuses the memory of its 4-sample D32S8 depth target (no HTILE) within the frame. It draws the depth target, then a compute pass writes an R11G11B10F storage image with 4 mips over the same memory, and it covers both planes. On the next frame it binds the depth target at those addresses again. When the written storage view is bound, `cachedStorageTexture` publishes the owner (`RequireNoMultisampleTarget`) and then `RetireCoveredDepthSurfaces` retires it. For a multisampled owner, `retire` only sets `retired`. The owner stays `active`, and its depth guards stay with `hostEverWritten`. That leaves two outcomes on the next frame: - A bind with the same layout (the same extent, or a smaller one since #15690) finds the active owner and clears `retired`. Its host samples are from before the storage writes. The storage results are still pending over the planes, and they are older than the new draws. The next guest access publishes the owner, and the publication refuses: `native multisample depth publication over pending storage image writes is not implemented`. - A bind with another layout (for example 1824x1028 over the 1920x1080 owner) meets the guard and is refused: `a native multisample depth attachment over the planes of a host-written owner of another identity is not implemented`. Once the owner has been published, guest memory holds all its samples. A written storage view then covers one of its planes, so the host image no longer describes that memory. A retired owner is no longer sampled natively (`DepthSurfaceTexture` and the plane lookups skip retired owners). So its guards only bring back stale samples or block another target. `RetireCoveredDepthSurfaces` now also releases a multisampled owner that has guards and has not been written since its publication. The owner becomes inactive and its depth guards are removed, as `RetireUnmappedDepth_nid_no_patch` does for unmapped planes. The next bind of that memory creates a new owner. Its import (`prepareUniformPlaneSampling`) first stores the pending storage results over the planes (`StorageTexture::FlushPending`), so they end up under the new target's samples, as on the console. It then imports the planes if each holds one value, and otherwise records the usual import refusal. Unchanged: - An owner written since its last publication is not released. - Storage results that cover no plane do not retire the owner. If the owner is drawn again, the publication still refuses. - Single-sample surfaces. The depth-surface debt entry, which said a retired surface bound again keeps its own depth, now names this exception. A released multisampled owner still keeps its host image until the existing teardown releases it. Freeing inactive multisampled owners earlier is #15300's topic, and this change does not depend on it. ### Tested Linux 7.2.11, AMD Radeon RX 9070 XT, RADV (Mesa 26.2.6), Release with tests. - New `agc_driver_native_depth_covered_owner` (`--covered-owner`), at 2, 4 and 8 samples. Setup: a 200x130 D32S8 owner without HTILE whose stencil plane follows its depth plane, drawn with per-sample depth and stencil. Then the sequence of `cachedStorageTexture`'s written path: `RequireNoMultisampleTarget` over the storage range (it publishes the owner), `RetireCoveredDepthSurfaces`, then an R32F storage image over the range with a recorded clear to 0x3c3c3c3c and `MarkWholeWritten`, left pending. - Same target again, drawn at 193x129: the bind imports the stored results as uniform planes, the draw lands, and a guest read publishes. Every byte matches: the new samples inside 193x129, and the storage results everywhere else (outside 193x129 and in the padding). Nothing stays pending. - A 120x130 target over the same planes: same result for its planes, and the storage results in the rest of the old ones. - Storage results over the depth plane except its first 64 KiB, which retire nothing: the owner is reused and drawn again, and the results stay pending. The test does not assert the publication refusal that follows, since that path is unimplemented rather than refused by design. - Without the change, the first case fails with the title's `native multisample depth publication over pending storage image writes is not implemented`, and the second with `a native multisample depth attachment over the planes of a host-written owner of another identity is not implemented`. The third case passes on both. - Validation layer, paired, same machine, on #15690 (6cc534fb37) with only the test added and on this change (`VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`, `ctest -V -R "native_depth|native_multisample|depth_storage|depth_surface|agc_storage_|multisample_guest|repeat_storage_guard|cached_image|storage_flush_ordering|storage_one_slice|storage_read_during|storage_write_back|msaa_address_on_plane"`, 53 tests). Base: 52 of 53, the new test failing as above. This change: 53 of 53. Neither log has a `VUID-` line or "was not found but was requested". Both have the same 20 `WARNING-VkImageSubresourceRange-layerCount-compatibility` lines. - Repeated on #15690's current head `a7d499a328` (which merges `main` 5b1d381d5a): with `DepthSurface.cpp` from that head and the new test, 20 of the 21 `agc_driver_native_multisample_depth` / `agc_driver_native_depth_*` tests pass, the new one failing with `native multisample depth publication over pending storage image writes is not implemented`; with this change, 21 of 21. No `VUID-` line on either side. - `tools/check_conventions.py`: passes. - Title: Assassin's Creed Mirage (PPSA13960), title, New Game, Assassin, Full Synchronization Off, on `main` c2eafe4461 + #13963 (7d548223bd) + #15688 + #15690: - Without this change: 3 runs, 3 stops at 449-486 s when the first gameplay frames start. One stopped on `compute shader 0x10b4c89700: AGC graphics: native multisample depth publication over pending storage image writes is not implemented`, one on the identity refusal above, and one on `native multisample depth plane without HTILE does not hold one depth value in [0, 1]`, for a target at another address. That last one is a separate stop. A logging build (local only) shows the order of events for the owner on the publication stop: ``` depth-owner 0x1242ac0000 created bound 1920x1080 owner 1920x1080 x4 refusal '' depth-draw 0x1242ac0000 owner 1920x1080 bound 1920x1080 x3 depth-published 0x1242ac0000 1920x1080 x4 by storage image 0x1242ac0000+0x2b90000 fmt 36 3840x2160 mips 4 mip 0 written 1 depth-retired-covered 0x1242ac0000 1920x1080 x4 depthCovered 0 stencilCovered 1 hostWritten 0 everWritten 1 st-upload/st-mark 0x1242ac0000+0x2b90000 fmt 36 3840x2160 mips 4 (4 dispatches) depth-owner 0x1242ac0000 revived bound 1872x1056 owner 1920x1080 x4 depth-draw 0x1242ac0000 owner 1920x1080 bound 1872x1056 x3 refused publication of owner 0x1242ac0000 stencil 0x1244aa0000 1920x1080 x4, access: storage image 0x1242ac0000+0x2b90000 fmt 36 3744x2112 mips 4 mip 0 written 1 pending storage image 0x1242ac0000+0x2b90000 fmt 36 3840x2160 mips 4 units 645/697 pending: [0x1242ac0000-0x1245310000) ``` The pending units cover exactly the depth and stencil planes. They were recorded after the owner's publication and before its next draws. - With this change: 3 runs reached gameplay (a fourth missed the menu cursor and is not counted). None stops on either refusal above. Two stop at 464 s and 488 s on `compute shader 0x10b4c8ad00: AGC graphics: native multisample depth plane without HTILE does not hold one depth value in [0, 1]`, the import refusal for a target whose planes do not hold one value each. One of the runs without this change also stopped there, for a target at another address. The third run is the same change in a logging build. It shows the owner released after the covered retirement (`depth-released-covered 0x1246ac0000`) and then three more frames at 1052x592. It stops at 466 s in the multisampled colour path: `compute shader 0x10009d2700: AGC graphics: a storage image access of 0x10f4960000+0x800000 overlaps multisampled color target 0x10f4000000+0xaa0000 (4 samples), whose samples are only on the host`. Both are separate stops. ### Checklist - [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 (#15690 is merged; its test fixture and the smaller-extent attachment are what the title binds on the next frame) - [x] Fixes: none - [x] Unblocks: PPSA13960 #7534 (moves it to its next stop) - [x] GPUs tested: AMD Radeon RX 9070 XT, RADV Mesa 26.2.6, Linux 7.2.11 - [x] AI-assisted: yes
Superseabas commented 2026-11-04 17:09:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Superseabas on 2026-11-04T17:09:54Z.

Review: APPROVED


Head a8c5df4e69 merged onto current main b11c7bf84f (clean merge, local only): code read, red/green check and a run on AMD's Windows driver, which no run of this stack has covered yet, with an NVIDIA Blackwell run alongside.

Windows 11 Home 10.0.26200, WinLibs GCC 16.2.0 (x86_64-ucrt-posix-seh, r3), Release, BUILD_TESTING=ON. ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ctest -R '^agc_driver_native_(depth|multisample_depth).*$', ANYPS5_GPU selecting the device (confirmed by Selected GPU). In each tree one test, agc_driver_native_depth_driver_queued_fill, skips on Windows as on main:

GPU Driver main #15690 merged this PR merged
NVIDIA GeForce RTX 5070 Ti (10de:2c05) 621.01 16 + 1 skip 19 + 1 skip 20 + 1 skip
AMD Radeon Graphics, Ryzen 7 7700X iGPU (1002:164e) AMD 26.10.2 16 + 1 skip 19 + 1 skip 20 + 1 skip
  • There are no VUID- lines and no missing-layer line in any run.
  • Red check: the merged tree with only this PR's own DepthSurface.cpp change reversed (git diff of #15690's head 6c1c4ef23f against this head, applied in reverse) fails the new agc_driver_native_depth_covered_owner on both GPUs. It fails with native multisample depth publication over pending storage image writes is not implemented, the stop the description names.
  • check_conventions.py --base main passes on the merge.

Read through the change:

  • After retire, RetireCoveredDepthSurfaces also releases an owner only when it is multisampled, samplingActive and not hostWritten since it was published.
  • It clears active and erases the owner's guard range under depthGuardMutex, then updates anyDepthGuard. That mutex is taken after surfacesMutex, the order the existing code also uses.
  • A drawn owner, a single-sample one or one that was never sampled keeps the retire-only behaviour. The next bind then imports a new owner from guest memory, so the storage writes lie under its samples.
  • The debt entry describes that release. The test drops the assertion on the publication path that is unimplemented, as requested.

I found nothing to change.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5772538166 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15707#pullrequestreview-5772538166). Originally posted by [Superseabas](https://github.com/Superseabas) on 2026-11-04T17:09:54Z. **Review:** APPROVED --- Head `a8c5df4e69` merged onto current `main` `b11c7bf84f` (clean merge, local only): code read, red/green check and a run on AMD's Windows driver, which no run of this stack has covered yet, with an NVIDIA Blackwell run alongside. Windows 11 Home 10.0.26200, WinLibs GCC 16.2.0 (`x86_64-ucrt-posix-seh`, r3), Release, `BUILD_TESTING=ON`. `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ctest -R '^agc_driver_native_(depth|multisample_depth).*$'`, `ANYPS5_GPU` selecting the device (confirmed by `Selected GPU`). In each tree one test, `agc_driver_native_depth_driver_queued_fill`, skips on Windows as on `main`: | GPU | Driver | `main` | #15690 merged | this PR merged | |---|---|---|---|---| | NVIDIA GeForce RTX 5070 Ti (`10de:2c05`) | 621.01 | 16 + 1 skip | 19 + 1 skip | 20 + 1 skip | | AMD Radeon Graphics, Ryzen 7 7700X iGPU (`1002:164e`) | AMD 26.10.2 | 16 + 1 skip | 19 + 1 skip | 20 + 1 skip | - There are no `VUID-` lines and no missing-layer line in any run. - Red check: the merged tree with only this PR's own `DepthSurface.cpp` change reversed (`git diff` of #15690's head `6c1c4ef23f` against this head, applied in reverse) fails the new `agc_driver_native_depth_covered_owner` on both GPUs. It fails with `native multisample depth publication over pending storage image writes is not implemented`, the stop the description names. - `check_conventions.py --base main` passes on the merge. Read through the change: - After `retire`, `RetireCoveredDepthSurfaces` also releases an owner only when it is multisampled, `samplingActive` and not `hostWritten` since it was published. - It clears `active` and erases the owner's guard range under `depthGuardMutex`, then updates `anyDepthGuard`. That mutex is taken after `surfacesMutex`, the order the existing code also uses. - A drawn owner, a single-sample one or one that was never sampled keeps the retire-only behaviour. The next bind then imports a new owner from guest memory, so the storage writes lie under its samples. - The debt entry describes that release. The test drops the assertion on the publication path that is unimplemented, as requested. I found nothing to change. AI-assisted: yes (Claude Code)
gabichuuuuu commented 2026-11-08 12:34:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T12:34:36Z.

Review: COMMENTED


Ran 9da6b3a934 merged on main 302864d48c on Windows 11 x64 (WinLibs GCC 15.2), on an NVIDIA laptop GPU (Turing, driver 621) and an Intel iGPU (driver 101.70xx), with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (Khronos validation layer 1.4.368), ctest -R '^agc_driver_native_(multisample_depth|depth_)' -V.

main change, 2 runs each
NVIDIA 20/20, no VUID- 23/23 both times, no VUID-
Intel 17/20, no VUID- 19/23 both times, 2 validation errors per run

On Intel the new agc_driver_native_depth_smaller_extent dispatches past the device limit. The test reports "Passed", but each run logs:

Validation Error: [ VUID-vkCmdDispatch-groupCountX-00386 ]
vkCmdDispatch(): groupCountX (104000) exceeds device limit maxComputeWorkGroupCount[0] (65536).

Each run has it once with 104000 and once with 208000, logged right after the test's samples=2 and samples=4 cases. NVIDIA's maxComputeWorkGroupCount[0] is far higher, so the layer stays quiet there. A dispatch over the limit is undefined behaviour, so this can't be counted as a pass on Intel. The dispatch needs to be split into chunks of at most maxComputeWorkGroupCount[0], or its X/Y shape changed.

The new agc_driver_native_depth_publication_without_htile fails on Intel in both runs: "a written D32S8 owner without HTILE did not publish its stencil samples and padding". The three other Intel failures (native_depth_stencil_view, uniform_planes, publication) are the same on main (#16883).

The layer was inserted in every test, and no log has was not found but was requested by env var VK_INSTANCE_LAYERS. The new agc_driver_native_depth_covered_owner passes on both GPUs.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5817890748 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15707#pullrequestreview-5817890748). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-08T12:34:36Z. **Review:** COMMENTED --- Ran `9da6b3a934` merged on `main` 302864d48c on Windows 11 x64 (WinLibs GCC 15.2), on an NVIDIA laptop GPU (Turing, driver 621) and an Intel iGPU (driver 101.70xx), with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (Khronos validation layer 1.4.368), `ctest -R '^agc_driver_native_(multisample_depth|depth_)' -V`. | | `main` | change, 2 runs each | |---|---|---| | NVIDIA | 20/20, no `VUID-` | 23/23 both times, no `VUID-` | | Intel | 17/20, no `VUID-` | 19/23 both times, 2 validation errors per run | **On Intel the new `agc_driver_native_depth_smaller_extent` dispatches past the device limit.** The test reports "Passed", but each run logs: ``` Validation Error: [ VUID-vkCmdDispatch-groupCountX-00386 ] vkCmdDispatch(): groupCountX (104000) exceeds device limit maxComputeWorkGroupCount[0] (65536). ``` Each run has it once with 104000 and once with 208000, logged right after the test's `samples=2` and `samples=4` cases. NVIDIA's `maxComputeWorkGroupCount[0]` is far higher, so the layer stays quiet there. A dispatch over the limit is undefined behaviour, so this can't be counted as a pass on Intel. The dispatch needs to be split into chunks of at most `maxComputeWorkGroupCount[0]`, or its X/Y shape changed. **The new `agc_driver_native_depth_publication_without_htile` fails on Intel** in both runs: "a written D32S8 owner without HTILE did not publish its stencil samples and padding". The three other Intel failures (`native_depth_stencil_view`, `uniform_planes`, `publication`) are the same on `main` (#16883). The layer was inserted in every test, and no log has `was not found but was requested by env var VK_INSTANCE_LAYERS`. The new `agc_driver_native_depth_covered_owner` passes on both GPUs. AI-assisted: yes.
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!15707
No description provided.