test(agc): read the sample order tests' depth through a sampled copy #9056

Merged
milescoviello merged 1 commit from upstream-pr/9056 into main 2026-10-24 14:45:31 +00:00
milescoviello commented 2026-10-21 11:09:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T11:09:17Z.


What

Three of the sample order tests #6683 added fail on main on an RTX 4070 Ti with the 595.99.02 Linux driver: agc_driver_sample_order, agc_driver_sample_order_grid_reference and agc_driver_sample_order_recipe_depth_locations. They read back depth other than what was drawn:

  • 2x scene with the standard locations: the slopes did not leave depth both at and below the clear value
  • the composite of uniform renders: the slopes did not leave depth both at and below the clear value
  • pixel (0,0)'s locations in every pixel: the clear between the recorded draw and its replay left depth other than the clear value

The reads are the cause, not the reorder. The tests read a depth surface by binding DepthSurfaceOrderTarget(...).view, the surface's own view, as a sampled image. A multisampled depth surface sampled through a shadow image (#7318) is created without VK_IMAGE_USAGE_SAMPLED_BIT. So that descriptor is invalid: the Khronos layer reports VUID-VkWriteDescriptorSet-descriptorType-00337 18 times over these tests. What such a read returns is up to the driver, and this one returns other depth.

The reorder pass itself doesn't do this: SampleOrder.cpp copies the depth plane into an image of its own with sampled usage and samples the copy. The tests now do the same through a new ReadDepth:

  • copy the surface's depth aspect into a test Image of the same format and sample count, with DepthUsage, in GENERAL (no layout change on the surface);
  • read the copy's depth view with the existing ReadTarget.

Both reads go through it: the scene read in RenderCheckerboard and the recipe test's read. Only the test changes.

Tested

  • Rebased onto main d2e42c334d as 53949c0775 (commit unchanged, git range-diff). On the RTX 4070 Ti (615.71.09, Ubuntu 26.04.1, GCC 15.2, Release), 3 runs each: main fails sample_order, _grid_reference and _recipe_depth_locations; this head passes all 4 sample_order tests, alone and with #9057 (7333de6aee).
  • Earlier rebase onto main 8499ea52e5, with no conflicts, as head 0fd624d93b (git range-diff shows the commit unchanged). The 4 sample_order tests pass 3 of 3 on the RTX 4070 Ti (615.71.09, Ubuntu 26.04.1), and conventions are clean. The runs below are from earlier heads with the same change. A full ctest -j 4 of main da54c652e3 on the same machine passes 1832 of 1835 tests, and the three failures are the ones this PR fixes.

