AGC: agc_driver_sample_order tests read a depth target as all zeros on an NVIDIA Windows device and pass on Intel #9313
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 kanza-cm on 2026-10-21T18:08:22Z.
The three sample-order execution tests fail on Windows with an NVIDIA GPU and pass with the integrated Intel GPU on the same machine. Their depth readback comes back as zeros.
Environment. Windows 11, NVIDIA GeForce RTX 3070 Laptop GPU (driver 32.0.16.1078) and Intel UHD Graphics (driver 30.0.101.2079), WinLibs GCC 15.2.0, Release,
-DANYPS5_RELINKER_ONLY=OFF -DBUILD_TESTING=ON,maind34da5d69.Observed.
ctest -R "^agc_driver_sample_order":The rest of the suite passes: 1858 of 1861 tests.
Diagnostic.
CheckScenecounts the samples that hold the clear value. Instrumented locally (not committed), the 2x scene reports:Every sample reads depth 0.0 instead of either the clear value (0.9375) or a slope value, so the depth target the readback sees is untouched, not merely different in rasterization. The colour checks in the same scene pass (
zandwhold their own sample index), so the colour side and the sample locations reach the host correctly.A/B on the same binary. With
ANYPS5_GPUunset the device is the RTX 3070 and the test fails; withANYPS5_GPU="Intel(R) UHD Graphics"it passes, and the device log confirmsSelected GPU name=Intel(R) UHD Graphics vendor=0x8086 device=0x9a60.Why CI does not see it. The Windows job configures with
-DANYPS5_AGC_EXECUTION_TESTS=F16ToF32Unpack;F64FmaSubnormals;RegistrationPrepareShutdown, sotests/execution/SampleOrder.cppis replaced byExecutionTestNotBuilt.cppand never compiled; the Linux job runs Vulkan tests on lavapipe. A Windows NVIDIA (or Intel) host is therefore the only place these run.Hypothesis.
RenderCheckerboardfirst draws a full-screenClearDepthquad into a depth-only pass (depthOnly.depthWrite = true,locations = nullopt), then the slopes withVK_COMPARE_OP_LESS, and reads the surface throughDepthSurfaceOrderTarget. On NVIDIA the write never reaches the surface that view resolves; whether the pass stores to a transient image, or the host copy-back for a guest-backed depth surface is skipped, is not established.Not known: whether a title reaches this path; no title was run, and no AMD or macOS host was tried.
Imported from boykopovar/AnyPS5. Originally posted by MaxLikesCode on 2026-10-21T19:06:06Z.
This is the failure #9056 fixes. The tests bind the multisampled depth surface's own view as a sampled image, but that surface is created without
VK_IMAGE_USAGE_SAMPLED_BIT(it is sampled through a shadow image since #7318). The descriptor is invalid (VUID-VkWriteDescriptorSet-descriptorType-00337under the validation layer), so what the read returns is up to the driver: zeros on your 3070, the drawn depth on the UHD. #9056 copies the depth aspect into a test image with sampled usage and reads the copy; only the tests change.On an RTX 4090 (Windows 11, driver 617.42) the three tests fail on
mainwith the messages above and pass with #9056 (report). The other runs on #9056 show the same on an RTX 3080, an RTX 4070 Ti and a Radeon 680M. If #9056 fixes it on your 3070 too, this issue closes with it.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-21T19:24:38Z.
Confirmed on an RTX 3070 (Windows 11, driver 617.42,
main1698d1ea6a): the same three tests fail onmainwith the exact messages quoted here, and pass with #9056 —agc_driver_sample_orderand_recipe_depth_locationspass,_grid_referenceskips (this device does not keep depth drawn at custom sample locations, same as the RTX 3080 datapoint),_planningpasses. Details posted on #9056.One note on the Intel side: on an older Intel UHD 630 (
0x9bc5, only 1x1 sample-location grids, noshaderStorageImageMultisample)agc_driver_sample_orderand_recipe_depth_locationsfail identically with and without the patch — pre-existing capability failures with different signatures (a stencil-byte mismatch and the custom-location readback disagreement), not the depth-view bug this issue tracks.AI-assisted: yes (Devin).
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-21T19:37:45Z.
#9056 fixes this. The three tests bind the depth surface's own view as a sampled image, but when the surface uses #7318's sampled shadow that image has no
SAMPLEDusage, and the NVIDIA driver reads back other depth (zeros here). #9056 reads through a sampled copy instead. @akkadbakkad89 confirmed it on an RTX 3070 on Windows (comment), as did runs on an RTX 3080, 4090 and 4070 Ti.AI-assisted: yes (Claude Code)