test(agc): read the sample order tests' depth through a sampled copy #9056
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9056"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
mainon an RTX 4070 Ti with the 595.99.02 Linux driver:agc_driver_sample_order,agc_driver_sample_order_grid_referenceandagc_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 valuethe composite of uniform renders: the slopes did not leave depth both at and below the clear valuepixel (0,0)'s locations in every pixel: the clear between the recorded draw and its replay left depth other than the clear valueThe 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 withoutVK_IMAGE_USAGE_SAMPLED_BIT. So that descriptor is invalid: the Khronos layer reportsVUID-VkWriteDescriptorSet-descriptorType-0033718 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.cppcopies the depth plane into an image of its own with sampled usage and samples the copy. The tests now do the same through a newReadDepth:Imageof the same format and sample count, withDepthUsage, inGENERAL(no layout change on the surface);ReadTarget.Both reads go through it: the scene read in
RenderCheckerboardand the recipe test'sread. Only the test changes.Tested
maind2e42c334das53949c0775(commit unchanged,git range-diff). On the RTX 4070 Ti (615.71.09, Ubuntu 26.04.1, GCC 15.2, Release), 3 runs each:mainfailssample_order,_grid_referenceand_recipe_depth_locations; this head passes all 4sample_ordertests, alone and with #9057 (7333de6aee).main8499ea52e5, with no conflicts, as head0fd624d93b(git range-diffshows the commit unchanged). The 4sample_ordertests 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 fullctest -j 4ofmainda54c652e3on 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
main275e896797.The 4 tests matching
sample_order: onmain,agc_driver_sample_order_planningpasses and the three above fail, every run (2 of 2 onb6fe513b9a, and again under the layer on275e896797). 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, withVUID-VkWriteDescriptorSet-descriptorType-00337×18 andVUID-VkImageMemoryBarrier-image-03320×6.00337is gone, and nothing is new. The remaining03320×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
main27fabb6b7.agc_driver_sample_orderandagc_driver_sample_order_recipe_depth_locationsfail onmainthere too, and pass with both PRs.03320and00337are gone.agc_driver_sample_order_grid_referencestill fails on that device, withVK_ERROR_DEVICE_LOSTand oneVUID-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
main2f161d4f3. Onmainthe 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_locationsand_planningpass 3 of 3, and_grid_referenceskips (that device doesn't keep depth drawn at custom sample locations).mainalone, Windows: @Amoenus rangrid_referenceandrecipe_depth_locationson an RTX 5080 (610.62) and an AMD gfx1036 under the 1.4.363 layer, 3 times each. Both fail on both GPUs, with00337messages on both (gfx1036 loses the device ingrid_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
main2c4b116da, 3 runs without and 3 with the 1.4.363 layer:main:sample_order,_grid_referenceand_recipe_depth_locationsfail 6 of 6, with00337×18 and03320×6 per layer run.sample_order,_recipe_depth_locationsand_planningpass 6 of 6, and_grid_referenceskips (as on the 3080). Only the 603320remain; 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_iterationandagc_driver_sample_location_grid_fallbackpass 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
main1698d1ea6a.mainfails the three tests with the messages above. With this PR,sample_order,_recipe_depth_locationsand_planningpass, and_grid_referenceskips, as on the 3080.sample_orderand_recipe_depth_locationsfail the same way onmainand 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
main8c26eac3cd.mainfailssample_order,_grid_referenceand_recipe_depth_locations. With this PR,sample_order,_recipe_depth_locationsand_planningpass, and_grid_referenceskips, as on the 3070 and 3080.Older layer, lavapipe: @xXPBSXx ran all 483 built
agc_driver_*_testsunder the Ubuntu 24.04 layer package (1.3.275) onmain950388bfd.mainreports00337only fromagc_driver_sample_order; with this change that test passes with no00337, and only #9057's03320remains. One run.AMD, Windows: @JJenkx ran it on a Radeon RX 6700 XT (driver 26.10.1, Windows 11), merged onto
maina6dcea927together with #8884 (tessellation only), 10 runs each.sample_orderand_recipe_depth_locationsfail 10 of 10 onmainand pass 10 of 10 with this PR._grid_referencefails 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
maina6dcea9279with #8310's alignment fix. Onmain,sample_order,_grid_referenceand_recipe_depth_locationsfail, in the full suite and run alone. With this PR'sSampleOrder.cpp,sample_order,_recipe_depth_locationsand_planningpass, and_grid_referenceskips, 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, onmaina6dcea927, 3 runs each.sample_orderand_recipe_depth_locationsfail 3 of 3 onmainon both and pass 3 of 3 with the two PRs. On the iGPU,mainreads garbage depth through the invalid00337descriptor rather than zeros, which this PR also fixes._grid_referenceskips on the 5070 Ti. On the iGPU it still loses the device, but withAPS5_NO_GPL=1it 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 ontomaine7f46f5c89, 3 runs per case with the AMD shader cache emptied:sample_orderand_recipe_depth_locationsfail onmainand 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
maina23f8fc9fb, on an RTX 5080 (610.62) and a Radeon gfx1036 (32.0.21036.18) under the Khronos layer:sample_orderand_recipe_depth_locationspass 3 of 3 on both,_planning3 of 3, and00337is gone._grid_referenceskips its custom-depth comparison on NVIDIA and still loses the device on AMD, as it does onmainin 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
ctestofmain38d3c0858a, 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
maina6dcea9279: the 4sample_ordertests 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
main60465afd3a, 3 runs:sample_orderand_recipe_depth_locationsfail onmainand pass with this PR._grid_referencestill 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
main6cd36e651. On an NVIDIA A800 (610.57.04), across the 246 teststools/select_tests.pyselects,mainfails the three tests and reports 18VUID-VkWriteDescriptorSet-descriptorType-00337. With this PR,sample_orderand_recipe_depth_locationspass,_grid_referenceskips (77) because the A800 does not keep depth drawn at custom sample locations, and00337drops 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 every00337(6, 14 and 12 onmain).Not tested: Intel on Linux.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)mainearlier, 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)🤖 Generated with Claude Code
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.mainis27fabb6b7; the PR side ismain+ #9056 + #9057, both merged locally and cleanly.ctest -R '^agc_driver_sample_order' -V -j1.mainagc_driver_sample_orderagc_driver_sample_order_recipe_depth_locationsthe clear between the recorded draw and its replay left depth other than the clear valueagc_driver_sample_order_grid_referencevkQueueSubmit recorder: Vulkan result -4Validation errors:
main:VUID-VkImageMemoryBarrier-image-03320x6 (aD32_SFLOAT_S8_UINTbarrier with only the depth aspect),VUID-VkWriteDescriptorSet-descriptorType-00337x7 (a sampled-image descriptor over a depth image withoutSAMPLEDusage) andVUID-VkSubmitInfo-pSignalSemaphores-03242x1.VUID-VkSubmitInfo-pSignalSemaphores-03242remains, ingrid_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_referenceloses the device. I haven't narrowed down the device loss yet.AI-assisted: yes
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.DepthSurfaceOrderTarget(...).view, the surface's own view, as aSAMPLED_IMAGE. When the device can make #7318's sampled shadow (useSampleShadowinDepthSurface.cpp), the surface image is created with attachment and transfer usage only, andSAMPLEDgoes on the shadow. So that descriptor breaks VUID-VkWriteDescriptorSet-descriptorType-00337, as you found.ReadDepthreads the way the reorder pass does. It makes a copy of the same format and sample count withDepthUsage, the same usage the pass'sdepthSampleablecheck requires before it runs. Its first barrier names both aspects when the format has stencil, so it doesn't bring03320into the tests. It copies the depth aspect inGENERALafter a full barrier, andReadTargetopens with its own full barrier, so the copy's write is visible to the read.main275e896797(run):agc_driver_sample_order,agc_driver_sample_order_planning,agc_driver_pixel_sample_iterationandagc_driver_sample_location_grid_fallbackpass 3 runs in a row. The grid-reference and recipe tests skip there, as you saw.00337count aren't reproduced here.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
mainand passes them with these PRs. Aboutgrid_referencelosing the device there: the03242next to it reads the timeline semaphore as18446744073709551615, 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 onmainit fails earlier, on the read. I don't have an AMD GPU here. If you get aVK_EXT_device_faultreport or the last submission before the loss, I'll gladly look at it.AI-assisted: yes (Claude Code)
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,
main2f161d4f3with #8310 applied so every AGC execution test builds.main, fullctestwithANYPS5_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:3withANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1:agc_driver_sample_order,agc_driver_sample_order_recipe_depth_locationsandagc_driver_sample_order_planningpass 3 of 3.agc_driver_sample_order_grid_referenceskips: the device does not keep depth drawn at custom sample locations (0 of 3005 sloped samples).AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T13:09:49Z.
Thanks @gdols, that makes three devices where
mainfails 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)
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
mainwas 1838 passed, 17 skipped and 3 failed (the three here). The skips: 13video_out_flip_*tests (no Vulkan under the SDLoffscreendriver they run with),guest_video_out_wqhd_detection_no_vulkan(it hides the Vulkan driver), 2 udmabuf imports (Linux only) andagc_driver_stencil_ref_export(noVK_EXT_shader_stencil_export).Under the validation layer, same machine. Vulkan SDK 1.4.363.0;
VK_LOADER_DEBUG=layershowsVK_LAYER_KHRONOS_validationinserted as instance and device layer in every test that opens a device, and no log reportswas not found but was requested by env var VK_INSTANCE_LAYERS.ctest -R sample_order -VwithANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1(agc_driver_sample_order_planningopens no device):main2f161d4f3(+ #8310 to build): 1 of 4 pass. 9VUID-VkWriteDescriptorSet-descriptorType-00337messages (1 inagc_driver_sample_order, 6 inagc_driver_sample_order_grid_reference, 2 inagc_driver_sample_order_recipe_depth_locations) and 3VUID-VkImageMemoryBarrier-image-03320(agc_driver_sample_order).main+ this PR + #9057: 3 pass,agc_driver_sample_order_grid_referenceskips 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
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)
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
mainfails these tests with00337. I noted it in the Tested section as a main-only run.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MaxLikesCode on 2026-10-21T14:44:54Z.
RTX 4090 (Ada) on Windows, head
d930f7c08merged ontomain2c4b116da(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' -VwithANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1, 3 runs without and 3 withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(Vulkan-ValidationLayersvulkan-sdk-1.4.363.0, implicit layers disabled). The loader log shows the layer inserted, and no log haswas not found but was requested by env var VK_INSTANCE_LAYERS.sample_order_grid_reference_recipe_depth_locations_planningVUID-per validation runmain00337, 6 ×03320main+ #905603320main+ #9056 + #9057On
mainthe failures are the three messages in the description._grid_referenceskips 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 reportsmaxSampleLocationGridSize1x1 at every sample count and noshaderStorageImageMultisample. No run lost the device.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T14:46:24Z.
Thanks @MaxLikesCode. The RTX 4090 run matches the others:
mainfails the three tests with00337×18, this PR passes them (_grid_referenceskips 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)
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,
main1698d1ea6a. The patch was applied as the file-level diff ofd930f7c08onto that main.ctest -R "^agc_driver_sample_order"withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(the layer is not installed on this machine — noVUID-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_referenceand_recipe_depth_locationsall 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)._planningnot run.agc_driver_sample_orderpass,_recipe_depth_locationspass,_planningpass,_grid_referenceskips — "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_orderand_recipe_depth_locationsfail identically onmainand with this change — different failure modes from the depth-read issue:sample_orderfails at "the 2x depth format 130 through a depth pass exporting stencil" (stencil byte reads0x00, expected0x62), 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 lacksshaderStorageImageMultisample). Pre-existing capability failures, not moved by this PR._grid_referenceskips on both;_planningpasses.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).
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)
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-validationlayers1.3.275.0-1 from the Ubuntu archive (older than the SDK a driver ships with),VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation.main950388bfd; this PR's change (taken asgit diff upstream/main...refs/pr/9056) applied on top of it.Before (
main): across all 483 builtagc_driver_*_teststhe layer reportsVUID-VkWriteDescriptorSet-descriptorType-00337once, fromagc_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_orderrun 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).
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,00337comes only fromagc_driver_sample_order, and this PR clears it there. I added it to the Tested section.AI-assisted: yes (Claude Code)
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 testedchecklist 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 remaining03320specifically isolated to #9057. I will revisit after this template detail is corrected.Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T23:20:23Z.
Thanks @MarcZX10. I rewrote the
GPUs testedline 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 twomain-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_ordertests 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)
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
maina6dcea927with this PR merged, together with #8884, which changes only tessellation.mainagc_driver_sample_order2x scene with the standard locations: sample 0 of pixel (0, 0) holds depth 1075959298965006122069398516662272.000000)agc_driver_sample_order_recipe_depth_locationsagc_driver_sample_order_grid_referenceOn this driver,
grid_referencefails before it reads anything back, so it is a separate problem: the device is lost on submit.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_referencedevice 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)
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.
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_referenceskips 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)
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.maina6dcea927; the PR side ismain+d930f7c08+ #905778254bef6(and #8884, which only touches tessellation).main1002:13c0(32.0.21042.62),mainagc_driver_sample_orderthe slopes did not leave depth both at and below the clear valuesample 0 of pixel (0, 0) holds depth 1075959298965006122069398516662272.000000_recipe_depth_locationsthe clear between the recorded draw and its replay left depth other than the clear value_grid_referencevkQueueSubmit recorder: Vulkan result -4On the AMD iGPU
mainreads garbage depth through the invalid00337descriptor rather than zeros, so this PR fixes a second symptom of the same bug there.About the
_grid_referencedevice loss on AMD (@DavidSamir's 680M, Amoenus's gfx1036, and here): it goes away withAPS5_NO_GPL=1. With the pipeline libraries off, the test passes 3 of 3 on this iGPU with both PRs and ends withthe 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.
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 theAPS5_NO_GPL=1result moves the AMDgrid_referencedevice 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)
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
maina6dcea9279passes the 4sample_ordertests 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)
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 ontomain8c26eac3cd.On
mainthe three tests fail:agc_driver_sample_order,agc_driver_sample_order_grid_referenceandagc_driver_sample_order_recipe_depth_locations.With this PR:
agc_driver_sample_order: passedagc_driver_sample_order_recipe_depth_locations: passedagc_driver_sample_order_planning: passedagc_driver_sample_order_grid_reference: skipped, the same as on the RTX 3070 and 3080AI-assisted: yes (Claude Code)
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)
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 currentmain(093149c5).SampleOrder.cppitself has not changed on main since that base, but the branch still needs to be refreshed and the focusedsample_ordertests rerun on the resulting head. Product build jobs are skipped by the PR workflow. My local syntax-only compile could not complete because the generatedSampleOrderTestFillDepth_spv.his absent, so I did not independently run the test.