AGC: the clear-key hand-over from #7427 puts a white glare over Ghost of Yōtei's open world #9860

Closed
opened 2026-10-22 19:18:19 +00:00 by Celegans12 · 0 comments
Celegans12 commented 2026-10-22 19:18:19 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-22T19:18:19Z.


I bisected a rendering regression in Ghost of Yōtei (PPSA26344 v1.008) to the clear-key hand-over from #7427. With it on, the upper half of the open world is washed out by a white glare with green and coloured light sprites, and the water gets speckled. With APS5_NO_CLEAR_HAND_OVER=1 the same frames are clean. @parl0v, I think this is yours.

To be upfront: this is on our tree, not plain main, because plain main can't reach Yōtei's open world yet. The tree is main 557682ca44 plus our local driver work (bindless image tables, draw preparer, dispatch overlap and the like). Our local changes do touch StorageTexture::Refresh: its unchanged check compares a hashed snapshot instead of the bytes. They don't touch the hand-over itself, though, and the hand-over code hasn't changed on main since then. I can't rule out that our tree is part of it.

Frame 88 from the same save, camera and build. On the left the hand-over is off (APS5_NO_CLEAR_HAND_OVER=1), on the right it's on (the default):

clear hand-over off (left) vs on (right), frame 88

How I narrowed it down: a cold run of the merged build showed the glare from frame 81 to 90, where earlier builds show a clear blue sky at the same camera. I then did four warm runs from the same save and checked frames 85-90 by eye:

run switches frames 85-90
base defaults glare, sprites, noise on the water
b1 APS5_NO_WRITE_ONLY_PASSES=1 APS5_NO_CLEAR_HAND_OVER=1 clean
b2 APS5_NO_WRITE_ONLY_PASSES=1 glare
b3 APS5_NO_CLEAR_HAND_OVER=1 clean

My guess is that one of the handed-over results is read before the receiving image's clear covers it: a target that is cleared over only part of the memory, or a read of the old image's bytes through another view. That's only a guess, though; I haven't traced which image it is. For now we run with the hand-over off.

I'm happy to test a fix or a diagnostic build in Yōtei. The same scene, warm, takes about 6 minutes to reach on our side.

Details
  • Runs: m21-cold (cold) and w21-base / w21-b1 / w21-b2 / w21-b3 (warm), all from the same save in the Nupur river village. Each was stopped 10 s after frame 90. No device loss and no draw skips; the pipeline cache was warm.
  • GPU: NVIDIA GeForce RTX 3080 Laptop, driver 610.62, Windows 11, MinGW-w64 GCC 15.2.0 Release build.
  • #7427 came in with main 557682ca44 (merge 7e95bde794). git log -G"HandOver|handOver" over Texture.cpp from there to main d6e7ab42df finds nothing new.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5985922729 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9860). Originally posted by [Celegans12](https://github.com/Celegans12) on 2026-10-22T19:18:19Z. --- I bisected a rendering regression in Ghost of Yōtei (PPSA26344 v1.008) to the clear-key hand-over from #7427. With it on, the upper half of the open world is washed out by a white glare with green and coloured light sprites, and the water gets speckled. With `APS5_NO_CLEAR_HAND_OVER=1` the same frames are clean. @parl0v, I think this is yours. To be upfront: this is on our tree, not plain `main`, because plain `main` can't reach Yōtei's open world yet. The tree is `main` 557682ca44 plus our local driver work (bindless image tables, draw preparer, dispatch overlap and the like). Our local changes do touch `StorageTexture::Refresh`: its unchanged check compares a hashed snapshot instead of the bytes. They don't touch the hand-over itself, though, and the hand-over code hasn't changed on `main` since then. I can't rule out that our tree is part of it. Frame 88 from the same save, camera and build. On the left the hand-over is off (`APS5_NO_CLEAR_HAND_OVER=1`), on the right it's on (the default): ![clear hand-over off (left) vs on (right), frame 88](https://raw.githubusercontent.com/Celegans12/AnyPS5/bringup-media/yotei/2026-10-22/clear-hand-over-off-on-088.png) How I narrowed it down: a cold run of the merged build showed the glare from frame 81 to 90, where earlier builds show a clear blue sky at the same camera. I then did four warm runs from the same save and checked frames 85-90 by eye: | run | switches | frames 85-90 | |---|---|---| | base | defaults | glare, sprites, noise on the water | | b1 | `APS5_NO_WRITE_ONLY_PASSES=1 APS5_NO_CLEAR_HAND_OVER=1` | clean | | b2 | `APS5_NO_WRITE_ONLY_PASSES=1` | glare | | b3 | `APS5_NO_CLEAR_HAND_OVER=1` | clean | My guess is that one of the handed-over results is read before the receiving image's clear covers it: a target that is cleared over only part of the memory, or a read of the old image's bytes through another view. That's only a guess, though; I haven't traced which image it is. For now we run with the hand-over off. I'm happy to test a fix or a diagnostic build in Yōtei. The same scene, warm, takes about 6 minutes to reach on our side. <details><summary>Details</summary> - Runs: m21-cold (cold) and w21-base / w21-b1 / w21-b2 / w21-b3 (warm), all from the same save in the Nupur river village. Each was stopped 10 s after frame 90. No device loss and no draw skips; the pipeline cache was warm. - GPU: NVIDIA GeForce RTX 3080 Laptop, driver 610.62, Windows 11, MinGW-w64 GCC 15.2.0 Release build. - `#7427` came in with `main` 557682ca44 (merge 7e95bde794). `git log -G"HandOver|handOver"` over `Texture.cpp` from there to `main` d6e7ab42df finds nothing new. </details>
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#9860
No description provided.