Ubuntu 24.04, GCC 13.3, NVIDIA RTX 4070 Ti, driver 595.99.02, on main 275e896797.

  • The 4 tests matching sample_order: on main, agc_driver_sample_order_planning passes and the three above fail, every run (2 of 2 on b6fe513b9a, and again under the layer on 275e896797). With this change all 4 pass, 3 of 3.

  • Under lavapipe (llvmpipe, LLVM 20.1.2) they pass with and without the change; the grid reference and recipe tests skip there, as on main.

  • Khronos validation layer 1.4.363 over the same 4:

    • main: 1 of 4 passes, with VUID-VkWriteDescriptorSet-descriptorType-00337 ×18 and VUID-VkImageMemoryBarrier-image-03320 ×6.
    • With this change: 4 of 4 pass, 00337 is gone, and nothing is new. The remaining 03320 ×6 is a driver barrier on a D32S8 copy image, which #9057 fixes separately.
  • AMD, Windows: @DavidSamir ran it together with #9057 on a Radeon 680M (driver 32.0.21030.2001, Windows 11) under the 1.4.363 layer, on main 27fabb6b7.

    • agc_driver_sample_order and agc_driver_sample_order_recipe_depth_locations fail on main there too, and pass with both PRs. 03320 and 00337 are gone.
    • agc_driver_sample_order_grid_reference still fails on that device, with VK_ERROR_DEVICE_LOST and one VUID-VkSubmitInfo-pSignalSemaphores-03242. That is a separate problem, not narrowed down yet.
  • NVIDIA, Windows: @gdols ran it on an RTX 3080 (driver 616.92, Windows 11) on main 2f161d4f3. On main the full suite has 1838 passed, 17 skipped and 3 failed: these tests, with the same messages. With this PR and #9057, agc_driver_sample_order, _recipe_depth_locations and _planning pass 3 of 3, and _grid_reference skips (that device doesn't keep depth drawn at custom sample locations).

  • main alone, Windows: @Amoenus ran grid_reference and recipe_depth_locations on an RTX 5080 (610.62) and an AMD gfx1036 under the 1.4.363 layer, 3 times each. Both fail on both GPUs, with 00337 messages on both (gfx1036 loses the device in grid_reference, as on the 680M). These runs are without this PR.

  • NVIDIA, Windows: @MaxLikesCode ran it on an RTX 4090 (driver 617.42, Windows 11), merged onto main 2c4b116da, 3 runs without and 3 with the 1.4.363 layer:

    • main: sample_order, _grid_reference and _recipe_depth_locations fail 6 of 6, with 00337 ×18 and 03320 ×6 per layer run.
    • With this PR: sample_order, _recipe_depth_locations and _planning pass 6 of 6, and _grid_reference skips (as on the 3080). Only the 6 03320 remain; with #9057 too, no VUID is left. No run lost the device.
  • @EagleBearerYS (#6683's author) reviewed it and ran it with #9057 on GitHub's runners. Under lavapipe, agc_driver_sample_order, _planning, agc_driver_pixel_sample_iteration and agc_driver_sample_location_grid_fallback pass 3 runs in a row. On Windows without a GPU, they skip or pass.

  • NVIDIA and Intel, Windows: @akkadbakkad89 ran it on an RTX 3070 (driver 617.42) and an Intel UHD Graphics 630 in the same machine, on main 1698d1ea6a.

    • RTX 3070: main fails the three tests with the messages above. With this PR, sample_order, _recipe_depth_locations and _planning pass, and _grid_reference skips, as on the 3080.
    • UHD 630: sample_order and _recipe_depth_locations fail the same way on main and with this PR, for other reasons: a stencil read on the depth-pass case, and a device with only 1x1 sample location grids. This PR doesn't change those.
  • NVIDIA, Windows: @SnekPolylepis ran it on an RTX 4080 (driver 617.42, Windows 11, WinLibs GCC 15.2.0), merged onto main 8c26eac3cd. main fails sample_order, _grid_reference and _recipe_depth_locations. With this PR, sample_order, _recipe_depth_locations and _planning pass, and _grid_reference skips, as on the 3070 and 3080.

  • Older layer, lavapipe: @xXPBSXx ran all 483 built agc_driver_*_tests under the Ubuntu 24.04 layer package (1.3.275) on main 950388bfd. main reports 00337 only from agc_driver_sample_order; with this change that test passes with no 00337, and only #9057's 03320 remains. One run.

  • AMD, Windows: @JJenkx ran it on a Radeon RX 6700 XT (driver 26.10.1, Windows 11), merged onto main a6dcea927 together with #8884 (tessellation only), 10 runs each. sample_order and _recipe_depth_locations fail 10 of 10 on main and pass 10 of 10 with this PR. _grid_reference fails 10 of 10 on both, with the device lost on submit before anything is read back (GPU fault, read invalid at 0x200000000), as on the 680M and gfx1036.

  • NVIDIA, Windows: @lost9409 ran it on an RTX 5070 Ti (driver 610.88, Windows 11), on main a6dcea9279 with #8310's alignment fix. On main, sample_order, _grid_reference and _recipe_depth_locations fail, in the full suite and run alone. With this PR's SampleOrder.cpp, sample_order, _recipe_depth_locations and _planning pass, and _grid_reference skips, as on the 3080, 3070 and 4090.

  • NVIDIA and AMD, Windows: @wachi35676 ran it with #9057 on an RTX 5070 Ti (driver 617.42) and an AMD Radeon iGPU 1002:13c0 (gfx1036, driver 32.0.21042.62), Windows 11, on main a6dcea927, 3 runs each. sample_order and _recipe_depth_locations fail 3 of 3 on main on both and pass 3 of 3 with the two PRs. On the iGPU, main reads garbage depth through the invalid 00337 descriptor rather than zeros, which this PR also fixes. _grid_reference skips on the 5070 Ti. On the iGPU it still loses the device, but with APS5_NO_GPL=1 it passes 3 of 3, so that loss is in AMD's graphics pipeline library path, not here (#9507).

  • AMD, Windows: @LeandroLP23 ran it on a Radeon 860M (RDNA 3.5, 1002:1114, driver 32.0.13058.8001, Windows 11, WinLibs GCC 15.2.0) merged onto main e7f46f5c89, 3 runs per case with the AMD shader cache emptied: sample_order and _recipe_depth_locations fail on main and pass with this PR (also with #9057 and #9503). _grid_reference's depth checks all pass with it; it still fails on 42 color samples of the exact path, off by one or two steps in one channel, the same color difference @SoRadGaming saw on RDNA 4, which is outside this PR.

  • NVIDIA and AMD, Windows: @Amoenus ran it after #9057 merged, this head merged onto main a23f8fc9fb, on an RTX 5080 (610.62) and a Radeon gfx1036 (32.0.21036.18) under the Khronos layer: sample_order and _recipe_depth_locations pass 3 of 3 on both, _planning 3 of 3, and 00337 is gone. _grid_reference skips its custom-depth comparison on NVIDIA and still loses the device on AMD, as it does on main in their earlier runs (#9507, which #9503 addresses).

  • Newer NVIDIA driver: the same RTX 4070 Ti on NVIDIA 615.71.09 (Ubuntu 26.04.1, kernel 7.0, GCC 15.2). In a full ctest of main 38d3c0858a, the same three tests fail with the same three messages; nothing else in AGC fails. With this PR, all 4 sample order tests pass 3 of 3.

  • lavapipe on the current host (Mesa 26.0.8-1ubuntu0.3, LLVM 21.1.8, Ubuntu 26.04.1), this PR merged onto main a6dcea9279: the 4 sample_order tests pass 3 of 3, and so do they on the RTX 4070 Ti (615.71.09) in the same build.

  • AMD, Windows: @brummilab ran it on a Radeon RX 6600 XT (Navi 23, driver 32.0.21045.16010, Windows 11, WinLibs GCC 15.2.0), merged onto main 60465afd3a, 3 runs: sample_order and _recipe_depth_locations fail on main and pass with this PR. _grid_reference still fails with this PR alone (read invalid at 0x200000000, Vulkan result -4) and passes together with #9503.

  • NVIDIA and AMD, Linux, under the validation layer: @TechLevelZero ran it merged onto main 6cd36e651. On an NVIDIA A800 (610.57.04), across the 246 tests tools/select_tests.py selects, main fails the three tests and reports 18 VUID-VkWriteDescriptorSet-descriptorType-00337. With this PR, sample_order and _recipe_depth_locations pass, _grid_reference skips (77) because the A800 does not keep depth drawn at custom sample locations, and 00337 drops to 0. On a Radeon RX 9070 XT and a gfx1036 iGPU (RADV, Mesa 26.0.8), the three pass on both sides and the PR removes every 00337 (6, 14 and 12 on main).

Not tested: Intel on Linux.

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: #9313
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4070 Ti, driver 595.99.02, Ubuntu 24.04, and driver 615.71.09, Ubuntu 26.04.1; lavapipe (llvmpipe), Mesa 26.0.8, LLVM 21.1.8, Ubuntu 26.04.1; lavapipe (llvmpipe, LLVM 20.1.2, Vulkan 1.4.318), Ubuntu 24.04, Mesa version not recorded; AMD Radeon 680M, driver 32.0.21030.2001, Windows 11 (@DavidSamir); NVIDIA GeForce RTX 3080, driver 616.92, Windows 11 (@gdols); NVIDIA GeForce RTX 4090, driver 617.42, Windows 11 (@MaxLikesCode); NVIDIA GeForce RTX 3070, driver 617.42, and Intel UHD Graphics 630, driver 31.0.101.2140, Windows 11 (@akkadbakkad89); NVIDIA GeForce RTX 4080, driver 617.42, Windows 11 (@SnekPolylepis); AMD Radeon RX 6700 XT, driver 26.10.1, Windows 11 (@JJenkx); NVIDIA GeForce RTX 5070 Ti, driver 610.88, Windows 11 (@lost9409); NVIDIA GeForce RTX 5070 Ti, driver 617.42, and AMD Radeon iGPU 1002:13c0 (gfx1036), driver 32.0.21042.62, Windows 11 (@wachi35676); NVIDIA GeForce RTX 5080, driver 610.62, and AMD Radeon Graphics (gfx1036), driver 32.0.21036.18, Windows 11 (@Amoenus; main earlier, this PR after #9057); lavapipe (llvmpipe), WSL2 Ubuntu 24.04, layer 1.3.275 (@xXPBSXx; no Mesa version given); GitHub runners (lavapipe; Windows without a GPU) (@EagleBearerYS); AMD Radeon RX 9070 XT (RDNA 4), Adrenalin 26.8.1, Windows 11 (@SoRadGaming); AMD Radeon 860M (RDNA 3.5), driver 32.0.13058.8001, Windows 11 (@LeandroLP23)
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4950577798 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T11:09:17Z. --- ### What Three of the sample order tests #6683 added fail on `main` on an RTX 4070 Ti with the 595.99.02 Linux driver: `agc_driver_sample_order`, `agc_driver_sample_order_grid_reference` and `agc_driver_sample_order_recipe_depth_locations`. They read back depth other than what was drawn: - `2x scene with the standard locations: the slopes did not leave depth both at and below the clear value` - `the composite of uniform renders: the slopes did not leave depth both at and below the clear value` - `pixel (0,0)'s locations in every pixel: the clear between the recorded draw and its replay left depth other than the clear value` The reads are the cause, not the reorder. The tests read a depth surface by binding `DepthSurfaceOrderTarget(...).view`, the surface's own view, as a sampled image. A multisampled depth surface sampled through a shadow image (#7318) is created without `VK_IMAGE_USAGE_SAMPLED_BIT`. So that descriptor is invalid: the Khronos layer reports `VUID-VkWriteDescriptorSet-descriptorType-00337` 18 times over these tests. What such a read returns is up to the driver, and this one returns other depth. The reorder pass itself doesn't do this: `SampleOrder.cpp` copies the depth plane into an image of its own with sampled usage and samples the copy. The tests now do the same through a new `ReadDepth`: - copy the surface's depth aspect into a test `Image` of the same format and sample count, with `DepthUsage`, in `GENERAL` (no layout change on the surface); - read the copy's depth view with the existing `ReadTarget`. Both reads go through it: the scene read in `RenderCheckerboard` and the recipe test's `read`. Only the test changes. ### Tested - **Rebased** onto `main` d2e42c334d as `53949c0775` (commit unchanged, `git range-diff`). On the RTX 4070 Ti (615.71.09, Ubuntu 26.04.1, GCC 15.2, Release), 3 runs each: `main` fails `sample_order`, `_grid_reference` and `_recipe_depth_locations`; this head passes all 4 `sample_order` tests, alone and with #9057 (`7333de6aee`). - **Earlier rebase** onto `main` 8499ea52e5, with no conflicts, as head `0fd624d93b` (`git range-diff` shows the commit unchanged). The 4 `sample_order` tests pass 3 of 3 on the RTX 4070 Ti (615.71.09, Ubuntu 26.04.1), and conventions are clean. The runs below are from earlier heads with the same change. A full `ctest -j 4` of `main` da54c652e3 on the same machine passes 1832 of 1835 tests, and the three failures are the ones this PR fixes. Ubuntu 24.04, GCC 13.3, NVIDIA RTX 4070 Ti, driver 595.99.02, on `main` 275e896797. - The 4 tests matching `sample_order`: on `main`, `agc_driver_sample_order_planning` passes and the three above fail, every run (2 of 2 on b6fe513b9a, and again under the layer on 275e896797). With this change all 4 pass, 3 of 3. - Under lavapipe (llvmpipe, LLVM 20.1.2) they pass with and without the change; the grid reference and recipe tests skip there, as on `main`. - Khronos validation layer 1.4.363 over the same 4: - `main`: 1 of 4 passes, with `VUID-VkWriteDescriptorSet-descriptorType-00337` ×18 and `VUID-VkImageMemoryBarrier-image-03320` ×6. - With this change: 4 of 4 pass, `00337` is gone, and nothing is new. The remaining `03320` ×6 is a driver barrier on a D32S8 copy image, which #9057 fixes separately. - AMD, Windows: @DavidSamir [ran it](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6315166760) together with #9057 on a Radeon 680M (driver 32.0.21030.2001, Windows 11) under the 1.4.363 layer, on `main` 27fabb6b7. - `agc_driver_sample_order` and `agc_driver_sample_order_recipe_depth_locations` fail on `main` there too, and pass with both PRs. `03320` and `00337` are gone. - `agc_driver_sample_order_grid_reference` still fails on that device, with `VK_ERROR_DEVICE_LOST` and one `VUID-VkSubmitInfo-pSignalSemaphores-03242`. That is a separate problem, not narrowed down yet. - NVIDIA, Windows: @gdols [ran it](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6316726769) on an RTX 3080 (driver 616.92, Windows 11) on `main` 2f161d4f3. On `main` the full suite has 1838 passed, 17 skipped and 3 failed: these tests, with the same messages. With this PR and #9057, `agc_driver_sample_order`, `_recipe_depth_locations` and `_planning` pass 3 of 3, and `_grid_reference` skips (that device doesn't keep depth drawn at custom sample locations). - `main` alone, Windows: @Amoenus [ran](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6317361731) `grid_reference` and `recipe_depth_locations` on an RTX 5080 (610.62) and an AMD gfx1036 under the 1.4.363 layer, 3 times each. Both fail on both GPUs, with `00337` messages on both (gfx1036 loses the device in `grid_reference`, as on the 680M). These runs are without this PR. - NVIDIA, Windows: @MaxLikesCode [ran it](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6318857404) on an RTX 4090 (driver 617.42, Windows 11), merged onto `main` 2c4b116da, 3 runs without and 3 with the 1.4.363 layer: - `main`: `sample_order`, `_grid_reference` and `_recipe_depth_locations` fail 6 of 6, with `00337` ×18 and `03320` ×6 per layer run. - With this PR: `sample_order`, `_recipe_depth_locations` and `_planning` pass 6 of 6, and `_grid_reference` skips (as on the 3080). Only the 6 `03320` remain; with #9057 too, no VUID is left. No run lost the device. - @EagleBearerYS (#6683's author) [reviewed it](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6315198845) and ran it with #9057 on GitHub's runners. Under lavapipe, `agc_driver_sample_order`, `_planning`, `agc_driver_pixel_sample_iteration` and `agc_driver_sample_location_grid_fallback` pass 3 runs in a row. On Windows without a GPU, they skip or pass. - NVIDIA and Intel, Windows: @akkadbakkad89 [ran it](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6324595351) on an RTX 3070 (driver 617.42) and an Intel UHD Graphics 630 in the same machine, on `main` 1698d1ea6a. - RTX 3070: `main` fails the three tests with the messages above. With this PR, `sample_order`, `_recipe_depth_locations` and `_planning` pass, and `_grid_reference` skips, as on the 3080. - UHD 630: `sample_order` and `_recipe_depth_locations` fail the same way on `main` and with this PR, for other reasons: a stencil read on the depth-pass case, and a device with only 1x1 sample location grids. This PR doesn't change those. - NVIDIA, Windows: @SnekPolylepis [ran it](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6331373379) on an RTX 4080 (driver 617.42, Windows 11, WinLibs GCC 15.2.0), merged onto `main` 8c26eac3cd. `main` fails `sample_order`, `_grid_reference` and `_recipe_depth_locations`. With this PR, `sample_order`, `_recipe_depth_locations` and `_planning` pass, and `_grid_reference` skips, as on the 3070 and 3080. - Older layer, lavapipe: @xXPBSXx [ran](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6325128008) all 483 built `agc_driver_*_tests` under the Ubuntu 24.04 layer package (1.3.275) on `main` 950388bfd. `main` reports `00337` only from `agc_driver_sample_order`; with this change that test passes with no `00337`, and only #9057's `03320` remains. One run. - AMD, Windows: @JJenkx [ran it](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6328783962) on a Radeon RX 6700 XT (driver 26.10.1, Windows 11), merged onto `main` a6dcea927 together with #8884 (tessellation only), 10 runs each. `sample_order` and `_recipe_depth_locations` fail 10 of 10 on `main` and pass 10 of 10 with this PR. `_grid_reference` fails 10 of 10 on both, with the device lost on submit before anything is read back (`GPU fault`, `read invalid at 0x200000000`), as on the 680M and gfx1036. - NVIDIA, Windows: @lost9409 [ran it](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6328896630) on an RTX 5070 Ti (driver 610.88, Windows 11), on `main` a6dcea9279 with #8310's alignment fix. On `main`, `sample_order`, `_grid_reference` and `_recipe_depth_locations` fail, in the full suite and run alone. With this PR's `SampleOrder.cpp`, `sample_order`, `_recipe_depth_locations` and `_planning` pass, and `_grid_reference` skips, as on the 3080, 3070 and 4090. - NVIDIA and AMD, Windows: @wachi35676 [ran it with #9057](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6329103675) on an RTX 5070 Ti (driver 617.42) and an AMD Radeon iGPU `1002:13c0` (gfx1036, driver 32.0.21042.62), Windows 11, on `main` a6dcea927, 3 runs each. `sample_order` and `_recipe_depth_locations` fail 3 of 3 on `main` on both and pass 3 of 3 with the two PRs. On the iGPU, `main` reads garbage depth through the invalid `00337` descriptor rather than zeros, which this PR also fixes. `_grid_reference` skips on the 5070 Ti. On the iGPU it still loses the device, but with `APS5_NO_GPL=1` it passes 3 of 3, so that loss is in AMD's graphics pipeline library path, not here (#9507). - AMD, Windows: @LeandroLP23 [ran it](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6376026205) on a Radeon 860M (RDNA 3.5, `1002:1114`, driver 32.0.13058.8001, Windows 11, WinLibs GCC 15.2.0) merged onto `main` e7f46f5c89, 3 runs per case with the AMD shader cache emptied: `sample_order` and `_recipe_depth_locations` fail on `main` and pass with this PR (also with #9057 and #9503). `_grid_reference`'s depth checks all pass with it; it still fails on 42 color samples of the exact path, off by one or two steps in one channel, the same color difference @SoRadGaming saw on RDNA 4, which is outside this PR. - NVIDIA and AMD, Windows: @Amoenus [ran it after #9057 merged](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6377013177), this head merged onto `main` a23f8fc9fb, on an RTX 5080 (610.62) and a Radeon gfx1036 (32.0.21036.18) under the Khronos layer: `sample_order` and `_recipe_depth_locations` pass 3 of 3 on both, `_planning` 3 of 3, and `00337` is gone. `_grid_reference` skips its custom-depth comparison on NVIDIA and still loses the device on AMD, as it does on `main` in their earlier runs (#9507, which #9503 addresses). - Newer NVIDIA driver: the same RTX 4070 Ti on NVIDIA 615.71.09 (Ubuntu 26.04.1, kernel 7.0, GCC 15.2). In a full `ctest` of `main` 38d3c0858a, the same three tests fail with the same three messages; nothing else in AGC fails. With this PR, all 4 sample order tests pass 3 of 3. - lavapipe on the current host (Mesa 26.0.8-1ubuntu0.3, LLVM 21.1.8, Ubuntu 26.04.1), this PR merged onto `main` a6dcea9279: the 4 `sample_order` tests pass 3 of 3, and so do they on the RTX 4070 Ti (615.71.09) in the same build. - AMD, Windows: @brummilab [ran it](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6383494936) on a Radeon RX 6600 XT (Navi 23, driver 32.0.21045.16010, Windows 11, WinLibs GCC 15.2.0), merged onto `main` 60465afd3a, 3 runs: `sample_order` and `_recipe_depth_locations` fail on `main` and pass with this PR. `_grid_reference` still fails with this PR alone (`read invalid at 0x200000000`, Vulkan result -4) and passes together with #9503. - NVIDIA and AMD, Linux, under the validation layer: @TechLevelZero [ran it](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6384742313) merged onto `main` 6cd36e651. On an NVIDIA A800 (610.57.04), across the 246 tests `tools/select_tests.py` selects, `main` fails the three tests and reports 18 `VUID-VkWriteDescriptorSet-descriptorType-00337`. With this PR, `sample_order` and `_recipe_depth_locations` pass, `_grid_reference` skips (77) because the A800 does not keep depth drawn at custom sample locations, and `00337` drops to 0. On a Radeon RX 9070 XT and a gfx1036 iGPU (RADV, Mesa 26.0.8), the three pass on both sides and the PR removes every `00337` (6, 14 and 12 on `main`). Not tested: Intel on Linux. ### 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: #9313 - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 4070 Ti, driver 595.99.02, Ubuntu 24.04, and driver 615.71.09, Ubuntu 26.04.1; lavapipe (llvmpipe), Mesa 26.0.8, LLVM 21.1.8, Ubuntu 26.04.1; lavapipe (llvmpipe, LLVM 20.1.2, Vulkan 1.4.318), Ubuntu 24.04, Mesa version not recorded; AMD Radeon 680M, driver 32.0.21030.2001, Windows 11 (@DavidSamir); NVIDIA GeForce RTX 3080, driver 616.92, Windows 11 (@gdols); NVIDIA GeForce RTX 4090, driver 617.42, Windows 11 (@MaxLikesCode); NVIDIA GeForce RTX 3070, driver 617.42, and Intel UHD Graphics 630, driver 31.0.101.2140, Windows 11 (@akkadbakkad89); NVIDIA GeForce RTX 4080, driver 617.42, Windows 11 (@SnekPolylepis); AMD Radeon RX 6700 XT, driver 26.10.1, Windows 11 (@JJenkx); NVIDIA GeForce RTX 5070 Ti, driver 610.88, Windows 11 (@lost9409); NVIDIA GeForce RTX 5070 Ti, driver 617.42, and AMD Radeon iGPU 1002:13c0 (gfx1036), driver 32.0.21042.62, Windows 11 (@wachi35676); NVIDIA GeForce RTX 5080, driver 610.62, and AMD Radeon Graphics (gfx1036), driver 32.0.21036.18, Windows 11 (@Amoenus; `main` earlier, this PR after #9057); lavapipe (llvmpipe), WSL2 Ubuntu 24.04, layer 1.3.275 (@xXPBSXx; no Mesa version given); GitHub runners (lavapipe; Windows without a GPU) (@EagleBearerYS); AMD Radeon RX 9070 XT (RDNA 4), Adrenalin 26.8.1, Windows 11 (@SoRadGaming); AMD Radeon 860M (RDNA 3.5), driver 32.0.13058.8001, Windows 11 (@LeandroLP23) - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
DavidSamir commented 2026-10-21 11:48:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-21T11:48:57Z.


Independent AMD run of this PR together with #9057, under the validation layer.

Setup: Windows 11 Pro 26200, AMD Radeon 680M (RDNA 2 iGPU; no shaderStorageImageMultisample; largest sample location grid 2x2 at every count), AMD driver 32.0.21030.2001, WinLibs GCC 15.2.0 r7, Release, VK_LAYER_KHRONOS_validation (SDK 1.4.363), ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1. main is 27fabb6b7; the PR side is main + #9056 + #9057, both merged locally and cleanly. ctest -R '^agc_driver_sample_order' -V -j1.

Test main + #9056 + #9057
agc_driver_sample_order fails passes
agc_driver_sample_order_recipe_depth_locations fails: the clear between the recorded draw and its replay left depth other than the clear value passes
agc_driver_sample_order_grid_reference fails still fails: vkQueueSubmit recorder: Vulkan result -4

Validation errors:

  • main: VUID-VkImageMemoryBarrier-image-03320 x6 (a D32_SFLOAT_S8_UINT barrier with only the depth aspect), VUID-VkWriteDescriptorSet-descriptorType-00337 x7 (a sampled-image descriptor over a depth image without SAMPLED usage) and VUID-VkSubmitInfo-pSignalSemaphores-03242 x1.
  • With both PRs, 03320 and 00337 are gone. One VUID-VkSubmitInfo-pSignalSemaphores-03242 remains, in grid_reference (signal value (28) ... must be greater than current timeline semaphore ... value (18446744073709551615)), next to the -4 (VK_ERROR_DEVICE_LOST).

So on this device the two PRs fix two of the three tests, and grid_reference loses the device. I haven't narrowed down the device loss yet.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6315166760 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6315166760). Originally posted by [DavidSamir](https://github.com/DavidSamir) on 2026-10-21T11:48:57Z. --- Independent AMD run of this PR together with #9057, under the validation layer. **Setup:** Windows 11 Pro 26200, AMD Radeon 680M (RDNA 2 iGPU; no `shaderStorageImageMultisample`; largest sample location grid 2x2 at every count), AMD driver 32.0.21030.2001, WinLibs GCC 15.2.0 r7, Release, `VK_LAYER_KHRONOS_validation` (SDK 1.4.363), `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`. `main` is `27fabb6b7`; the PR side is `main` + #9056 + #9057, both merged locally and cleanly. `ctest -R '^agc_driver_sample_order' -V -j1`. | Test | `main` | + #9056 + #9057 | |---|---|---| | `agc_driver_sample_order` | fails | passes | | `agc_driver_sample_order_recipe_depth_locations` | fails: `the clear between the recorded draw and its replay left depth other than the clear value` | passes | | `agc_driver_sample_order_grid_reference` | fails | still fails: `vkQueueSubmit recorder: Vulkan result -4` | Validation errors: - `main`: `VUID-VkImageMemoryBarrier-image-03320` x6 (a `D32_SFLOAT_S8_UINT` barrier with only the depth aspect), `VUID-VkWriteDescriptorSet-descriptorType-00337` x7 (a sampled-image descriptor over a depth image without `SAMPLED` usage) and `VUID-VkSubmitInfo-pSignalSemaphores-03242` x1. - With both PRs, 03320 and 00337 are gone. One `VUID-VkSubmitInfo-pSignalSemaphores-03242` remains, in `grid_reference` (`signal value (28) ... must be greater than current timeline semaphore ... value (18446744073709551615)`), next to the `-4` (`VK_ERROR_DEVICE_LOST`). So on this device the two PRs fix two of the three tests, and `grid_reference` loses the device. I haven't narrowed down the device loss yet. AI-assisted: yes
EagleBearerYS commented 2026-10-21 11:50:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T11:50:41Z.


Read against main: this is right. Thanks for the fix to our #6683's tests.

  • The tests read depth by binding DepthSurfaceOrderTarget(...).view, the surface's own view, as a SAMPLED_IMAGE. When the device can make #7318's sampled shadow (useSampleShadow in DepthSurface.cpp), the surface image is created with attachment and transfer usage only, and SAMPLED goes on the shadow. So that descriptor breaks VUID-VkWriteDescriptorSet-descriptorType-00337, as you found.
  • ReadDepth reads the way the reorder pass does. It makes a copy of the same format and sample count with DepthUsage, the same usage the pass's depthSampleable check requires before it runs. Its first barrier names both aspects when the format has stencil, so it doesn't bring 03320 into the tests. It copies the depth aspect in GENERAL after a full barrier, and ReadTarget opens with its own full barrier, so the copy's write is visible to the read.
  • Checked here, with this PR and #9057 merged on main 275e896797 (run):
    • On GitHub's Linux runner (lavapipe), agc_driver_sample_order, agc_driver_sample_order_planning, agc_driver_pixel_sample_iteration and agc_driver_sample_location_grid_fallback pass 3 runs in a row. The grid-reference and recipe tests skip there, as you saw.
    • On Windows, without a GPU, 4 of those 6 skip and 2 pass.
    • The runners have no validation layer, so the failures on the 4070 Ti and the 00337 count aren't reproduced here.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6315198845 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6315198845). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-21T11:50:41Z. --- Read against `main`: this is right. Thanks for the fix to our #6683's tests. - The tests read depth by binding `DepthSurfaceOrderTarget(...).view`, the surface's own view, as a `SAMPLED_IMAGE`. When the device can make #7318's sampled shadow (`useSampleShadow` in `DepthSurface.cpp`), the surface image is created with attachment and transfer usage only, and `SAMPLED` goes on the shadow. So that descriptor breaks VUID-VkWriteDescriptorSet-descriptorType-00337, as you found. - `ReadDepth` reads the way the reorder pass does. It makes a copy of the same format and sample count with `DepthUsage`, the same usage the pass's `depthSampleable` check requires before it runs. Its first barrier names both aspects when the format has stencil, so it doesn't bring `03320` into the tests. It copies the depth aspect in `GENERAL` after a full barrier, and `ReadTarget` opens with its own full barrier, so the copy's write is visible to the read. - Checked here, with this PR and #9057 merged on `main` 275e896797 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39591205482)): - On GitHub's Linux runner (lavapipe), `agc_driver_sample_order`, `agc_driver_sample_order_planning`, `agc_driver_pixel_sample_iteration` and `agc_driver_sample_location_grid_fallback` pass 3 runs in a row. The grid-reference and recipe tests skip there, as you saw. - On Windows, without a GPU, 4 of those 6 skip and 2 pass. - The runners have no validation layer, so the failures on the 4070 Ti and the `00337` count aren't reproduced here.
milescoviello commented 2026-10-21 11:56:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T11:56:12Z.


Thanks @DavidSamir and @EagleBearerYS. Both are in the Tested section now.

@DavidSamir, good to see the 680M fails the same two tests on main and passes them with these PRs. About grid_reference losing the device there: the 03242 next to it reads the timeline semaphore as 18446744073709551615, which is what a lost device reports. So I read that VUID as a consequence of the loss, not its cause. The loss is something separate from these two PRs: the 4070 Ti never loses the device in that test, and on main it fails earlier, on the read. I don't have an AMD GPU here. If you get a VK_EXT_device_fault report or the last submission before the loss, I'll gladly look at it.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6315300333 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6315300333). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T11:56:12Z. --- Thanks @DavidSamir and @EagleBearerYS. Both are in the Tested section now. @DavidSamir, good to see the 680M fails the same two tests on `main` and passes them with these PRs. About `grid_reference` losing the device there: the `03242` next to it reads the timeline semaphore as `18446744073709551615`, which is what a lost device reports. So I read that VUID as a consequence of the loss, not its cause. The loss is something separate from these two PRs: the 4070 Ti never loses the device in that test, and on `main` it fails earlier, on the read. I don't have an AMD GPU here. If you get a `VK_EXT_device_fault` report or the last submission before the loss, I'll gladly look at it. AI-assisted: yes (Claude Code)
gdols commented 2026-10-21 13:02:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gdols on 2026-10-21T13:02:37Z.


Windows result on NVIDIA. Windows 11 Pro 26300, GeForce RTX 3080, driver 616.92 (32.0.16.1692), Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7, Release, main 2f161d4f3 with #8310 applied so every AGC execution test builds.

  • main, full ctest with ANYPS5_REQUIRE_VULKAN=1: 1855 of 1858 pass. The three failures are the ones listed here, with the same messages.
  • main + this PR + #9057, ctest -R sample_order --repeat until-fail:3 with ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_NO_SHADER_CACHE=1: agc_driver_sample_order, agc_driver_sample_order_recipe_depth_locations and agc_driver_sample_order_planning pass 3 of 3. agc_driver_sample_order_grid_reference skips: the device does not keep depth drawn at custom sample locations (0 of 3005 sloped samples).
  • Not run under the validation layer.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6316726769 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6316726769). Originally posted by [gdols](https://github.com/gdols) on 2026-10-21T13:02:37Z. --- Windows result on NVIDIA. Windows 11 Pro 26300, GeForce RTX 3080, driver 616.92 (32.0.16.1692), Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7, Release, `main` 2f161d4f3 with #8310 applied so every AGC execution test builds. - `main`, full `ctest` with `ANYPS5_REQUIRE_VULKAN=1`: 1855 of 1858 pass. The three failures are the ones listed here, with the same messages. - `main` + this PR + #9057, `ctest -R sample_order --repeat until-fail:3` with `ANYPS5_REQUIRE_VULKAN=1` and `ANYPS5_NO_SHADER_CACHE=1`: `agc_driver_sample_order`, `agc_driver_sample_order_recipe_depth_locations` and `agc_driver_sample_order_planning` pass 3 of 3. `agc_driver_sample_order_grid_reference` skips: the device does not keep depth drawn at custom sample locations (0 of 3005 sloped samples). - Not run under the validation layer. AI-assisted: yes
milescoviello commented 2026-10-21 13:09:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T13:09:49Z.


Thanks @gdols, that makes three devices where main fails these tests and this PR fixes them, and the first Windows NVIDIA one. I added it to the Tested section and the GPU line.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6316881632 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6316881632). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T13:09:49Z. --- Thanks @gdols, that makes three devices where `main` fails these tests and this PR fixes them, and the first Windows NVIDIA one. I added it to the Tested section and the GPU line. AI-assisted: yes (Claude Code)
gdols commented 2026-10-21 13:17:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gdols on 2026-10-21T13:17:40Z.


Correction to my comment above: ctest's summary counts skipped tests as passed. The full run on main was 1838 passed, 17 skipped and 3 failed (the three here). The skips: 13 video_out_flip_* tests (no Vulkan under the SDL offscreen driver they run with), guest_video_out_wqhd_detection_no_vulkan (it hides the Vulkan driver), 2 udmabuf imports (Linux only) and agc_driver_stencil_ref_export (no VK_EXT_shader_stencil_export).

Under the validation layer, same machine. Vulkan SDK 1.4.363.0; VK_LOADER_DEBUG=layer shows VK_LAYER_KHRONOS_validation inserted as instance and device layer in every test that opens a device, and no log reports was not found but was requested by env var VK_INSTANCE_LAYERS. ctest -R sample_order -V with ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_NO_SHADER_CACHE=1 (agc_driver_sample_order_planning opens no device):

  • main 2f161d4f3 (+ #8310 to build): 1 of 4 pass. 9 VUID-VkWriteDescriptorSet-descriptorType-00337 messages (1 in agc_driver_sample_order, 6 in agc_driver_sample_order_grid_reference, 2 in agc_driver_sample_order_recipe_depth_locations) and 3 VUID-VkImageMemoryBarrier-image-03320 (agc_driver_sample_order).
  • main + this PR + #9057: 3 pass, agc_driver_sample_order_grid_reference skips as before, no validation messages.

Each message names its VUID twice, in the header and in the spec link, so counting the lines that contain each VUID gives 18 and 6, the counts in the description. If those were counted that way, the devices agree.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6317046659 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6317046659). Originally posted by [gdols](https://github.com/gdols) on 2026-10-21T13:17:40Z. --- Correction to my comment above: ctest's summary counts skipped tests as passed. The full run on `main` was 1838 passed, 17 skipped and 3 failed (the three here). The skips: 13 `video_out_flip_*` tests (no Vulkan under the SDL `offscreen` driver they run with), `guest_video_out_wqhd_detection_no_vulkan` (it hides the Vulkan driver), 2 udmabuf imports (Linux only) and `agc_driver_stencil_ref_export` (no `VK_EXT_shader_stencil_export`). Under the validation layer, same machine. Vulkan SDK 1.4.363.0; `VK_LOADER_DEBUG=layer` shows `VK_LAYER_KHRONOS_validation` inserted as instance and device layer in every test that opens a device, and no log reports `was not found but was requested by env var VK_INSTANCE_LAYERS`. `ctest -R sample_order -V` with `ANYPS5_REQUIRE_VULKAN=1` and `ANYPS5_NO_SHADER_CACHE=1` (`agc_driver_sample_order_planning` opens no device): - `main` 2f161d4f3 (+ #8310 to build): 1 of 4 pass. 9 `VUID-VkWriteDescriptorSet-descriptorType-00337` messages (1 in `agc_driver_sample_order`, 6 in `agc_driver_sample_order_grid_reference`, 2 in `agc_driver_sample_order_recipe_depth_locations`) and 3 `VUID-VkImageMemoryBarrier-image-03320` (`agc_driver_sample_order`). - `main` + this PR + #9057: 3 pass, `agc_driver_sample_order_grid_reference` skips as before, no validation messages. Each message names its VUID twice, in the header and in the spec link, so counting the lines that contain each VUID gives 18 and 6, the counts in the description. If those were counted that way, the devices agree. AI-assisted: yes
milescoviello commented 2026-10-21 13:20:10 +00:00 (Migrated from github.com)

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


Thanks for the correction, @gdols. The Tested section now says 1838 passed, 17 skipped and 3 failed.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6317101851 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6317101851). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T13:20:10Z. --- Thanks for the correction, @gdols. The Tested section now says 1838 passed, 17 skipped and 3 failed. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-21 13:34:19 +00:00 (Migrated from github.com)

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


Thanks @Amoenus, that adds an RTX 5080 and a gfx1036 to the devices where main fails these tests with 00337. I noted it in the Tested section as a main-only run.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6317405963 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6317405963). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T13:34:19Z. --- Thanks @Amoenus, that adds an RTX 5080 and a gfx1036 to the devices where `main` fails these tests with `00337`. I noted it in the Tested section as a main-only run. AI-assisted: yes (Claude Code)
MaxLikesCode commented 2026-10-21 14:44:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MaxLikesCode on 2026-10-21T14:44:54Z.


