Black screen with HDR at 2560x1440 output (sound plays); fix attached #37
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/iceboerg00--larp-amd#37
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?
@Blaimno on GitHub · 2026-12-05 22:41 UTC · original
What happens
With
LARP_HDR=1andLARP_RESOLUTION=2560x1440, the screen stays black and only the sound plays. 4K output with HDR works, and 2560x1440 without HDR works.Cause
At an output size other than the title's own, the title hands
frame_endtwo planes. Under an HDR output mode it gives the interface first (as the note at the top ofplanes.rssays):Host::presenttakes the swap chain format from the first plane, so the back buffer becomesR8G8B8A8andhdr::apply_swap_chainnever turns HDR10 on. The picture is then blended over the interface by its alpha, which leaves the screen black. The log shows it:swap chain: HDR10 (...) active/presenting to a window width=3840 height=2160 format=24presenting to a window width=3840 height=2160 format=28Fix
With
LARP_HDR=1, when the first plane is not 10-bit but a later one is, draw the 10-bit picture first and lay the planes before it over it. The interface is converted to PQ by the existingflags & 2path inplanes.rs. Nothing changes without HDR, with one plane, or when the picture already comes first. There is no shader translation change, so no pipeline cache rebuild.crates/larp-gpu/src/hdr.rs: newten_bit()andpicture_first()at the end of the filecrates/larp-gpu/src/queue.rs: one call in the present path, right beforehost.present(&texture, &over, frame)Tested
RX 9070 XT, Adrenalin 26.11.2, Ryzen 9 5900X, HDR monitor at 2560x1440, on 2026.12.05-amd-4.2 (the diff also applies cleanly on current
main).LARP_RESOLUTION=2560x1440 LARP_HDR=1, FSR 0.667: black before, correct HDR picture with HUD and menus after. 4K + HDR and 1440p without HDR look the same as before.