compute: read raw buffer descriptor num_records as a number in compute_store_aot #2161
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2161
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2161/head"
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?
@tedin7 on GitHub · 2026-11-25 01:53 UTC · original
tedin7:x2w-2022c-compute-desc-numeric→main· +287 −31 · 11 files · 3 commits · merged 2026-11-25 07:20 UTCPart 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)"at defcd53c: 137/137 passed, includingcompute_store_aot_desc_numeric_warp;tests/compute_desc_numeric_check.pyok.@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 03:41 UTC · original · edited 2026-11-25 03:47 UTC
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.
@legacy-code-archaeologist on GitHub · 2026-11-25 05:58 UTC · original
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.