RTX 4090 (Ada) on Windows, head d930f7c08 merged onto main 2c4b116da (clean), alone and together with #9057 (78254bef6).

NVIDIA GeForce RTX 4090, driver 617.42, Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON. ctest --test-dir build -R '^agc_driver_sample_order' -V with ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_NO_SHADER_CACHE=1, 3 runs without and 3 with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (Vulkan-ValidationLayers vulkan-sdk-1.4.363.0, implicit layers disabled). The loader log shows the layer inserted, and no log has was not found but was requested by env var VK_INSTANCE_LAYERS.

Build sample_order _grid_reference _recipe_depth_locations _planning VUID- per validation run
main fails 6 of 6 fails 6 of 6 fails 6 of 6 passes 6 of 6 18 × 00337, 6 × 03320
main + #9056 passes 6 of 6 skips 6 of 6 passes 6 of 6 passes 6 of 6 6 × 03320
main + #9056 + #9057 passes 6 of 6 skips 6 of 6 passes 6 of 6 passes 6 of 6 none

On main the failures are the three messages in the description. _grid_reference skips as on the 3080: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so the device doesn't keep depth drawn at custom sample locations. This device reports maxSampleLocationGridSize 1x1 at every sample count and no shaderStorageImageMultisample. No run lost the device.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6318857404 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6318857404). Originally posted by [MaxLikesCode](https://github.com/MaxLikesCode) on 2026-10-21T14:44:54Z. --- RTX 4090 (Ada) on Windows, head `d930f7c08` merged onto `main` `2c4b116da` (clean), alone and together with #9057 (`78254bef6`). NVIDIA GeForce RTX 4090, driver 617.42, Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`. `ctest --test-dir build -R '^agc_driver_sample_order' -V` with `ANYPS5_REQUIRE_VULKAN=1` and `ANYPS5_NO_SHADER_CACHE=1`, 3 runs without and 3 with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (Vulkan-ValidationLayers `vulkan-sdk-1.4.363.0`, implicit layers disabled). The loader log shows the layer inserted, and no log has `was not found but was requested by env var VK_INSTANCE_LAYERS`. | Build | `sample_order` | `_grid_reference` | `_recipe_depth_locations` | `_planning` | `VUID-` per validation run | |---|---|---|---|---|---| | `main` | fails 6 of 6 | fails 6 of 6 | fails 6 of 6 | passes 6 of 6 | 18 × `00337`, 6 × `03320` | | `main` + #9056 | passes 6 of 6 | skips 6 of 6 | passes 6 of 6 | passes 6 of 6 | 6 × `03320` | | `main` + #9056 + #9057 | passes 6 of 6 | skips 6 of 6 | passes 6 of 6 | passes 6 of 6 | none | On `main` the failures are the three messages in the description. `_grid_reference` skips as on the 3080: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so the device doesn't keep depth drawn at custom sample locations. This device reports `maxSampleLocationGridSize` 1x1 at every sample count and no `shaderStorageImageMultisample`. No run lost the device. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-21 14:46:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T14:46:24Z.


