startup_stubs: stand in for B5G6R5 and array packed render targets #1452
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1459"
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 tedin7 on 2026-11-24T11:53:23Z.
AI-assisted; commands listed were executed locally.
Change
The 16-bit packed render-target stand-in (
src/startup_stubs/packed_target_format.h) now also covers B5G6R5_UNORM and 2D arrays of 2 to 2048 slices (a cube map is an array of six). When the adapter lacks render-target (or typed UAV) support for the packed format and has it for R8G8B8A8_UNORM, the texture is created as R8G8B8A8_UNORM; only the format changes, so slice count, mip count and view dimensions are kept. Zero slices, more than 2048, 3D, buffers and multisampled textures keep their format. The B5G6R5 view verdicts follow the existing ones. Choice: R8G8B8A8_UNORM is the stand-in for B5G6R5 too, the same as the other two packed formats.Verification
Linux, MinGW (x86_64-w64-mingw32-g++ -std=c++17 -Wall -Wextra) run under wine64:
startup_packed_target_check: PASS (61 rows).--mutate stand-in: 16 FAILED;--mutate array: 9 FAILED;--mutate b565: 6 FAILED;--mutate view: 3 FAILED. Each is registered as a WILL_FAIL control.git diff --check,py_compileof the draw check,tests/docs_links_check.pyandtests/bidi_controls_check.py: pass.Not run here (needs a Windows node): the CMake build and
ctest, and the WARP/hardware draw check, whose B5G6R5 case moved from a "never substituted" control to a stand-in-or-as-described case.Windows:
ctest --preset dev --no-tests=error -R '^startup_packed_target' -V(also--preset release). The unit tests are in--preset pr; thestartup_packed_target_draw_*tests are outside it.Evidence and follow-up
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T12:08:21Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
c4e6f4e6bcff477e91def6c715cf419e06c98044:--preset dev):cmake --build --preset dev --target startup_packed_target_check startup_stream_consumer -- -j 6):24.61s(configure1.68s)ctest --preset dev -R '^startup_packed_target($|_.+_control$|_draw_warp$)' --parallel 4 --no-tests=error --output-on-failure): 6/6 passed (0.66s:startup_packed_target_stand-in_control0.02s,startup_packed_target_array_control0.02s,startup_packed_target0.02s,startup_packed_target_b565_control0.01s,startup_packed_target_view_control0.01s,startup_packed_target_draw_warp0.59s)/O2(--preset release):cmake --build --preset release --target startup_packed_target_check startup_stream_consumer -- -j 6):36.96s(configure1.72s)ctest --preset release -R '^startup_packed_target($|_.+_control$|_draw_warp$)' --parallel 4 --no-tests=error --output-on-failure): 6/6 passed (0.77s:startup_packed_target_array_control0.02s,startup_packed_target0.02s,startup_packed_target_stand-in_control0.02s,startup_packed_target_b565_control0.01s,startup_packed_target_view_control0.01s,startup_packed_target_draw_warp0.71s)sccache: 4/8 hits; wall71.8sImported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T12:08:33Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
c4e6f4eℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.