AGC: Cohtml UI in Heretic + Hexen (PPSA26525) and DOOM + DOOM II (PPSA21444) shows black squares and clipped text: a fill of the stencil plane never reaches the host depth image #7130
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 JosepBove on 2026-10-17T12:50:17Z.
Heretic + Hexen (PPSA26525 01.003.000, #5912) and DOOM + DOOM II (PPSA21444 03.000.000, #5921) draw their menus with Cohtml's Renoir backend. On
mainc9e6c45deevery dialog shows black 64 px squares and text cut off mid-word: in Heretic's "add players" dialog, "player settings" is drawn as "pla", "continue..." as "c", and "Waiting for player..." as "ing for player...", with two black blocks below the dialog. It reproduces unchanged sincemain84b01f9cd(the captures and breakpoints below were taken there), is deterministic, and is unchanged byAPS5_NO_GPL,APS5_NO_HOST_IMPORT,APS5_NO_TEXTURE_CACHE,APS5_NO_TEXTURE_HASH,APS5_SYNC_TEXTURE_UPLOAD,APS5_NO_WRITE_WATCHandAPS5_NO_RESIDENT_TARGETS.How the UI is drawn (RenderDoc 1.46 captures of the dialog, replayed draw by draw): Renoir keeps the UI in a persistent 1920x1080
R8G8B8A8layer with aD32_SFLOAT_S8_UINTtarget (both loaded, never cleared by a render pass). Each frame a depth-only pass writes stencilReplaceref 2 inside the dirty rectangles, the UI draws test stencilEqual2, and a full composition frame draws withAlways/Keepref 1. Replaying a composition frame renders correctly; replaying the next frame reproduces the corruption at its fourth draw, because the stencil already holds an L-shaped region of 2 left by earlier dirty rectangles. No draw ever writes the stencil back to 1.What resets it on the console: before each frame the title fills the whole stencil plane with 1. Breakpoints on
DepthSurfaceViewandNoteDepthMetadataFillshow, every frame:0x280000isDepthSliceBytes({1920, 1080}, 1), the stencil plane of that target.NoteDepthMetadataFillonly acts on a fill that coversDB_HTILE_DATA_BASE(HtileFillCovers), so this fill updates guest memory and nothing else: the residentDepthSurfaceimage keeps the stencil values of every earlier frame. Regions still at 2 from earlier dirty rectangles let laterEqual2 draws paint where the title did not mean to (the black squares, the UI's background quads), and regions that never returned to 1 block the text draws of the next composition frame (the clipped words).The same fill mechanism also writes depth planes (
0x870000bytes =DepthSliceBytes({1920, 1080}, 4)with0xff000000) and HTILE (0x30000bytes with0xfffffff0) for other targets in these titles; those are not part of this report.Setup: Windows 11 Home 26200, AMD Ryzen 9 9950X3D, NVIDIA RTX 5090 (616.92), WinLibs GCC 15.2.0 r7, Release. Both titles relinked with
--windows --registry,ANYPS5_GPU='RTX 5090'.AI-assisted (Claude Code).