Adapt unsupported null Texture2D UAV and RTV formats on desktop #1187
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1194"
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 R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T03:25:54Z.
Refs #1137. Depends on the experimental wrapper in #1135. The review base isolates this change until the upstream PR lands.
Slots 19 and 20 query adapter format support for two null Texture2D descriptions. When the original usage is unsupported and RGBA8_UNORM supports it, forward an adapted null descriptor to the desktop device. Keep the guest descriptor for recording. The format fallback excludes resource-backed views, UAV counters, other dimensions and other formats.
Local Windows validation
Commit 2ad099c, MSVC Release, Windows build 26200, debug layer off. Built the shim and source-built consumer with
cmake --build out/bin --target startup_null_views_check. Ranctest --test-dir out/bin --no-tests=error -R "^startup_null_views_" -V.Two passes, zero skips. The fixture creates two descriptor heaps through D3D12XboxCreateDevice and invokes both wrapper slots. Negative controls cover backed views, a non-null UAV counter, array dimensions and another UAV format. The fixture exercises descriptor creation only.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T03:40:57Z.
Review: COMMENTED
Technical review on Linux (Windows build/tests were not executed locally).
Checks run (Linux, commit
2ad099c3)/root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py: passed (16Markdown files,253links)./root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: passed (967files)./root/.local/share/x2w-rev-venv/bin/python -B tests/gpu_report_format_check.py:Ran 10 tests — OK./root/.local/share/x2w-rev-venv/bin/python -B tests/hardware_reports_check.py:Ran 11 tests — OK.Findings
No issues found in the diff:
null_texture_view.handd3d12_xs_device.cpp(view_slotslots 19 and 20) keepnull_uav/null_rtvalive across the forwardedmethod_of(...)call, guard the guest descriptor pointer withx2w_local::readable, and restrict adaptation to null Texture2D descriptors (a == 0,b == 0for slot 19) forB5G5R5A1_UNORMUAV /B4G4R4A4_UNORMRTV whenR8G8B8A8_UNORMsupports the requested usage.desktop_formatdoes not remap either format, and guest descriptor recording innote_viewhappens before adaptation.tests/startup_null_views_check.cppcovers positive and negative controls (non-null resource/counter, non-Texture2D dimension, other formats) on hardware and WARP, anddocs/startup-runtime.mddocuments thectestcommand.Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T03:30:36Z.
Test report for
2ad099c3: Windows 11 Pro 26300, MSVC 14.50 (VS 18 Build Tools), Ninja, Release, debug layer off.cmake --build out/build/release: built with no errors or failures.ctest --no-tests=error -R startup: 7/7 passed, 0 failed, no skips.Not tested yet: a run with the console executable. Runs on this machine currently run out of system commit before the menus (#1199). I will add the executable result here once that is resolved.
AI-assisted (Claude Code).