Thanks @MaxLikesCode. The RTX 4090 run matches the others: main fails the three tests with 00337 ×18, this PR passes them (_grid_reference skips as on the 3080), and with #9057 no VUID is left. I added it to the Tested sections and GPU lines here and on #9057.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6318894038 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6318894038). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T14:46:24Z. --- Thanks @MaxLikesCode. The RTX 4090 run matches the others: `main` fails the three tests with `00337` ×18, this PR passes them (`_grid_reference` skips as on the 3080), and with #9057 no VUID is left. I added it to the Tested sections and GPU lines here and on #9057. AI-assisted: yes (Claude Code)
akkadbakkad89 commented 2026-10-21 19:24:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-21T19:24:19Z.


Independent Windows run on the same GPU family as #9313 (data only).

Environment: Windows 11, NVIDIA GeForce RTX 3070 (driver 617.42) + Intel UHD Graphics 630 (driver 31.0.101.2140), WinLibs GCC 15.2, Release, main 1698d1ea6a. The patch was applied as the file-level diff of d930f7c08 onto that main. ctest -R "^agc_driver_sample_order" with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (the layer is not installed on this machine — no VUID- lines and no "was not found but was requested" in the logs, so this run adds no validation-layer evidence).

RTX 3070 (vendor=0x10de device=0x2484):

  • main: agc_driver_sample_order, _grid_reference and _recipe_depth_locations all fail with the exact messages from #9313 (the slopes did not leave depth both at and below the clear value, the clear between the recorded draw and its replay left depth other than the clear value). _planning not run.
  • With this change: agc_driver_sample_order pass, _recipe_depth_locations pass, _planning pass, _grid_reference skips — "the device does not keep depth drawn at custom sample locations at those locations", the same device-capability skip reported for the RTX 3080.

