shader: lower uncompressed RGBA8 integer render target exports #2370
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2378"
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 RavenCurseBurg on 2026-11-25T14:21:28Z.
Change
Refs #1999 (F) and #2148. Uncompressed pixel exports to R8G8B8A8_UINT and R8G8B8A8_SINT now use a matching integer SV_Target. The desktop output merger performs the final channel conversion. The MRT fixture reads both the integer target and a simultaneous UNORM target, then compiles a deliberately low-byte-only pixel shader and checks its distinct output. The host test covers both signatures and the existing refusal for compressed exports.
Verification
On
48e842fc39dc2738bb540b3e7b9289def611ad42, I ranpython -B tests/startup_mrt_check.py <startup_stream_consumer.exe> <backend> <compiler> <dxc.exe> <fxc.exe>for all four combinations of WARP (10.0.26100.9711) and RTX 4060 (32.0.15.9579) with FXC SM 5.1 and DXC SM 6.0. I used the stream consumer built from the measurement fixture, which has the same C++ harness change. All four combinations completed. The inputffffffff ffffff7f 00000080 00000100gaveffff80ff(UINT),ff807f7f(SINT), andff7f8000for the low-byte controls. The second target stayedff0000ff. The local debug layer was unavailable. The exact commit passed all three focused CTests on Windows Server 2025 WARP with the debug layer enabled, zero skips and all four low-byte controls observed. Both WARP compiler runs also passed when integrated with main atc7f38d05, including #2370. Windows Server WARP log.Host checks passed with
python -B tests/startup_gfx2hlsl_export_mask_check.py,python -B tests/startup_gfx2hlsl_refusals_check.py,python -B tests/docs_links_check.py,python -B tests/bidi_controls_check.pyandgit diff --check.Evidence and follow-up
Before enabling the formats, I compared translated shaders against independently compiled typed HLSL on three Windows configurations (local RTX 4060, local WARP, and Server 2025 WARP). All 36 pairs matched across two compilers, both formats and three input vectors. In 24 pairs the result distinguished saturation from truncation. The other 12 checked in-range values. The hosted measurement used the D3D12 debug layer. The fixture extends the existing source-generated, in-tree MRT shader under the repository license. These measurements cover desktop D3D12; native console readback remains open. See
docs/startup-runtime.mdfor the stored bytes. #2370 reduces repeat processing in the same test.AI assistance: Codex, GPT-6.2 Astra (xhigh).