agc_driver_sample_order_grid_reference: exact 2x sample-order path leaves odd rows at pixel (0,0)'s locations on RX 6700 XT (Windows) #18229

Closed
opened 2026-11-10 22:37:16 +00:00 by JJenkx · 0 comments
JJenkx commented 2026-11-10 22:37:16 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-11-10T22:37:16Z.


What happens

agc_driver_sample_order_grid_reference fails on an AMD RX 6700 XT under Windows. On the emulated exact path (2 samples, sampleLocationGridSampleCounts cleared), the odd rows' samples are not at the guest's sample locations: 0 of 2048 sloped depth samples match.

Title, test or build step

ctest agc_driver_sample_order_grid_reference (core/libs/prx/libSceAgcDriver/tests/execution/SampleOrder.cpp)

AnyPS5 commit

main 1d13b559c2, no other pull requests merged.

System

Windows 11 Enterprise 22621, Ryzen 9 5950X, AMD Radeon RX 6700 XT (AMD driver 26.10.1, Vulkan 1.4), MinGW-w64 GCC 15.2.0 UCRT, Release build.

Steps to reproduce

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R '^agc_driver_sample_order_grid_reference$' --output-on-failure

It fails about 0.2 s in.

Log

[gpu] largest sample location grids (vkGetPhysicalDeviceMultisamplePropertiesEXT): 1 samples 2x2, 2 samples 2x2, 4 samples 2x2, 8 samples 2x2; maxSampleLocationGridSize for every count 2x2
the device's largest sample location grid at 2 samples is 2x2 pixels (vkGetPhysicalDeviceMultisamplePropertiesEXT)
the composite of uniform renders: of 3005 sloped depth samples, 3005 hold the slope's depth at the guest's sample locations (1499 of 1499 on even rows, 1506 of 1506 on odd rows) and 0 at the standard 2x locations
the exact path: of 3547 sloped depth samples, 1499 hold the slope's depth at the guest's sample locations (1499 of 1499 on even rows, 0 of 2048 on odd rows) and 0 at the standard 2x locations
pixel (0,0)'s locations alone: of 3005 sloped depth samples, 1499 hold the slope's depth at the guest's sample locations (1499 of 1499 on even rows, 0 of 1506 on odd rows) and 0 at the standard 2x locations
the device's 2x2 grid: of 3005 sloped depth samples, 3005 hold the slope's depth at the guest's sample locations (1499 of 1499 on even rows, 1506 of 1506 on odd rows) and 0 at the standard 2x locations
2x checkerboard at 64x32: the device's 2x2 grid differs from the composite of four uniform renders in 0 samples and from the exact path in 2427 samples
color with the samples put in the guest's order: sample 1 of pixel (33, 1) is 0x3e870000 0x3ef40000 0x3f800000 0x3f800000, the reference's is 0x3bb1c000 0x3f7b6000 0x3f800000 0x3f800000
color with the samples put in the guest's order: sample 0 of pixel (34, 1) is 0x3e890000 0x3ef40000 0x00000000 0x00000000, the reference's is 0x3c6c4000 0x3f7b0000 0x00000000 0x00000000
color with the samples put in the guest's order: sample 0 of pixel (31, 3) is 0x3e7a0000 0x3ee40000 0x00000000 0x00000000, the reference's is 0x39228000 0x3f69e000 0x00000000 0x00000000
color with the samples put in the guest's order: sample 1 of pixel (31, 3) is 0x3e7e0000 0x3ee40000 0x3f800000 0x3f800000, the reference's is 0x3c15e000 0x3f698000 0x3f800000 0x3f800000