Intel UHD 630 (vendor=0x8086 device=0x9bc5): agc_driver_sample_order and _recipe_depth_locations fail identically on main and with this change — different failure modes from the depth-read issue: sample_order fails at "the 2x depth format 130 through a depth pass exporting stencil" (stencil byte reads 0x00, expected 0x62), and the recipe test reports "the device reads depth drawn at custom sample locations back at other locations" (this device advertises only 1x1 sample-location grids and lacks shaderStorageImageMultisample). Pre-existing capability failures, not moved by this PR. _grid_reference skips on both; _planning passes.

Net: this fixes the NVIDIA read on the 3070 exactly as on the 3080/4090 — #9313's report should close with it. The UHD 630 failures are a separate device-capability gap worth their own tracking if not already covered.

AI-assisted: yes (Devin).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6324595351 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6324595351). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-10-21T19:24:19Z. --- Independent Windows run on the same GPU family as #9313 (data only). **Environment:** Windows 11, NVIDIA GeForce RTX 3070 (driver 617.42) + Intel UHD Graphics 630 (driver 31.0.101.2140), WinLibs GCC 15.2, Release, `main` `1698d1ea6a`. The patch was applied as the file-level diff of `d930f7c08` onto that main. `ctest -R "^agc_driver_sample_order"` with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (the layer is not installed on this machine — no `VUID-` lines and no "was not found but was requested" in the logs, so this run adds no validation-layer evidence). **RTX 3070** (`vendor=0x10de device=0x2484`): - `main`: `agc_driver_sample_order`, `_grid_reference` and `_recipe_depth_locations` all fail with the exact messages from #9313 (`the slopes did not leave depth both at and below the clear value`, `the clear between the recorded draw and its replay left depth other than the clear value`). `_planning` not run. - With this change: `agc_driver_sample_order` pass, `_recipe_depth_locations` pass, `_planning` pass, `_grid_reference` **skips** — "the device does not keep depth drawn at custom sample locations at those locations", the same device-capability skip reported for the RTX 3080. **Intel UHD 630** (`vendor=0x8086 device=0x9bc5`): `agc_driver_sample_order` and `_recipe_depth_locations` fail **identically on `main` and with this change** — different failure modes from the depth-read issue: `sample_order` fails at "the 2x depth format 130 through a depth pass exporting stencil" (stencil byte reads `0x00`, expected `0x62`), and the recipe test reports "the device reads depth drawn at custom sample locations back at other locations" (this device advertises only 1x1 sample-location grids and lacks `shaderStorageImageMultisample`). Pre-existing capability failures, not moved by this PR. `_grid_reference` skips on both; `_planning` passes. Net: this fixes the NVIDIA read on the 3070 exactly as on the 3080/4090 — #9313's report should close with it. The UHD 630 failures are a separate device-capability gap worth their own tracking if not already covered. AI-assisted: yes (Devin).
milescoviello commented 2026-10-21 19:37:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T19:37:44Z.


