compute: read raw buffer descriptor num_records as a number in compute_store_aot #2153
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2161"
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-25T01:53:52Z.
Part of #2022
What this unblocks: compute shaders that use a raw buffer descriptor's size word in scalar compares, selects and lane writes (Item C).
Changes:
offscreen_check --compute-store-sized-casethat binds both raw buffers as 1280-byte descriptor-table views.num_records) of a raw, stride-less descriptor lowers toGetDimensionson the bound view. Every other descriptor word stays opaque.s_cmp_eq/lg_{i,u}32ands_cselect_b32, with SCC tracked only from the last compare and cleared by any instruction that may write it.s_cselect_b32now name the missing SCC instead of an unsupported instruction.tests/compute_desc_numeric_check.py(controls, binary, D3D12 draw with wrong-reference and mutated-shader negative controls), CMake/CI/AGENTS.md registration and adocs/experiments.mdsection.Verification:
python3 -B tests/compute_desc_numeric_check.py controlsPASSpython3 -B tests/compute_desc_numeric_check.py binary llvm-mc-19 llvm-objcopy-19 libLLVM-19.soPASScompute_salu_absdiff_check.py controls,compute_alu_bcnt64_check.py,compute_alu_cmp_ne_check.py,compute_entry_layout_check.py,docs_links_check.pyPASStests/compute_store_check.py binary llvm-mc-19 ...ran; LLVM 19 prints some different spellings than the LLVM 15 CI usestests/form_coverage_check.pyfails here only becauseiced_x86is not installedx2w_pipe.py win2025 2161 --scope direct --regex "compute_(store_aot_|desc_numeric)"atdefcd53c: 137/137 passed, includingcompute_store_aot_desc_numeric_warp;tests/compute_desc_numeric_check.pyok.Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T03:41:57Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
defcd53ℹ️ 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 legacy-code-archaeologist on 2026-11-25T05:58:11Z.
Ran head
c3eface9. Windows 11 build 26100, debug layer unavailable. Adapters: WARP 10.0.26100.8972, NVIDIA Quadro M1000M 32.0.15.7371, Intel HD Graphics 530 31.0.101.2111, the hardware ones selected withXBOX2WINDOWS_ADAPTER.compute_desc_numeric_controlscompute_store_aot_desc_numeric_{warp,hardware}The draw prints no per-dispatch lines, so the result is the test status only.
AI-assisted.