AGC: agc_driver_sample_order_recipe_depth_locations fails on RADV Polaris: the recorded 2x depth draw is mostly at the standard locations, its recipe replay at the custom ones #9759

Open
opened 2026-10-22 13:07:03 +00:00 by ryanc2112 · 1 comment
ryanc2112 commented 2026-10-22 13:07:03 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ryanc2112 on 2026-10-22T13:07:03Z.


Observed

On main 4777caca3, agc_driver_sample_order_recipe_depth_locations fails 3/3, with and without the Khronos validation layer, at the first case (SampleOrder.cpp:1392, RecipeDepthLocations):

AGC graphics: pixel (0,0)'s locations in every pixel: the recipe's replay did not leave the depth the recorded draw left, as the device reads both back

The test's own location counts show the two draws do not use the same sample positions:

the recorded draw: of 3005 sloped depth samples, 1268 hold the slope's depth at the guest's sample locations (628 of 1499 on even rows, 640 of 1506 on odd rows) and 1737 at the standard 2x locations
the recipe's replay as the first draw of a pass: of 3005 sloped depth samples, 2749 hold the slope's depth at the guest's sample locations (1371 of 1499 on even rows, 1378 of 1506 on odd rows) and 256 at the standard 2x locations
the device reads depth drawn at custom sample locations back at other locations, even after a transition that names them
64x32: the recipe's replay differs from the recorded draw in 1481 of 4096 samples

First mismatch: sample 0 of pixel (51, 0) is 0x3d9ae9c0, the reference's is 0x3da61296.

Each run also logs 3× VUID-VkWriteDescriptorSet-descriptorType-00337, all for one image:

vkUpdateDescriptorSets(): pDescriptorWrites[0].pImageInfo[0].imageView references an image which was not created with VK_IMAGE_USAGE_SAMPLED_BIT, but descriptorType is VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE.
VkImage ... was created with VK_IMAGE_USAGE_2_TRANSFER_SRC_BIT_KHR|VK_IMAGE_USAGE_2_TRANSFER_DST_BIT_KHR|VK_IMAGE_USAGE_2_DEPTH_STENCIL_ATTACHMENT_BIT_KHR.

I have not established whether this read-back binding is related to the location mismatch.

Environment

SteamOS 3.8.28 (Arch distrobox), AMD Radeon RX 570 (RADV POLARIS10, 1002:67df), Mesa 26.2.5, GCC 16.2.1, Release. ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (loader confirms the layer is inserted). The device reports VK_EXT_sample_locations, variableSampleLocations = true, standardSampleLocations = true and 2x2 sample location grids at 2, 4 and 8 samples, so the test's skip conditions do not apply.

Reproduce

ctest --test-dir build -R '^agc_driver_sample_order_recipe_depth_locations$' -V

Not checked on other GPUs. Found during a full agc_* run on this device; it fails the same way on main and with #8898 and #8998 applied.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5979931957 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9759). Originally posted by [ryanc2112](https://github.com/ryanc2112) on 2026-10-22T13:07:03Z. --- ### Observed On `main` `4777caca3`, `agc_driver_sample_order_recipe_depth_locations` fails 3/3, with and without the Khronos validation layer, at the first case (`SampleOrder.cpp:1392`, `RecipeDepthLocations`): ``` AGC graphics: pixel (0,0)'s locations in every pixel: the recipe's replay did not leave the depth the recorded draw left, as the device reads both back ``` The test's own location counts show the two draws do not use the same sample positions: ``` the recorded draw: of 3005 sloped depth samples, 1268 hold the slope's depth at the guest's sample locations (628 of 1499 on even rows, 640 of 1506 on odd rows) and 1737 at the standard 2x locations the recipe's replay as the first draw of a pass: of 3005 sloped depth samples, 2749 hold the slope's depth at the guest's sample locations (1371 of 1499 on even rows, 1378 of 1506 on odd rows) and 256 at the standard 2x locations the device reads depth drawn at custom sample locations back at other locations, even after a transition that names them 64x32: the recipe's replay differs from the recorded draw in 1481 of 4096 samples ``` First mismatch: sample 0 of pixel (51, 0) is `0x3d9ae9c0`, the reference's is `0x3da61296`. Each run also logs 3× `VUID-VkWriteDescriptorSet-descriptorType-00337`, all for one image: ``` vkUpdateDescriptorSets(): pDescriptorWrites[0].pImageInfo[0].imageView references an image which was not created with VK_IMAGE_USAGE_SAMPLED_BIT, but descriptorType is VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE. VkImage ... was created with VK_IMAGE_USAGE_2_TRANSFER_SRC_BIT_KHR|VK_IMAGE_USAGE_2_TRANSFER_DST_BIT_KHR|VK_IMAGE_USAGE_2_DEPTH_STENCIL_ATTACHMENT_BIT_KHR. ``` I have not established whether this read-back binding is related to the location mismatch. ### Environment SteamOS 3.8.28 (Arch distrobox), AMD Radeon RX 570 (RADV POLARIS10, `1002:67df`), Mesa 26.2.5, GCC 16.2.1, Release. `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (loader confirms the layer is inserted). The device reports `VK_EXT_sample_locations`, `variableSampleLocations = true`, `standardSampleLocations = true` and 2x2 sample location grids at 2, 4 and 8 samples, so the test's skip conditions do not apply. ### Reproduce ``` ctest --test-dir build -R '^agc_driver_sample_order_recipe_depth_locations$' -V ``` Not checked on other GPUs. Found during a full `agc_*` run on this device; it fails the same way on `main` and with #8898 and #8998 applied. AI-assisted: yes.
ryanc2112 commented 2026-10-22 15:33:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ryanc2112 on 2026-10-22T15:33:03Z.


Passes on a Steam Deck (RADV VANGOGH, RDNA 2, Mesa 26.2.5) at main 4777caca3, so this looks specific to Polaris (GCN 4).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6344649909 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9759#issuecomment-6344649909). Originally posted by [ryanc2112](https://github.com/ryanc2112) on 2026-10-22T15:33:03Z. --- Passes on a Steam Deck (RADV VANGOGH, RDNA 2, Mesa 26.2.5) at `main` `4777caca3`, so this looks specific to Polaris (GCN 4).
Sign in to join this conversation.
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#9759
No description provided.