Thanks @akkadbakkad89. The RTX 3070 result matches the 3080 and 4090, and it is the device in #9313, so this PR now says Fixes #9313. I added both GPUs to the Tested section. The UHD 630 failures are separate, as you say: they fail the same way on main, from the stencil read and the 1x1 sample location grid.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6324854949 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6324854949). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T19:37:44Z. --- Thanks @akkadbakkad89. The RTX 3070 result matches the 3080 and 4090, and it is the device in #9313, so this PR now says Fixes #9313. I added both GPUs to the Tested section. The UHD 630 failures are separate, as you say: they fail the same way on `main`, from the stencil read and the 1x1 sample location grid. AI-assisted: yes (Claude Code)
xXPBSXx commented 2026-10-21 19:52:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T19:52:14Z.


Validation-layer data point for this PR (data only).

Setup: Linux (WSL2 Ubuntu 24.04, GCC 13.3, Release), llvmpipe, vulkan-validationlayers 1.3.275.0-1 from the Ubuntu archive (older than the SDK a driver ships with), VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. main 950388bfd; this PR's change (taken as git diff upstream/main...refs/pr/9056) applied on top of it.

Before (main): across all 483 built agc_driver_*_tests the layer reports VUID-VkWriteDescriptorSet-descriptorType-00337 once, from agc_driver_sample_order: a depth image view created without VK_IMAGE_USAGE_SAMPLED_BIT written to a VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE descriptor.

After (this PR): agc_driver_sample_order run again with the layer: 0 reports of that VUID, test passes. VUID-VkImageMemoryBarrier-image-03320 (barrier with only the depth aspect on D32_SFLOAT_S8_UINT) is still reported in that run; #9057 is about that one.

One run each, on llvmpipe only.

Not run: other GPUs for the layer run, other platforms, the other tests with the change under the layer.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6325128008 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6325128008). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-21T19:52:14Z. --- Validation-layer data point for this PR (data only). **Setup:** Linux (WSL2 Ubuntu 24.04, GCC 13.3, Release), llvmpipe, `vulkan-validationlayers` 1.3.275.0-1 from the Ubuntu archive (older than the SDK a driver ships with), `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`. `main` `950388bfd`; this PR's change (taken as `git diff upstream/main...refs/pr/9056`) applied on top of it. **Before (`main`):** across all 483 built `agc_driver_*_tests` the layer reports `VUID-VkWriteDescriptorSet-descriptorType-00337` once, from `agc_driver_sample_order`: a depth image view created without VK_IMAGE_USAGE_SAMPLED_BIT written to a VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE descriptor. **After (this PR):** `agc_driver_sample_order` run again with the layer: 0 reports of that VUID, test passes. VUID-VkImageMemoryBarrier-image-03320 (barrier with only the depth aspect on D32_SFLOAT_S8_UINT) is still reported in that run; #9057 is about that one. One run each, on llvmpipe only. **Not run:** other GPUs for the layer run, other platforms, the other tests with the change under the layer. AI-assisted (Claude Code).
milescoviello commented 2026-10-21 19:53:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T19:53:15Z.


Thanks @xXPBSXx. The 483-test layer run is useful: on main, 00337 comes only from agc_driver_sample_order, and this PR clears it there. I added it to the Tested section.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6325147213 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6325147213). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T19:53:15Z. --- Thanks @xXPBSXx. The 483-test layer run is useful: on `main`, `00337` comes only from `agc_driver_sample_order`, and this PR clears it there. I added it to the Tested section. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-21 23:16:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T23:16:54Z.

Review: CHANGES_REQUESTED


