Repository navigation
Conversation
…D-414) A title holds the Xbox-ABI proxy, and create_window_presenter looked up the layer's device on the pointer it was given, so with the proxy it returned null and logged nothing. It now resolves the proxy first, as the helpers around it do, and says on stderr when it is handed a device that is neither. xbox_present_test creates a presenter from the proxy and presents a blank frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
AI-assisted (Gemini, Antigravity). |
Kam471
left a comment
There was a problem hiding this comment.
Tested 0ee1deff on Windows 11 (RTX 5070 Ti, driver 621.24).
- Built
xbox_present_testin a private RelWithDebInfo/Ninja build. xbox_present_test.exe-> exit 0: all cases pass, including the new "presenter from the Xbox device proxy: created, a blank frame presented: ok".ctest -R xbox_present-> 1/1 passed, 2.13 s.
The existing compose, resize, suspend/resume, tearing and LEGACY/no-tear cases still pass, so the proxy unwrap did not change the direct path. The helper now matches the other creator functions. No game files; no blocker.
|
Tested
|
|
Tested
AI-assisted (Claude Code). |
|
Tested
|
D3D-414. Claim: #3796 (comment) (the finding: #3796 (comment); passed to us by the coordinator after the other claimant released it).
The problem
rt::d3d12::create_window_presenter(runtime/shims/d3d12_vulkan_device.cpp) didDevice::from<Device>(device)on what it was given. The helpers around it (device_has_swapchain_colorspacedirectly above,vulkan_device_info,register_samplers,create_dxgi_factoryand others) first look behind the Xbox-ABI proxy withrt::d3d12_xs::device_proxy_real_device; this one did not, and the proxy'sQueryInterfacerefuses the layer's private tag. So with the device a title actually holds (the proxy thatD3D12XboxCreateDevicereturns), it returned null and logged nothing.Nobody had seen it because every test passes the device behind the proxy (
innerinxbox_present_test), andXboxPresentationis built nowhere outside tests yet. Whoever wiresPresentXfrom the proxy (D3D-366) would have got a null presenter, so no first frame, with no reason in the log.The change
Tests
Windows 11, MSVC 14.44 (VS 2022), the CMake and Ninja that Visual Studio ships (3.31.6), SDK 10.0.26100, RelWithDebInfo, NVIDIA RTX 4090 (driver 621.14). No game files.
xbox_present_test, new case:create_window_presenter(device.p, window)with the proxy (the test already holds it), thenenable_captureandpresent_blank(1)S_OK; the rest of the test unchangedmain(no unwrap)from_proxy && from_proxy->enable_capture(), and the new log line names the devicecteston this head (mainaa2988c + this commit, 154 tests)shader_library_corpus,bink_decode,bink_play_headless,fsr_dispatch,bvh_builder,bink_audio,vk_sync_validation,d3d12_first_light,d3d12_rgb9e5_rtv);gameinputis disabled (no SDL3)xbox_present_testprints two[rt] d3d12: present failed (VkResult -11)lines with and without this change; they come from an existing case onmain.Not tested: a device from another D3D12 implementation (the log line is read from the code, and the negative control shows it for the proxy case).
AI-assisted (Claude Code).
🤖 Generated with Claude Code