AGC: four native multisample depth tests fail on main since #6973 #15964

Closed
opened 2026-11-05 03:28:02 +00:00 by peacocksir · 0 comments
peacocksir commented 2026-11-05 03:28:02 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by peacocksir on 2026-11-05T03:28:02Z.


What happens

Four native multisample depth tests fail on main since #6973 merged:

  • agc_driver_native_depth_aliased_depth_depth_only
  • agc_driver_native_depth_aliased_depth_stencil
  • agc_driver_native_depth_aliased_depth_no_stencil
  • agc_driver_native_depth_publication

The other 13 native depth tests still pass (native_depth_bda_clear is skipped).

Title, test or build step

ctest -R '^agc_driver_native_depth_(aliased_depth_depth_only|aliased_depth_stencil|aliased_depth_no_stencil|publication)$' (binary agc_driver_native_multisample_depth_tests)

AnyPS5 commit

Fails at 0eba5db30d. First bad first-parent commit: 24ed2d9adf (merge of #6973). Its first parent c42e3a000c passes all four.

System

  • Ubuntu 24.04, lavapipe (llvmpipe, LLVM 20.1.2)
  • Windows 10, RTX 4060 (Vulkan SDK 1.4.363.1)

Both fail the same four tests the same way.

Steps to reproduce

  1. Build main (0eba5db30d).
  2. ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R '^agc_driver_native_depth_' --output-on-failure

Log

The three aliased_depth tests:

AGC graphics: multisample target refusal did not match native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host: AGC graphics: sampling multisampled color target 0x... (5x3, 4 samples, vk format 83) as a 5x3 texture of 4 samples and guest format 22 (vk 100) is not implemented

publication:

AGC driver: guest memory is not readable at 0x... (range 0x...+0x20000)

What was checked

  • git bisect start --first-parent 0eba5db30d 1c8c0efc8c, building only agc_driver_native_multisample_depth_tests at each step, settled on 24ed2d9adf. 41eee370ea (one merge after #6973) also fails; c42e3a000c (just before it) passes.
  • The four tests were added by #9742 (merged as aa186a77b6, before #6973), so #6973's own CI likely ran without them, and the two only fail once both are on main.
  • #6973 changes MultisampleTarget's constructor to take a new target's initial contents from guest memory (initialColorContents, GuestMemory::Read) when there is no DCC/CMASK fast clear, instead of initialDccClear. That fits both messages: the publication test's target range is not readable guest memory, and the aliased depth tests now get a colour target that refuses sampling.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6216157953 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/15964). Originally posted by [peacocksir](https://github.com/peacocksir) on 2026-11-05T03:28:02Z. --- ### What happens Four native multisample depth tests fail on `main` since #6973 merged: - `agc_driver_native_depth_aliased_depth_depth_only` - `agc_driver_native_depth_aliased_depth_stencil` - `agc_driver_native_depth_aliased_depth_no_stencil` - `agc_driver_native_depth_publication` The other 13 native depth tests still pass (`native_depth_bda_clear` is skipped). ### Title, test or build step `ctest -R '^agc_driver_native_depth_(aliased_depth_depth_only|aliased_depth_stencil|aliased_depth_no_stencil|publication)$'` (binary `agc_driver_native_multisample_depth_tests`) ### AnyPS5 commit Fails at 0eba5db30d. First bad first-parent commit: 24ed2d9adf (merge of #6973). Its first parent c42e3a000c passes all four. ### System - Ubuntu 24.04, lavapipe (llvmpipe, LLVM 20.1.2) - Windows 10, RTX 4060 (Vulkan SDK 1.4.363.1) Both fail the same four tests the same way. ### Steps to reproduce 1. Build `main` (0eba5db30d). 2. `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R '^agc_driver_native_depth_' --output-on-failure` ### Log The three `aliased_depth` tests: ``` AGC graphics: multisample target refusal did not match native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host: AGC graphics: sampling multisampled color target 0x... (5x3, 4 samples, vk format 83) as a 5x3 texture of 4 samples and guest format 22 (vk 100) is not implemented ``` `publication`: ``` AGC driver: guest memory is not readable at 0x... (range 0x...+0x20000) ``` ### What was checked - `git bisect start --first-parent 0eba5db30d 1c8c0efc8c`, building only `agc_driver_native_multisample_depth_tests` at each step, settled on 24ed2d9adf. 41eee370ea (one merge after #6973) also fails; c42e3a000c (just before it) passes. - The four tests were added by #9742 (merged as aa186a77b6, before #6973), so #6973's own CI likely ran without them, and the two only fail once both are on `main`. - #6973 changes `MultisampleTarget`'s constructor to take a new target's initial contents from guest memory (`initialColorContents`, `GuestMemory::Read`) when there is no DCC/CMASK fast clear, instead of `initialDccClear`. That fits both messages: the publication test's target range is not readable guest memory, and the aliased depth tests now get a colour target that refuses sampling.
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#15964
No description provided.