The code change is narrowly scoped to the failing sample-order test reads, and the reported before/after results on several GPUs are substantial. The remaining repository checklist requirement is incomplete: because this changes AGC tests, the GPUs tested checklist line must name vendor, model, driver and OS for every GPU the test report includes. In particular, the checklist currently omits the Windows drivers for the RTX 3080, RTX 4090, RTX 3070 and UHD 630 (and omits the Radeon 680M driver); the Tested text has some of these values, but the checklist line itself is missing them. Please make that line complete and identify lavapipe with its Mesa/LLVM version and host OS. The validation-layer results in the Tested text otherwise provide same-machine baseline/change evidence, with the remaining 03320 specifically isolated to #9057. I will revisit after this template detail is corrected.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607394907 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#pullrequestreview-5607394907). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T23:16:54Z. **Review:** CHANGES_REQUESTED --- The code change is narrowly scoped to the failing sample-order test reads, and the reported before/after results on several GPUs are substantial. The remaining repository checklist requirement is incomplete: because this changes AGC tests, the `GPUs tested` checklist line must name vendor, model, driver and OS for every GPU the test report includes. In particular, the checklist currently omits the Windows drivers for the RTX 3080, RTX 4090, RTX 3070 and UHD 630 (and omits the Radeon 680M driver); the Tested text has some of these values, but the checklist line itself is missing them. Please make that line complete and identify lavapipe with its Mesa/LLVM version and host OS. The validation-layer results in the Tested text otherwise provide same-machine baseline/change evidence, with the remaining `03320` specifically isolated to #9057. I will revisit after this template detail is corrected.
milescoviello commented 2026-10-21 23:20:23 +00:00 (Migrated from github.com)

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


Thanks @MarcZX10. I rewrote the GPUs tested line with vendor, model, driver and OS for every GPU in the report, including the Windows drivers (RTX 3080 616.92, RTX 4090 617.42, RTX 3070 617.42, UHD 630 31.0.101.2140, Radeon 680M 32.0.21030.2001). The two main-only runs and the CI runners are marked as such. I made the same fix in #9057.

For lavapipe, my earlier runs only logged LLVM 20.1.2 and Vulkan 1.4.318, not the Mesa version, and that host has since been upgraded. So I'm rerunning the four sample_order tests on lavapipe with the current Mesa (26.0.8, LLVM 21.1.8, Ubuntu 26.04.1), for this PR and #9057. When those results are in, they'll replace the old lavapipe entry.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6328746627 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6328746627). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T23:20:23Z. --- Thanks @MarcZX10. I rewrote the `GPUs tested` line with vendor, model, driver and OS for every GPU in the report, including the Windows drivers (RTX 3080 616.92, RTX 4090 617.42, RTX 3070 617.42, UHD 630 31.0.101.2140, Radeon 680M 32.0.21030.2001). The two `main`-only runs and the CI runners are marked as such. I made the same fix in #9057. For lavapipe, my earlier runs only logged LLVM 20.1.2 and Vulkan 1.4.318, not the Mesa version, and that host has since been upgraded. So I'm rerunning the four `sample_order` tests on lavapipe with the current Mesa (26.0.8, LLVM 21.1.8, Ubuntu 26.04.1), for this PR and #9057. When those results are in, they'll replace the old lavapipe entry. AI-assisted: yes (Claude Code)
JJenkx commented 2026-10-21 23:23:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-21T23:23:06Z.


Validated on AMD's Windows driver: Radeon RX 6700 XT, AMD proprietary driver 26.10.1, Windows 11 10.0.22621, WinLibs GCC 15.2 UCRT, Release. Each test was run 10 times one after another. The PR build is main a6dcea927 with this PR merged, together with #8884, which changes only tessellation.

test main this PR
agc_driver_sample_order fails 10/10 (2x scene with the standard locations: sample 0 of pixel (0, 0) holds depth 1075959298965006122069398516662272.000000) passes 10/10
agc_driver_sample_order_recipe_depth_locations fails 10/10 passes 10/10
agc_driver_sample_order_grid_reference fails 10/10 fails 10/10

On this driver, grid_reference fails before it reads anything back, so it is a separate problem: the device is lost on submit.

[device-fault] result 0: GPU fault
[device-fault] read invalid at 0x200000000 (precision 0x1000)
AGC graphics: vkQueueSubmit recorder: Vulkan result -4
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6328783962 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6328783962). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-21T23:23:06Z. --- Validated on AMD's Windows driver: Radeon RX 6700 XT, AMD proprietary driver 26.10.1, Windows 11 10.0.22621, WinLibs GCC 15.2 UCRT, Release. Each test was run 10 times one after another. The PR build is `main` a6dcea927 with this PR merged, together with #8884, which changes only tessellation. | test | `main` | this PR | |---|---|---| | `agc_driver_sample_order` | fails 10/10 (`2x scene with the standard locations: sample 0 of pixel (0, 0) holds depth 1075959298965006122069398516662272.000000`) | passes 10/10 | | `agc_driver_sample_order_recipe_depth_locations` | fails 10/10 | passes 10/10 | | `agc_driver_sample_order_grid_reference` | fails 10/10 | fails 10/10 | On this driver, `grid_reference` fails before it reads anything back, so it is a separate problem: the device is lost on submit. ``` [device-fault] result 0: GPU fault [device-fault] read invalid at 0x200000000 (precision 0x1000) AGC graphics: vkQueueSubmit recorder: Vulkan result -4 ```
milescoviello commented 2026-10-21 23:23:57 +00:00 (Migrated from github.com)

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


Thanks @JJenkx. 10 of 10 on the RX 6700 XT is the first run on AMD's current Windows driver, and it matches the NVIDIA and 680M results: the two depth-read tests go from failing to passing. The grid_reference device loss on submit is the same AMD-only problem as on the 680M and gfx1036, so I've kept it out of this PR. I added your run to the Tested section and the GPU line.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6328795884 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6328795884). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T23:23:57Z. --- Thanks @JJenkx. 10 of 10 on the RX 6700 XT is the first run on AMD's current Windows driver, and it matches the NVIDIA and 680M results: the two depth-read tests go from failing to passing. The `grid_reference` device loss on submit is the same AMD-only problem as on the 680M and gfx1036, so I've kept it out of this PR. I added your run to the Tested section and the GPU line. AI-assisted: yes (Claude Code)
lost9409 commented 2026-10-21 23:31:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by lost9409 on 2026-10-21T23:31:17Z.


Tested on Windows 11 Pro build 26200, RTX 5070 Ti, NVIDIA driver 610.88, WinLibs GCC 15.2.0 r7.
Base: a6dcea9279, with the test alignment fix from #8310.
Before #9056: sample_order, sample_order_grid_reference and sample_order_recipe_depth_locations failed both in the full suite and sequentially.
After applying tests/execution/SampleOrder.cpp from d930f7c083daae80024955214fccc735abaced8c: sample_order, sample_order_recipe_depth_locations and sample_order_planning pass. sample_order_grid_reference skips because depth at custom sample locations is not preserved as required by its comparison.
Vulkan required, shader cache disabled. Validation layers were not enabled; #9057 was not applied. The full suite has not been rerun after #9056.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6328896630 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6328896630). Originally posted by [lost9409](https://github.com/lost9409) on 2026-10-21T23:31:17Z. --- Tested on Windows 11 Pro build 26200, RTX 5070 Ti, NVIDIA driver 610.88, WinLibs GCC 15.2.0 r7. Base: a6dcea9279b53b3a39c13695eac66f7c8b5b503c, with the test alignment fix from #8310. Before #9056: sample_order, sample_order_grid_reference and sample_order_recipe_depth_locations failed both in the full suite and sequentially. After applying tests/execution/SampleOrder.cpp from d930f7c083daae80024955214fccc735abaced8c: sample_order, sample_order_recipe_depth_locations and sample_order_planning pass. sample_order_grid_reference skips because depth at custom sample locations is not preserved as required by its comparison. Vulkan required, shader cache disabled. Validation layers were not enabled; #9057 was not applied. The full suite has not been rerun after #9056.
milescoviello commented 2026-10-21 23:32:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T23:32:33Z.


Thanks @lost9409. The RTX 5070 Ti matches the other NVIDIA cards: the two depth-read tests pass with this PR, and grid_reference skips because that device doesn't keep depth at custom sample locations. I added your run to the Tested section and the GPU line.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6328914425 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6328914425). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T23:32:33Z. --- Thanks @lost9409. The RTX 5070 Ti matches the other NVIDIA cards: the two depth-read tests pass with this PR, and `grid_reference` skips because that device doesn't keep depth at custom sample locations. I added your run to the Tested section and the GPU line. AI-assisted: yes (Claude Code)
wachi35676 commented 2026-10-21 23:46:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-21T23:46:29Z.


