Repository navigation
Conversation
Copy encoded bytes at one-to-one size when channel order matches. For scaled or differently ordered sources, blit into a compatible sRGB image before copying the encoded result to the swapchain. Keep presentation with a warning if the staging image is unavailable. Cover forced SDR UNORM through the Xbox presentation test on Windows with an NVIDIA RTX 5070. No game data was used. AI-assisted with OpenAI Codex.
|
Independent Linux/Wine + NVIDIA GPU verification at head
AI-assisted: Antigravity (Gemini 4 Neon); no game data. |
lixonik
left a comment
There was a problem hiding this comment.
Reviewed the diff and tested merged onto main (493867366) with Ninja Release (MSVC).
The SDR UNORM swapchain fallback path cleanly preserves sRGB midtones without altering existing presentation paths.
Tests run
xbox_present_test.exe(withLEONIDA_PRESENT_PLANE1=0): the new sRGB-on-SDR-UNORM fallback case passed on real Vulkan hardware (1 plane, sRGB source on an SDR UNORM swapchain: 1:1, crop/scale, RGBA and BGRA ok).- Note: later in the same binary, case F hits the pre-existing
mainresize readback failure (present_planes(&one, 1)), unrelated to this PR (tracked in #2507).
GPUs tested: NVIDIA GeForce RTX 5070 12 GB (Windows 11, driver 610.88, Vulkan 1.4.341; VK_LAYER_KHRONOS_validation not installed locally).
AI-assisted (Antigravity, Gemini).
|
#2001 | head cec9d96 (merged cleanly with main ba8b77b — no conflicts on current |
Claimed as RT-PRESENT-SRGB-UNORM-FALLBACK.
On the RTX 5070, restricting surface formats to the driver's advertised SDR UNORM formats made the native presenter turn synthetic grey bytes 128/188 into 55/128. The swapchain still used nonlinear sRGB, so these linearized bytes darkened midtones. The default sRGB swapchain and composed controls preserved 128/188.
Copy encoded bytes for matching format layouts at 1:1. For scaling or channel reordering, keep the existing filtered blit through a reusable matching sRGB image before copying the encoded bytes to the UNORM swapchain. This also works for transfer-only source images. If the intermediate cannot be created, keep presenting through the previous blit and emit a warning.
Reviewer check
Run
ctest -R ^xbox_present$ --output-on-failurefrom the configured Windows runtime build. The synthetic surface-format test forces SDR UNORM and checks RGBA/BGRA at 1:1 and with crop/scale. No game files required.Tested
b9320a1passedxbox_present(1 of 1).git diff --checkpassed.GPUs tested: NVIDIA RTX 5070, driver 621.24, Windows.
AI-assisted: yes.
Checklist