AGC: shadow stripes after read-only D32S8 draws on NVIDIA #18936

Closed
opened 2026-11-12 14:15:09 +00:00 by lgqdaxia · 0 comments
lgqdaxia commented 2026-11-12 14:15:09 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by lgqdaxia on 2026-11-12T14:15:09Z.


What happens

A read-only color draw with a D32S8 attachment changes the results of later depth tests on NVIDIA 621.14. In PPSA05813, missing stencil depth-fail updates leave straight stripes across the character's face and neck.

Title, test or build step

PPSA05813, content version 01.000.007, opening car scene. The attached standalone Vulkan case reproduces the depth-test error using generated data.

AnyPS5 commit

Patch base: 389e0e17fc364c926a75ddc4ac69d8ebc7734fa4.
Recorded title-frame comparison: eb499dddc55ac99c1a18301e2263fd726169f447 with the compatibility change.

System

Windows 11 Pro (26300), NVIDIA GeForce RTX 3080 Laptop GPU, NVIDIA 621.14; MinGW GCC 15.2.0.

Steps to reproduce

  1. Extract the standalone reproduction and install requirements.txt.
  2. Run:
python repro.py --device "NVIDIA GeForce RTX 3080 Laptop GPU" --validation --output result.json

The program generates a 64×64 checkerboard of depths 0.25/0.75 and copies it into images A and B. A receives one color draw with depth/stencil tests and writes disabled. Both then receive the same precise occlusion query at depth 0.5 with GREATER_OR_EQUAL.

Exactly half the pixels satisfy the comparison: 2048 for both images.

Log

History draw Image A Untouched B Expected
Original 3200 2048 2048
Read-only GEQ at viewport depth 1 2048 2048 2048

Captured results. Stored D32/S8 and history color are byte-identical across the variants. Khronos validation errors: 0.

What was checked

The game-frame comparison restores 180,634 missing stencil pixels and clears the visible stripes. Both arms report VUID 0 and SYNC-HAZARD 0.

The proposed workaround is enabled with APS5_READONLY_DEPTH_BOUNDS_COMPARE=1; its default is off. It applies to eligible single-sample draws with native depth bounds inside [0,1].

Original shadow stripes on the left; workaround enabled on the right

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6351685838 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/18936). Originally posted by [lgqdaxia](https://github.com/lgqdaxia) on 2026-11-12T14:15:09Z. --- ### What happens A read-only color draw with a D32S8 attachment changes the results of later depth tests on NVIDIA 621.14. In PPSA05813, missing stencil depth-fail updates leave straight stripes across the character's face and neck. ### Title, test or build step PPSA05813, content version 01.000.007, opening car scene. The attached standalone Vulkan case reproduces the depth-test error using generated data. ### AnyPS5 commit Patch base: `389e0e17fc364c926a75ddc4ac69d8ebc7734fa4`. Recorded title-frame comparison: `eb499dddc55ac99c1a18301e2263fd726169f447` with the compatibility change. ### System Windows 11 Pro (26300), NVIDIA GeForce RTX 3080 Laptop GPU, NVIDIA 621.14; MinGW GCC 15.2.0. ### Steps to reproduce 1. Extract the [standalone reproduction](<https://github.com/user-attachments/files/34752071/standalone-repro.zip>) and install `requirements.txt`. 2. Run: ```powershell python repro.py --device "NVIDIA GeForce RTX 3080 Laptop GPU" --validation --output result.json ``` The program generates a 64×64 checkerboard of depths 0.25/0.75 and copies it into images A and B. A receives one color draw with depth/stencil tests and writes disabled. Both then receive the same precise occlusion query at depth 0.5 with `GREATER_OR_EQUAL`. Exactly half the pixels satisfy the comparison: **2048** for both images. ### Log | History draw | Image A | Untouched B | Expected | |---|---:|---:|---:| | Original | 3200 | 2048 | 2048 | | Read-only GEQ at viewport depth 1 | 2048 | 2048 | 2048 | [Captured results](<https://github.com/user-attachments/files/34752072/repro-result.json>). Stored D32/S8 and history color are byte-identical across the variants. Khronos validation errors: **0**. ### What was checked The game-frame comparison restores 180,634 missing stencil pixels and clears the visible stripes. Both arms report VUID `0` and SYNC-HAZARD `0`. The proposed workaround is enabled with `APS5_READONLY_DEPTH_BOUNDS_COMPARE=1`; its default is off. It applies to eligible single-sample draws with native depth bounds inside [0,1]. ![Original shadow stripes on the left; workaround enabled on the right](<https://github.com/user-attachments/assets/b1bee73c-14ca-4bbf-a0d3-3430fadc420f>)
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#18936
No description provided.