d3d12: compose a present with several planes #368
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/368"
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 brcly/TuxBox. Originally posted by Jerkin42 on 2026-11-28T04:26:04Z.
Summary
PresentX with more than one plane returned
E_NOTIMPL. ProjectScarlett in Series S mode presents its scaled 3D picture and a full-size interface as two planes, so on upstream the window stays blank white there (PresentX failed planes=2).present::composeadds a small compositor. It draws each plane into the back buffer, the first opaque and the rest alpha-blended over it, using each plane's source rectangle and destination (bytes 24 and 32 of the 72-byte retail plane, as the single-plane path already reads them). The progress and performance panels are copied on top as before. A single plane covering its whole texture and the whole screen still takes the existing copy path unchanged. At most four planes are accepted. A later plane without a texture is skipped, and the swap chain takes the size of the widest plane.Tested
mainhere, see below)verify --only present, 8 of 8 passed includingguest-present-planes(RTX 4070, driver 620.73.04, GE-Proton11-14).New present check
guest-present-planes(xbox-frame-planes.exe, built fromframe_guest.cppwithGUEST_FRAME_PLANES). It presents each of the two frames as two planes. The first plane is the frame. The second is a full-size texture cleared transparent, with an opaque green square over the inset. The screen samples must show the frame's color at the corners and the green square in the middle. Without this change the present returnsE_NOTIMPLand the check fails.In ProjectScarlett (Series S profile), the title screen and the game showed up in the window with the interface over the 3D picture.
GPU, driver and backend: AMD RX 9060 XT, Mesa RADV 26.1.8, Linux 7.3.1; checks on Proton Experimental (private rootful Xwayland), the game on GE-Proton 11-14
Commands run and their results:
Rebased onto
main5ff179c(the splash now paints into the title's window and stops before the swap chain exists, so the compose path no longer reveals it).invalid-routealso fails on plainmainhere: it checksroute-game.exe's exit status and has failed on this machine before.The
meshregression control, which failed in an earlier run of this branch, passed this time. It is intermittent on RADV here (the amplified dispatch's word 76 sometimes reads 0) and fails the same way on branches that do not touch D3D12.Checks
No evidence JSON changes.
🤖 Generated with Claude Code
Imported from brcly/TuxBox. Originally posted by Jerkin42 on 2026-11-28T04:26:17Z.
I only have an AMD card (RX 9060 XT, RADV), so the NVIDIA half of the checks is still open. If someone with an NVIDIA GPU can run
python tuxbox.py checkon this branch and post the summary, that would cover the vendor row. Thank you!Imported from brcly/TuxBox. Originally posted by NathansDomainSolutions on 2026-11-28T08:00:41Z.
NVIDIA run for this:
python tuxbox.py verify --only present, all 8 passed, includingguest-present-planes.10de:2786), driver 620.73.04, GE-Proton11-14, Linux 7.3.6, Hyprland (private rootful Xwayland for the window checks)main(cba382c) plus this PR (a81bdd6) plus #372, #373, #375, #376, #378 and #380. None of the others touchpresent/.I'll report back if the ProjectScarlett player-select screen, which presents black here at the default profile, changes with it.
(Tested with Claude Code assisting.)
Imported from brcly/TuxBox. Originally posted by Jerkin42 on 2026-11-28T08:02:34Z.
Thank you, @NathansDomainSolutions! That covers the NVIDIA row; I've added your result to the description.
If the player-select screen changes with it, I'd be glad to hear either way. On the RX 9060 XT the Series S profile presents its two planes with this PR, but I haven't checked that screen at the default profile.