AGC: the clear-key hand-over from #7427 puts a white glare over Ghost of Yōtei's open world #9860
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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=1the same frames are clean. @parl0v, I think this is yours.To be upfront: this is on our tree, not plain
main, because plainmaincan't reach Yōtei's open world yet. The tree ismain557682ca44plus our local driver work (bindless image tables, draw preparer, dispatch overlap and the like). Our local changes do touchStorageTexture::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 onmainsince 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):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:
APS5_NO_WRITE_ONLY_PASSES=1 APS5_NO_CLEAR_HAND_OVER=1APS5_NO_WRITE_ONLY_PASSES=1APS5_NO_CLEAR_HAND_OVER=1My 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
#7427came in withmain557682ca44(merge7e95bde794).git log -G"HandOver|handOver"overTexture.cppfrom there tomaind6e7ab42dffinds nothing new.