What was checked

  • Repeatable: it fails the same way in 4 of 4 runs: one in a full GPU sweep of main (1554 passed, 18 skipped, this 1 failed out of 1573 agc_* tests), then 3 of 3 alone through the shared Windows GPU queue. The counts are identical every run.
  • The device's own 2x2 grid is correct: it matches the composite of four uniform renders in every sample. Only the exact path (HostSampleLocationsFor with no grid, SampleOrderRefusal empty) is wrong.
    • On the exact path, the even rows are right and every odd-row sample sits where pixel (0,0)'s locations would put it. That is the same count as the "pixel (0,0)'s locations alone" line, so the per-pixel reordering of the odd rows appears not to take effect on this device.
  • Not tried: I have no other GPU here, so I can't tell whether this is specific to AMD or to Windows.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6317318117 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/18229). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-11-10T22:37:16Z. --- ### What happens `agc_driver_sample_order_grid_reference` fails on an AMD RX 6700 XT under Windows. On the emulated exact path (2 samples, `sampleLocationGridSampleCounts` cleared), the odd rows' samples are not at the guest's sample locations: 0 of 2048 sloped depth samples match. ### Title, test or build step ctest `agc_driver_sample_order_grid_reference` (`core/libs/prx/libSceAgcDriver/tests/execution/SampleOrder.cpp`) ### AnyPS5 commit `main` `1d13b559c2`, no other pull requests merged. ### System Windows 11 Enterprise 22621, Ryzen 9 5950X, AMD Radeon RX 6700 XT (AMD driver 26.10.1, Vulkan 1.4), MinGW-w64 GCC 15.2.0 UCRT, Release build. ### Steps to reproduce ``` ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R '^agc_driver_sample_order_grid_reference$' --output-on-failure ``` It fails about 0.2 s in. ### Log ``` [gpu] largest sample location grids (vkGetPhysicalDeviceMultisamplePropertiesEXT): 1 samples 2x2, 2 samples 2x2, 4 samples 2x2, 8 samples 2x2; maxSampleLocationGridSize for every count 2x2 the device's largest sample location grid at 2 samples is 2x2 pixels (vkGetPhysicalDeviceMultisamplePropertiesEXT) the composite of uniform renders: of 3005 sloped depth samples, 3005 hold the slope's depth at the guest's sample locations (1499 of 1499 on even rows, 1506 of 1506 on odd rows) and 0 at the standard 2x locations the exact path: of 3547 sloped depth samples, 1499 hold the slope's depth at the guest's sample locations (1499 of 1499 on even rows, 0 of 2048 on odd rows) and 0 at the standard 2x locations pixel (0,0)'s locations alone: of 3005 sloped depth samples, 1499 hold the slope's depth at the guest's sample locations (1499 of 1499 on even rows, 0 of 1506 on odd rows) and 0 at the standard 2x locations the device's 2x2 grid: of 3005 sloped depth samples, 3005 hold the slope's depth at the guest's sample locations (1499 of 1499 on even rows, 1506 of 1506 on odd rows) and 0 at the standard 2x locations 2x checkerboard at 64x32: the device's 2x2 grid differs from the composite of four uniform renders in 0 samples and from the exact path in 2427 samples color with the samples put in the guest's order: sample 1 of pixel (33, 1) is 0x3e870000 0x3ef40000 0x3f800000 0x3f800000, the reference's is 0x3bb1c000 0x3f7b6000 0x3f800000 0x3f800000 color with the samples put in the guest's order: sample 0 of pixel (34, 1) is 0x3e890000 0x3ef40000 0x00000000 0x00000000, the reference's is 0x3c6c4000 0x3f7b0000 0x00000000 0x00000000 color with the samples put in the guest's order: sample 0 of pixel (31, 3) is 0x3e7a0000 0x3ee40000 0x00000000 0x00000000, the reference's is 0x39228000 0x3f69e000 0x00000000 0x00000000 color with the samples put in the guest's order: sample 1 of pixel (31, 3) is 0x3e7e0000 0x3ee40000 0x3f800000 0x3f800000, the reference's is 0x3c15e000 0x3f698000 0x3f800000 0x3f800000 ``` ### What was checked - **Repeatable:** it fails the same way in 4 of 4 runs: one in a full GPU sweep of `main` (1554 passed, 18 skipped, this 1 failed out of 1573 `agc_*` tests), then 3 of 3 alone through the shared Windows GPU queue. The counts are identical every run. - **The device's own 2x2 grid is correct:** it matches the composite of four uniform renders in every sample. Only the exact path (`HostSampleLocationsFor` with no grid, `SampleOrderRefusal` empty) is wrong. - On the exact path, the even rows are right and every odd-row sample sits where pixel (0,0)'s locations would put it. That is the same count as the "pixel (0,0)'s locations alone" line, so the per-pixel reordering of the odd rows appears not to take effect on this device. - **Not tried:** I have no other GPU here, so I can't tell whether this is specific to AMD or to Windows. AI-assisted: yes.
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#18229
No description provided.