shader: support BUF_FMT_2_10_10_10_UNORM fetch format in gfx2hlsl (Part of #1723) #1999
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2006"
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-24T22:57:56Z.
Part of #1723
What this unblocks: vertex shaders whose input layout uses packed 10-10-10-2 UNORM (
DXGI_FORMAT_R10G10B10A2_UNORM) no longer get refused withbuffer format BUF_FMT_2_10_10_10_UNORM.Changes:
tools/startup/gfx2hlsl.py:FETCH_FORMATSgainsBUF_FMT_2_10_10_10_UNORM(x, y, z = 10-bit fields / 1023, w = 2-bit field / 3, one dword read withldu).FETCH_DXGImaps DXGI 24 to it.tests/startup_gfx2hlsl_tbuffer_2101010_check.py(new, registered in CMake): constructed MTBUF bytes, decoded, translated, emitted expressions evaluated against a reference from the format definition. Also checks the SNORM sibling stays refused.Verification:
x2w-startup-shader-20/20cs(the run-time FORMAT switch gainscase 50); known-answer keys updated instartup_shader_cache_key_check.pyandstartup_compute_request_offline_check.py.tests/startup_buffer_format_word3_check.cppnow listsDXGI_FORMAT_R10G10B10A2_UNORMindecoded[]and checksview_word3gives50u << 12 | identity.docs/experiments.mdanddocs/startup-runtime.mddescribe the WARP/hardware draw readback and revision 20.a2e70c73d2b16e42a1bb0adbb016a37507f916da,ctest --preset dev|release -R '^(startup_gfx2hlsl_tbuffer_2101010|startup_buffer_format_word3|startup_vertex_fetch_formats_controls|startup_vertex_fetch_formats_warp|startup_shader_cache_key|startup_compute_request_offline)' --no-tests=error: dev 8/8 and release 8/8 passed. Tests:startup_gfx2hlsl_tbuffer_2101010,startup_buffer_format_word3,startup_buffer_format_word3_mapping_control,startup_buffer_format_word3_table,startup_shader_cache_key,startup_compute_request_offline,startup_vertex_fetch_formats_controls,startup_vertex_fetch_formats_warp.python3 -B tests/startup_gfx2hlsl_tbuffer_2101010_check.pyPASS; the same test against the unmodifiedgfx2hlsl.pyfromorigin/mainfails withUnsupported: buffer format BUF_FMT_2_10_10_10_UNORM.Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T22:58:14Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
e05cff2ℹ️ 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.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:04:15Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
e05cff2676ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
upstream-sync referenced this pull request2026-11-25 00:04:55 +00:00
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T00:50:31Z.
Review: COMMENTED
No description provided.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T00:50:33Z.
Review: COMMENTED
No description provided.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T23:11:03Z.
Ran it, broke it four ways — all caught — and checked the unpacking against the DXGI definition
Windows 11 build 26300.9974, device-free:
FETCH_FORMATS((w >> 10) & 1023)→(w >> 10)(y picks up z's bits)/ 1023.0→/ 1024.0on x(w >> 30) / 3.0→/ 4.0on wSo the field order, the per-field mask and the divisor are each pinned, not only the text.
The arithmetic, checked against
DXGI_FORMAT_R10G10B10A2_UNORMI transcribed the four emitted expressions and compared them with the format definition over the boundary values of every 10-bit channel and all
four values of the 2-bit one:
The endpoint being exactly
1.0matters for a vertex attribute:x / 1023.0reaches 1.0 only because the divisor is 1023 and not 1024, which isalso why the second mutation above is the one that would corrupt a fully-saturated channel silently.
On the merge with what is already on
mainYour branch is 15 commits behind (
merge-base 36a9a06f), so a plain diff againstmainshows #1992's sixVEC_Uentries as deletions — they arenot yours to delete. I checked the actual merge rather than the diff:
Both suites are green together, so no rebase is required for this to land — just be aware that a diff-based reviewer may misread those deletions.
What is not covered
The
SNORMsibling staying refused is asserted; the rest of the 10-10-10 family (BUF_FMT_2_10_10_10_SNORM, the_A2spellings) is not, and thispatch does not claim otherwise. No vertex shader was compiled or run, which matches the description's framing (it unblocks the refusal, it does not
measure a draw).
Notes
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T23:14:09Z.
Merge matrix for the 16 open PRs that touch
tools/startup/gfx2hlsl.pyI computed each PR's changed line ranges against its own merge base (not against
main, which makes stale branches look like they delete otherpeople's work), then looked for pairs whose ranges overlap.
Only 2 of 120 pairs overlap:
op_s_bfm_b64FETCH_FORMATS(10-10-10-2 UNORM vs 16-16 SNORM)But line overlap is only half the story
I merged the overlapping pairs, and then a pair that does not overlap:
#2012and#1995add the same method at lines 1272 and 1304 — far apart, so nothing overlaps, yet they are the same feature. In one merge ordergit silently keeps a single definition (one author's behaviour is lost with no marker); in the other it keeps both. Neither outcome is a rebase of
the other, and the reviewer would have to notice by reading the file.
So: line-overlap predicts textual conflicts, not duplicate additions. For a file where 16 people are each adding one handler, the dangerous
case is the one this matrix does not flag, and the two duplicate pairs above (#1995/#2012 on
v_swap_b32, #2003/#2007 ons_bfm_b64) areexactly that.
What I would do with this
the same way, so both are safe choices).
#2006/#2005, whichever goes second needs a one-line rebase of two adjacent dict entries — trivial, but it will be a conflict ratherthan a merge.
The script is 40 lines (merge-base,
git diff -U0, range intersection) if you want it as a CI job — but a cheaper version is just "search theopen PR titles for the mnemonic", which would have caught both duplicates before either branch existed.
Applied to this PR
This PR is one half of the #2006 + #2005 overlap: both extend FETCH_FORMATS at lines 87–88, so whichever lands second needs a one-line
rebase of two adjacent dict entries. Nothing else here affects you.
Notes
main7f149ac9.Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:04:15Z.
Code review location:
tools/startup/gfx2hlsl.py; line 88For MTBUF format 50,
BUF_FMT_2_10_10_10_UNORMplaces X in bits 1:0 and Y/Z/W in bits 11:2, 21:12, and 31:22. These expressions instead implement the distinctBUF_FMT_10_10_10_2_UNORMformat (44): loading0x00000003produces X =3/1023instead of1. Consequently, previously refused MTBUF loads now translate with incorrect component values. The new fixture passes because itsreference()repeats the same layout error. Implement the actual format-50 unpacking, and associate the DXGI 24 layout and mapping with a separate format-44 entry.Useful? React with 👍 / 👎.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:04:15Z.
Code review location:
CMakeLists.txt; line 2167This adds a public shader capability and registers a new reproduction test, but changes neither
README.mdnordocs/experiments.md, violating the explicit documentation requirement inAGENTS.md. Update the relevant capability documentation and record the test invocation and host-expression-only verification scope indocs/experiments.md, asCONTRIBUTING.mdalso requires, so the published experiment inventory distinguishes this newly accepted format from formats validated through DXIL/WARP readback.AGENTS.md reference: AGENTS.md:L207-L208
Useful? React with 👍 / 👎.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T00:50:31Z.
Code review location:
tools/startup/gfx2hlsl.py; line 88Fixed in 46d28538 (rebased on origin/main, branch rb2006, pending host force-push). Format 50 now decodes the 2-bit X field first; DXGI 24 maps to new format-44 entry; README and docs/experiments.md updated with repro command and host-expression-only scope. Ran: python3 tests/startup_gfx2hlsl_tbuffer_2101010_check.py (PASS). AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T00:50:33Z.
Code review location:
CMakeLists.txt; line 2167Fixed in 46d28538 (rebased on origin/main, branch rb2006, pending host force-push). Format 50 now decodes the 2-bit X field first; DXGI 24 maps to new format-44 entry; README and docs/experiments.md updated with repro command and host-expression-only scope. Ran: python3 tests/startup_gfx2hlsl_tbuffer_2101010_check.py (PASS). AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T07:54:03Z.
I ran an independent device readback against the translator at
2a920695. The test-only commit applies directly to this head and extends the existing format suite.On WARP and a physical D3D12 adapter, I compiled the generated VS with DXC and invoked the same vertex body from the compute readback wrapper. Sixteen packed vertices at stride 5, offset 3 cover all four byte alignments and all four alpha levels. On each adapter all 64 decoded components and 256 surrounding sentinel words matched. Reading blue from green, dividing alpha by four and replacing the unaligned load with an aligned load each produced a readback mismatch. The existing device-free test also passed.
Reproduce with
python -B tests/startup_vertex_fetch_formats_check.py <dxc> <offscreen_check> warpand again withhardware. Both full runs passed all 13 formats and detected all 12 shader mutations. The local debug layer was unavailable.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:01:23Z.
Review: COMMENTED
No description provided.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:01:26Z.
Review: COMMENTED
No description provided.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:01:23Z.
Code review location:
tools/startup/gfx2hlsl.py; line 88Re-checked on current head
328b603d: format 50 decodes the 2-bit X field first (confirmed by #2192,2e4f44cb), and the capability, test registration and reproduction command are documented (328b603d). Resolving. AI-assisted; commands listed were executed locally.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:01:26Z.
Code review location:
CMakeLists.txt; line 2167Re-checked on current head
328b603d: format 50 decodes the 2-bit X field first (confirmed by #2192,2e4f44cb), and the capability, test registration and reproduction command are documented (328b603d). Resolving. AI-assisted; commands listed were executed locally.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:54:36Z.
Thank you @ChazY11 for the four-mutation run and the DXGI cross-check of the unpacking, and @RavenCurseBurg for the independent WARP + hardware readback at
2a920695(13 formats passed, 12 shader mutations detected). Recorded as extra evidence for this PR.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T12:05:37Z.
Thanks @ChazY11 for the merge matrix, and @RavenCurseBurg for the readback.
I merged
origin/maininto this branch (plain merge, no rebase). It was clean, with no conflicts. The new head is9fcd600a. The old head was328b603d.The diff against
mainis now only our 4 files (+134/-1):tools/startup/gfx2hlsl.py, the new tbuffer test,CMakeLists.txtanddocs/experiments.md. The earlier phantom deletions of theVEC_Uentries are gone.On the #2005 overlap: whichever of #2006 and #2005 lands second needs a small rebase of the adjacent
FETCH_FORMATSentries. I will do that for this PR if #2005 lands first.Commands run locally on Linux:
git merge origin/mainpython3 -I -B tests/startup_gfx2hlsl_tbuffer_2101010_check.py(PASS)python3 -I -B tests/startup_gfx2hlsl_int_med3_check.py(PASS)python3 -I -B -m py_compile tools/startup/gfx2hlsl.pyThe Windows WARP run is still pending on the new head.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T13:51:32Z.
Closing this PR for now to keep the Windows test queue short. Nothing is wrong with it and the branch stays as it is.
We will reopen it once the queue is clear, re-run the Win2025 WARP checks at its head, and post the result here.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:46:31Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
c23207494ca2ca604bf2df4d11cae90efcfbe9bf:--preset dev):cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2):160.87s(configure4.49s)/O2(--preset release):cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2):205.87s(configure3.62s)tests/mesh_heap_sampler_check.pyok (1.0s),tests/startup_buffer_address_check.pyok (0.5s),tests/startup_buffer_format_word3_table_check.pyok (0.1s),tests/startup_compute_request_offline_check.pyok (0.5s),tests/startup_compute_store_format_xyzw_check.pyok (0.3s),tests/startup_compute_translate_check.pyok (0.2s),tests/startup_flat_param_check.pyok (0.2s),tests/startup_gfx2hlsl_add_sub_co_check.pyok (0.1s),tests/startup_gfx2hlsl_add_sub_co_ci_check.pyok (0.2s),tests/startup_gfx2hlsl_bit_alu_check.pyok (0.8s),tests/startup_gfx2hlsl_capture_check.pyok (1.2s),tests/startup_gfx2hlsl_cmp16_check.pyok (0.4s),tests/startup_gfx2hlsl_cmp_class_f16_sdwa_check.pyok (39.9s),tests/startup_gfx2hlsl_compare_dst_check.pyok (0.1s),tests/startup_gfx2hlsl_compute_check.pyok (0.5s),tests/startup_gfx2hlsl_cselect_mask_check.pyok (0.1s),tests/startup_gfx2hlsl_cvt_alu_check.pyok (0.3s),tests/startup_gfx2hlsl_cvt_off_f32_i4_check.pyok (0.3s),tests/startup_gfx2hlsl_cvt_pk_int16_check.pyok (0.3s),tests/startup_gfx2hlsl_f32_lg_check.pyok (1.3s),tests/startup_gfx2hlsl_f32_nan_check.pyok (5.3s),tests/startup_gfx2hlsl_fma_mix_check.pyok (0.1s),tests/startup_gfx2hlsl_getpc_refusal_check.pyok (0.1s),tests/startup_gfx2hlsl_handler_arity_check.pyok (0.1s),tests/startup_gfx2hlsl_heap_record_check.pyok (0.2s),tests/startup_gfx2hlsl_image_arity_check.pyok (0.1s),tests/startup_gfx2hlsl_image_get_lod_check.pyok (0.2s),tests/startup_gfx2hlsl_int_med3_check.pyok (0.1s),tests/startup_gfx2hlsl_interp_p2_hi_check.pyok (0.3s),tests/startup_gfx2hlsl_join_symbols_check.pyok (0.3s),tests/startup_gfx2hlsl_loop_constants_check.pyok (0.1s),tests/startup_gfx2hlsl_mask_data_check.pyok (0.1s),tests/startup_gfx2hlsl_mask_overwrite_check.pyok (0.1s),tests/startup_gfx2hlsl_operand_count_check.pyok (0.4s),tests/startup_gfx2hlsl_pack_absdiff_check.pyok (3.1s),tests/startup_gfx2hlsl_pack_b32_f16_check.pyok (0.2s),tests/startup_gfx2hlsl_readfirstlane_recompute_check.pyok (0.1s),tests/startup_gfx2hlsl_readfirstlane_uniform_check.pyok (0.2s),tests/startup_gfx2hlsl_refusals_check.pyok (0.8s),tests/startup_gfx2hlsl_root_check.pyok (1.0s),tests/startup_gfx2hlsl_s_abs_check.pyok (0.1s),tests/startup_gfx2hlsl_s_bitset_check.pyok (0.2s),tests/startup_gfx2hlsl_s_ff0_check.pyok (0.1s),tests/startup_gfx2hlsl_s_ff1_check.pyok (0.1s),tests/startup_gfx2hlsl_s_flbit_check.pyok (0.1s),tests/startup_gfx2hlsl_s_quadmask_check.pyok (0.2s),tests/startup_gfx2hlsl_sad_check.pyok (0.6s),tests/startup_gfx2hlsl_saveexec_same_reg_check.pyok (0.2s),tests/startup_gfx2hlsl_scalar_arity_check.pyok (0.3s),tests/startup_gfx2hlsl_scalar_brev_fold_check.pyok (0.2s),tests/startup_gfx2hlsl_scalar_m0_check.pyok (0.2s),tests/startup_gfx2hlsl_scalar_null_check.pyok (0.4s),tests/startup_gfx2hlsl_scalar_table_arity_check.pyok (0.6s),tests/startup_gfx2hlsl_sdwa_cndmask_check.pyok (0.3s),tests/startup_gfx2hlsl_sdwa_cvt_check.pyok (0.4s),tests/startup_gfx2hlsl_sgpr_spill_check.pyok (0.2s),tests/startup_gfx2hlsl_shift64_check.pyok (0.3s),tests/startup_gfx2hlsl_sload_const_offset_check.pyok (0.1s),tests/startup_gfx2hlsl_smem_offset_check.pyok (0.1s),tests/startup_gfx2hlsl_sop2_complement_check.pyok (8.1s),tests/startup_gfx2hlsl_sopk_accum_check.pyok (1.7s),tests/startup_gfx2hlsl_sopk_signext_check.pyok (0.2s),tests/startup_gfx2hlsl_spill_branches_check.pyok (1.7s),tests/startup_gfx2hlsl_swap_check.pyok (0.6s),tests/startup_gfx2hlsl_vopc_sdwa_check.pyok (8.8s),tests/startup_gfx2hlsl_waitcnt_depctr_check.pyok (0.2s),tests/startup_gfx2hlsl_watch_check.pyok (3.1s),tests/startup_image_2d_array_check.pyok (0.3s),tests/startup_image_3d_check.pyok (0.3s),tests/startup_image_gather_lz_check.pyok (1.0s),tests/startup_image_load_d16_check.pyok (1.6s),tests/startup_image_sample_a16_check.pyok (0.3s),tests/startup_image_sample_b_check.pyok (0.3s),tests/startup_image_sample_c_check.pyok (0.4s),tests/startup_image_sample_l_check.pyok (0.3s),tests/startup_image_sample_lod_check.pyok (1.1s),tests/startup_inline_sampler_check.pyok (0.3s),tests/startup_mesh57_depth_only_check.pyok (0.3s),tests/startup_mesh57_lane_spill_check.pyok (0.4s),tests/startup_mesh57_loop_check.pyok (0.3s),tests/startup_mesh57_loop_refusal_check.pyok (0.3s),tests/startup_mesh57_skeleton_check.pyok (2.1s),tests/startup_run_ps1_check.pyok (34.8s),tests/startup_run_sh_check.pyskipped (0.7s),tests/startup_sampler_heap_check.pyok (0.3s),tests/startup_shader_cache_rekey_check.pyok (7.4s),tests/startup_smem_address_check.pyok (0.3s),tests/startup_stream_fetch_check.pyok (0.4s),tests/startup_stream_interface_check.pyok (0.4s),tests/startup_translator_check.pyok (0.7s)sccache: 34/77 hits; wall526.5sImported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:46:32Z.
@MasterDomino: #2006 is ready for review/merge.
What changed: merged current main into the branch (one docs conflict in
docs/experiments.md, kept both sections). New headc2320749.Verification:
python3 tests/startup_gfx2hlsl_tbuffer_2101010_check.pyPASSpython3 tests/startup_buffer_format_word3_table_check.pyokc23207494ca2ca604bf2df4d11cae90efcfbe9bf(receipt in the comment above), including the D3D12 WARP readback fetch testAI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-26T06:25:11Z.
Review: CHANGES_REQUESTED
Reviewed
c2320749.The decode is right:
BUF_DATA_FORMAT_2_10_10_10+ UNORM as unified format 50.docs/experiments.md. The code is the correct one.Three things before merge:
mubuf_format's run-time FORMAT switch gainscase 50uin programs that already translate; 8 compute programs from the existing compute checks change. With the shim now accepting code 50, a cached shader from the current revision would return the 0x7fc0f0f0 sentinel.mainis now atx2w-startup-shader-19/19cs(since #2708). Please move both to20/20cs, or one past whatever lands first; the switch is emitted for every stage, so the graphics key moves too.tests/startup_buffer_format_word3_check.cppdoesn't listDXGI_FORMAT_R10G10B10A2_UNORM. Droppingcase 50fromformatted_buffer.h, or the R10G10B10A2 line frombuffer_format_word3.h, still passes that source-built check; only the text-parsing table checks fail. Please add it todecoded[], and check thatview_word3gives50u << 12 | identity.docs/experiments.mdstill says no D3D12 draw has been run for the format, butstartup_vertex_fetch_formats_warp/_hardwarenow read it back. The PR description still says Win2025 hasn't been run.Runs: Windows 11 build 26300; AMD Radeon RX 9070 XT (driver 32.0.32029.2010); WARP 10.0.26100.9818.
c2320749:ctest --preset dev -R "tbuffer|vertex_fetch_formats|buffer_format_word3|formatted"12/12. Format 50 reads back at stride 6 / offset 2 and through the descriptor path with 0 mismatches, and its three mutations fail.-R "startup_gfx2hlsl|startup_compute_|startup_mesh57_formatted"386/389:fma_mix_dispatch_hardware(#2746);startup_compute_dispatch_texture_warp/_hardware, which pass once merged with currentmain.main:startup_vertex_fetch_formats_*stop at a source gate. That gate also fails onmainsince #2596, unrelated to this PR (noted on #2596).AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T06:32:30Z.
Review: APPROVED
Rebuilt the Release renderer and ran all seven format checks. Both WARP and RTX 4060 Laptop passed the packed format draws. The composed main extracts FORMAT and token handling through the shared word3 decoder, and the updated gate check catches clearing that check or skipping the decoder call. The packed normalization and field-order controls continue to run.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-26T06:44:25Z.
Review: APPROVED
Approving
a2e70c73. My change request is resolved.x2w-startup-shader-20/20cs. No18/19literal is left insrc,toolsortests, apart from the fract check's historical seed comparison.startup_buffer_format_word3_check.cppnow coversDXGI_FORMAT_R10G10B10A2_UNORM. Droppingcase 50fromformatted_buffer.hnow fails it:FAIL DXGI format 24: code 50. Restored, it passes again.6e9917f3fixed the gate, so the format-50 readback runs again on top ofmain.Run at this head (Windows 11 build 26300,
--preset dev; AMD Radeon RX 9070 XT, driver 32.0.32029.2010; WARP 10.0.26100.9818):10/10 passed, including
startup_vertex_fetch_formats_warpand_hardwareandstartup_gfx2hlsl_tbuffer_2101010.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-26T06:34:13Z.
@R0Y00, thanks.
6e9917f3also fixes the vertex-preflight gate I reported on #2596, sostartup_vertex_fetch_formats_*can run on a merge again.My change request at
c2320749is still open on two points:mubuf_format's run-time FORMAT switch gainscase 50uin programs that already translate; 8 existing compute programs from the compute checks change. A shader cached at19/19csbefore this lands therefore keeps the old switch. With the shim now accepting code 50, it would return the 0x7fc0f0f0 sentinel instead of the decoded value. The head still keys19/19cs. Do you want the bump to20/20cshere, or do you consider the stale entry acceptable? If you're fine without it, I'll dismiss my request.tests/startup_buffer_format_word3_check.cppstill doesn't listDXGI_FORMAT_R10G10B10A2_UNORM. Droppingcase 50fromformatted_buffer.hpasses that C++ check; only the text-parsing checks fail. One row indecoded[]would pin it. The docs line about no D3D12 draw is minor.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T07:31:57Z.
@MasterDomino all three points are fixed at
a2e70c73d2b16e42a1bb0adbb016a37507f916da(on top of6e9917f3).x2w-startup-shader-19/19csmoved to20/20csingfx2hlsl.py,d3d12_draw.inland the tests that spell the revision. The known-answer keys changed with it (startup_shader_cache_key_check.py,startup_compute_request_offline_check.py), anddocs/startup-runtime.mdsays why revision 20 exists.tests/startup_buffer_format_word3_check.cpplistsDXGI_FORMAT_R10G10B10A2_UNORMindecoded[]and checksview_word3gives50u << 12 | identity. Droppingcase 50or the table line now fails the source-built check.docs/experiments.mdnow saysstartup_vertex_fetch_formats_warp/_hardwareread the format back; the PR description is refreshed.Win2025 (Windows Server 2025 build 26100, D3D12 WARP),
ctest --preset devand--preset releasewith-R '^(startup_gfx2hlsl_tbuffer_2101010|startup_buffer_format_word3|startup_vertex_fetch_formats_controls|startup_vertex_fetch_formats_warp|startup_shader_cache_key|startup_compute_request_offline)' --no-tests=error: 8/8 passed on both, includingstartup_buffer_format_word3,startup_buffer_format_word3_mapping_control,startup_buffer_format_word3_table,startup_gfx2hlsl_tbuffer_2101010andstartup_vertex_fetch_formats_warp.Re-requesting review.
AI-assisted; commands listed were executed locally.