RTX 5070 Ti and the gfx1036 driver that Amoenus's main-only run didn't cover with the fix. Windows 11, WinLibs GCC 15.2.0, Release, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, every run from a renamed copy of the executable. main a6dcea927; the PR side is main + d930f7c08 + #9057 78254bef6 (and #8884, which only touches tessellation).

Test RTX 5070 Ti (617.42), main 5070 Ti, + #9056 + #9057 Radeon iGPU 1002:13c0 (32.0.21042.62), main iGPU, + #9056 + #9057
agc_driver_sample_order fails 3/3: the slopes did not leave depth both at and below the clear value passes 3/3 fails 3/3: sample 0 of pixel (0, 0) holds depth 1075959298965006122069398516662272.000000 passes 3/3
_recipe_depth_locations fails 3/3: the clear between the recorded draw and its replay left depth other than the clear value passes 3/3 fails 3/3, same message passes 3/3
_grid_reference fails 3/3: composite slopes message skips 3/3 (0 of 3005 sloped samples, as on the 3080/4090) fails 3/3: vkQueueSubmit recorder: Vulkan result -4 fails 3/3, same

On the AMD iGPU main reads garbage depth through the invalid 00337 descriptor rather than zeros, so this PR fixes a second symptom of the same bug there.

About the _grid_reference device loss on AMD (@DavidSamir's 680M, Amoenus's gfx1036, and here): it goes away with APS5_NO_GPL=1. With the pipeline libraries off, the test passes 3 of 3 on this iGPU with both PRs and ends with the exact path renders Village's 2x checkerboard like the device's 2x2 sample location grid, bit for bit. So the loss is in AMD's graphics-pipeline-library path, not in these PRs. Details in #9507.

Not run: the Khronos validation layer (not installed on this machine).

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

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6329103675 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6329103675). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-21T23:46:29Z. --- RTX 5070 Ti and the gfx1036 driver that Amoenus's main-only run didn't cover with the fix. Windows 11, WinLibs GCC 15.2.0, Release, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, every run from a renamed copy of the executable. `main` `a6dcea927`; the PR side is `main` + `d930f7c08` + #9057 `78254bef6` (and #8884, which only touches tessellation). | Test | RTX 5070 Ti (617.42), `main` | 5070 Ti, + #9056 + #9057 | Radeon iGPU `1002:13c0` (32.0.21042.62), `main` | iGPU, + #9056 + #9057 | |---|---|---|---|---| | `agc_driver_sample_order` | fails 3/3: `the slopes did not leave depth both at and below the clear value` | passes 3/3 | fails 3/3: `sample 0 of pixel (0, 0) holds depth 1075959298965006122069398516662272.000000` | passes 3/3 | | `_recipe_depth_locations` | fails 3/3: `the clear between the recorded draw and its replay left depth other than the clear value` | passes 3/3 | fails 3/3, same message | passes 3/3 | | `_grid_reference` | fails 3/3: composite slopes message | skips 3/3 (0 of 3005 sloped samples, as on the 3080/4090) | fails 3/3: `vkQueueSubmit recorder: Vulkan result -4` | fails 3/3, same | On the AMD iGPU `main` reads garbage depth through the invalid `00337` descriptor rather than zeros, so this PR fixes a second symptom of the same bug there. About the `_grid_reference` device loss on AMD (@DavidSamir's 680M, Amoenus's gfx1036, and here): it goes away with `APS5_NO_GPL=1`. With the pipeline libraries off, the test passes 3 of 3 on this iGPU with both PRs and ends with `the exact path renders Village's 2x checkerboard like the device's 2x2 sample location grid, bit for bit`. So the loss is in AMD's graphics-pipeline-library path, not in these PRs. Details in #9507. Not run: the Khronos validation layer (not installed on this machine). AI-assisted: yes (Claude Code); results above were run on this machine.
milescoviello commented 2026-10-21 23:48:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T23:48:00Z.


Thanks @wachi35676. That covers the gfx1036 with the fix, which Amoenus's main-only run didn't, and the APS5_NO_GPL=1 result moves the AMD grid_reference device loss out of these PRs and into #9507. I added your run to the Tested sections and GPU lines here and on #9057.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6329123493 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6329123493). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T23:48:00Z. --- Thanks @wachi35676. That covers the gfx1036 with the fix, which Amoenus's `main`-only run didn't, and the `APS5_NO_GPL=1` result moves the AMD `grid_reference` device loss out of these PRs and into #9507. I added your run to the Tested sections and GPU lines here and on #9057. AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-21 23:58:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T23:58:26Z.


@MarcZX10 the lavapipe entry now has a version I can verify. On Mesa 26.0.8-1ubuntu0.3 (LLVM 21.1.8, Ubuntu 26.04.1), this PR merged onto main a6dcea9279 passes the 4 sample_order tests 3 of 3. The RTX 4070 Ti (615.71.09) does the same in that build. Both are in the Tested section and the GPU line, along with the older LLVM 20.1.2 runs, whose Mesa version wasn't recorded. #9057 has the same update.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6329259289 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6329259289). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-21T23:58:26Z. --- @MarcZX10 the lavapipe entry now has a version I can verify. On Mesa 26.0.8-1ubuntu0.3 (LLVM 21.1.8, Ubuntu 26.04.1), this PR merged onto `main` a6dcea9279 passes the 4 `sample_order` tests 3 of 3. The RTX 4070 Ti (615.71.09) does the same in that build. Both are in the Tested section and the GPU line, along with the older LLVM 20.1.2 runs, whose Mesa version wasn't recorded. #9057 has the same update. AI-assisted: yes (Claude Code)
SnekPolylepis commented 2026-10-22 02:41:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SnekPolylepis on 2026-10-22T02:41:01Z.


Confirmed on an RTX 4080 (Windows 11, driver 617.42, MinGW GCC 15.2.0 WinLibs r7), with this PR (d930f7c083) merged onto main 8c26eac3cd.

On main the three tests fail: agc_driver_sample_order, agc_driver_sample_order_grid_reference and agc_driver_sample_order_recipe_depth_locations.

With this PR:

  • agc_driver_sample_order: passed
  • agc_driver_sample_order_recipe_depth_locations: passed
  • agc_driver_sample_order_planning: passed
  • agc_driver_sample_order_grid_reference: skipped, the same as on the RTX 3070 and 3080

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6331373379 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6331373379). Originally posted by [SnekPolylepis](https://github.com/SnekPolylepis) on 2026-10-22T02:41:01Z. --- Confirmed on an RTX 4080 (Windows 11, driver 617.42, MinGW GCC 15.2.0 WinLibs r7), with this PR (`d930f7c083`) merged onto `main` `8c26eac3cd`. On `main` the three tests fail: `agc_driver_sample_order`, `agc_driver_sample_order_grid_reference` and `agc_driver_sample_order_recipe_depth_locations`. With this PR: - `agc_driver_sample_order`: passed - `agc_driver_sample_order_recipe_depth_locations`: passed - `agc_driver_sample_order_planning`: passed - `agc_driver_sample_order_grid_reference`: skipped, the same as on the RTX 3070 and 3080 AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-22 02:54:39 +00:00 (Migrated from github.com)

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


@SnekPolylepis thanks for the RTX 4080 run. It matches the 3070, 3080 and 4090 results, and I've added it to the description.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6331539500 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#issuecomment-6331539500). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-22T02:54:39Z. --- @SnekPolylepis thanks for the RTX 4080 run. It matches the 3070, 3080 and 4090 results, and I've added it to the description. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-22 15:56:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T15:56:10Z.

Review: DISMISSED


The earlier review's GPU-list requirement is now satisfied: the checklist names the tested vendors/models, drivers and OSes, and the lavapipe environments. I found no new issue in the one-file test change, and the reported before/after results on multiple NVIDIA and AMD devices are strong.

One contribution-rule item remains before approval: this head is based on 524398151f, 123 commits behind current main (093149c5). SampleOrder.cpp itself has not changed on main since that base, but the branch still needs to be refreshed and the focused sample_order tests rerun on the resulting head. Product build jobs are skipped by the PR workflow. My local syntax-only compile could not complete because the generated SampleOrderTestFillDepth_spv.h is absent, so I did not independently run the test.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5617069360 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9056#pullrequestreview-5617069360). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T15:56:10Z. **Review:** DISMISSED --- The earlier review's GPU-list requirement is now satisfied: the checklist names the tested vendors/models, drivers and OSes, and the lavapipe environments. I found no new issue in the one-file test change, and the reported before/after results on multiple NVIDIA and AMD devices are strong. One contribution-rule item remains before approval: this head is based on `524398151f`, 123 commits behind current `main` (`093149c5`). `SampleOrder.cpp` itself has not changed on main since that base, but the branch still needs to be refreshed and the focused `sample_order` tests rerun on the resulting head. Product build jobs are skipped by the PR workflow. My local syntax-only compile could not complete because the generated `SampleOrderTestFillDepth_spv.h` is absent, so I did not independently run the test.
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!9056
No description provided.