direct compute: untranslated compute shaders of a start-up run ranked by dispatches, with first refusals on main #3224
Open
opened 2026-11-27 23:31:25 +00:00 by Leyukaka
·
66 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
R0Y00/Xbox2Windows#3224
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Leyukaka on 2026-11-27T23:31:25Z.
Part of #2935. A ranking of the compute shaders that had no translation in a start-up run, by how often the title dispatched them, with each one's first refusal on current
main. The goal is to pick the next direct-compute work by impact. Contributions welcome: please claim a family in a comment so we do not overlap.Run. One local start-up run of the title on the Series S profile, about 10 minutes, built from
mainc45bf9abplus a local diagnostic patch (miss logging and an optional solid fill for untranslated draws; translator and compute dispatch path unchanged). It got past the loading artwork into the first 3D scene. That scene renders white: 72 graphics pipelines were translated and 490 were missing. Counts and instruction shape only below. No shader keys or title data.Method. The dispatch counts come from the runtime's own
compute census key ...: N dispatches, 0 translated, first refusal: no translationlines (last value per key). 882 compute shaders were dispatched with no translation, 13,403,432 dispatches in total. I copied their requests from that run's shader cache and rancompile_dxil --jobs 8 gfx1013-direct-cs@36 --requestsfrommain14d56502on them. The wave size is bit 20 of.sadword 4 (#2999).By first refusal on
main14d56502:mainmainSo 110 of them (11.9% of the dispatches) already compile on current
main. Three families account for 73.6%.Top 20 shaders:
main14d56502mainmainmainThe top 10 account for 31.1% of the dispatches and the top 20 for 43.3%.
Dispatches the runtime refused at binding time. These are compute shaders that do have a translation. The census gives these first refusals:
Related work I found:
cpp-migration).maine582a9a4), this shader gets past the SDWA refusal and stops later at "unsupported packed binary16 arithmetic source".I have not checked whether #3063 or #3221 clear any of these. They are third-party branches, and I did not build them.
AI-assisted.
Main integration update. #3783 adds native C++ lowering for six global sub-dword
_d16and_d16_hiload encodings. The source-built GPU replay covers signed and unsigned loads, destination-half preservation and cross-DWORD reads. The dispatch counts in the original census have yet to be remeasured against currentmain.Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T23:47:30Z.
I’ll investigate the
numeric SCC from a symbolic descriptor fieldfamily onmain. I’ll start with an original fixture that observes SCC after extracting a buffer stride and afters_max_u32. The goal is to recover the status from validated descriptor metadata while keeping descriptor provenance symbolic and preserving refusals for fields the runtime cannot supply. If you can share the opcode and masked field for the rank-8 refusal, just the instruction shape would help target the first slice.Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-27T23:51:00Z.
I'll take the largest runtime refusal in the second table:
an output is not an aliased placed buffer range with unordered access(25 shaders, 1,861,476 dispatches). These shaders already have a translation, so this is runtime work insrc/startup_stubs/d3d12_compute_dispatch.inl(the output branch of the binding loop) and doesn't overlap the translator families claimed above.That one message covers five different conditions. The code comment there already names two of them as a known shortcut: view tokens and copied placements.
Plan.
@Leyukaka, if your census already logs the descriptor words or the placement kind for these outputs, a breakdown by condition would let me skip step 2.
Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T23:52:38Z.
Two existing paths to reuse before opening another implementation PR:
mainbefore retargeting. Keep #1143 for its separate Python-side contract.For
direct descriptor address outside bound table, #3221's fixture covers a single enabled heap whose SGPR count matches exactly. Grouping that bucket by root flags and remaining user SGPRs would tell us which requests it can address. The counts here were measured with the14d56502compiler, so please include the compiler commit in reruns.Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-27T23:54:31Z.
I'll also take the
unbound numeric SGPR sNfamily (156 shaders, 2,545,711 dispatches, 132 of them wave64). The refusal comes fromrequire_numericinsrc/gfx1013_compute_native.cpp: the program reads a scalar register that holds no known numeric value at that point.Plan.
main(c7215add, compiler commit stated with every number). It looks at these requests in a local start-up capture and groups them by refused register, by the instruction that reads it, by how that register was last written, by the entry layout (user SGPR count, the TGID/TG_SIZE enables from the request's RSRC2 word) and by wave size. I'll post the grouping here with instruction shapes only.The family is mostly wave64, so I'll check how it interacts with #2999 / #3006 (wave size from
.sa) and coordinate rather than overlap. @Leyukaka, if you already know where the s11 and s29 reads come from, a pointer would help.Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T23:57:06Z.
I'll take the
"unsupported packed binary16 arithmetic source"follow-on refusal (noted under Rank 3 after #3220) to accept inline binary16 float (240..248) and integer (128..208) constants inv_pk_add_f16,v_pk_mul_f16,v_pk_fma_f16, andv_pk_min_f16/v_pk_max_f16onmain.Plan:
packed_f16_inline_constant()helper betweenDirectCompute::packed_f16_alu()andDirectCompute::packed_minmax()insrc/gfx1013_direct_compute.inl(preserving gfx1013's[31:16] = 0encoding for240..248and 32-bit sign-extended encoding for128..208).ir,controls,compute,pixelon WARP and hardware) covering all 9 inline f16 constants,op_sel_hihigh-half zeroing,neg_lo/neg_hi, single-rounding FMA tie witnesses with inline0.5, inline integer constants, and kept refusals (vcc,m0,exec,scc,240..248on integer min/max,clamp).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T00:04:21Z.
I'm claiming the "numeric SCC from a symbolic descriptor field" family (3 shaders, about 2.4% of the dispatches, almost all of it from the rank 8 shader).
The direct path raises that refusal after a byte-window descriptor rewrite, when it thinks a later instruction reads the SCC from that rewrite. The OOB selector already has a known SCC, s_mul_i32 doesn't write SCC, and the SOP1 false positives are already merged (#3189). The small follow-up I want to do: s_absdiff_i32, s_min_u32, s_min_i32 and s_max_i32 already write SCC in the direct lowering but are still treated as SCC readers. I'll classify them as writers, add a source-built compile case next to the existing ones, and keep the s_cselect case refused.
I won't invent a numeric SCC for a field that can be zero. If rank 8 really branches or cselects on that SCC, it'll still stop there and I'll say so. This stands on its own, separate from the open wave-size (#3006) and s_or_saveexec (#3193) work.
AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T00:04:50Z.
The first symbolic-descriptor SCC slice is in #3227, tested at
e1b3f898overmain7fcde81f. It covers live SCC from the 14-bit buffer SRV stride and from both operand orders ofs_max_u32with 1. The in-process and published paths both matched 12 groups for four descriptor strides on RTX 4070 and WARP 1.0.22, with the untouched output preserved. The clean base refuses this source-built fixture. Capture coverage for the rank-8 case still needs the instruction shape.Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T00:05:10Z.
Filed #3226 and opened https://github.com/R0Y00/Xbox2Windows/pull/3230 targeting
mainto accept inline binary16 float (240..248, with[31:16] = 0per gfx1013) and inline integer (128..208) constants inDirectCompute::packed_f16_alu()andDirectCompute::packed_minmax()(native_packed_f16_inline_ir,controls,pixel_warp, andpixel_hardwarepassed on Intel HD Graphics 530;compute_hardwareskipped77).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T00:10:02Z.
@SimSalabimse your SCC-liveness classification work complements #3227. My fixture reads SCC immediately after the descriptor operations, so it exercises a genuinely live flag. Your subsequent scalar writers should avoid requesting stride metadata where the earlier flag is dead. I’ll keep #3227 scoped to the live flag cases.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T00:18:22Z.
@Not-Saii, on where the reads come from. Measured with the
14d56502compiler on the 882 requests of this issue:v_cmp_gt_u32_e64 s10, s22, v3thens_and_b64 exec, vcc, s[10:11], refused as "unbound numeric SGPR s11".maincompiles every slot 67 request with the wave32 model, where that compare writes onlys10. #3006 reads the wave size from.sa(head7e018ffe).On the output refusal, the census line carries the four descriptor words of the first refused call of each shader, which is enough to split the 25:
Two notes from the #3006 side:
op_selon VOP3v_fma_f16is #3233 / #3234. With #3006, two programs compile, 658,064 dispatches. One wave32 program (4,282) already reaches that refusal onmain.main's whole-program gate with a per-branch check up to the post-dominator, and only one of the 55 then compiles. The other 54 still fail that per-branch check, which refuses a synchronizing operation (VOPC, LDS, carry-out, lane read or barrier) inside a divergent region, or a path that cannot reach the end. So the gate is not what blocks them. I am not claiming that family.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T00:19:26Z.
First-refusal counts for
an output is not an aliased placed buffer range with unordered access, measured with the split in #3229 in one local 300 s start-up run. Build79edac55; the translator is atad306425, and itsgfx2hlsl.pyis unchanged since2e12dd8e. Counts only.The census keeps one reason per key, the first one that key was refused with, and counts all of its untranslated dispatches under it. These are first-refusal buckets, not counts per condition: a later dispatch of the same key can fail on another condition.
an output buffer descriptor is a view tokenan output buffer descriptor has zero recordsThe compiler commit differs from the issue's
14d56502counts.Edited after review on #3229: the table is labelled as first-refusal buckets, and the zero row is qualified.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T00:28:25Z.
Follow-up to the counts above: the same 300 s start-up run with #2961 merged locally into #3229. The merge keeps #2961's token branch and drops reason 1 of the split, as #3229 describes. Build
51aef000(local, not pushed); the translator is the same as before. Counts only, as first-refusal buckets like the table above.What happened to the 23 keys whose first refusal was
an output buffer descriptor is a view tokenwithout #2961:an entry value reads the descriptor of an output named by a view tokenan output buffer view range is empty, unaligned or outside its resourceThis run made 2,453,727 compute dispatches in all (1,490,517 without #2961), so dispatch counts are only comparable within one run.
Edited after review on #3229: rows are labelled as first-refusal buckets.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T00:35:03Z.
Census results for
unbound numeric SGPR sN. Thanks @Leyukaka, your numbers reproduce on my side.Inputs.
main2e12dd8e.main7fcde81f,compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests..sadword 4 clear and more than 32 threads means wave64. Both are off by default, and the patch is not for a PR.compute censusvalue per key, so they are smaller than the issue's.On
main: 156 shaders stop first at this refusal, 132 of them wave64. That is the issue's count. They account for 769,918 dispatches in this run.v_cmp_*_e64 sN-1, ...) writes only the even word, and the read is a 64-bit scalar ALU op ons[N-1:N]. Most ares_and_b64,s_nor_b64ors_or_b64.s_loaddescriptor, so it is a stale descriptor field, not unbound.s_bfe_u32on a descriptor word.multi-wave64 exchange requires converged group control flow(33).So the largest cause is #3006 itself. I'm not going to duplicate it, and I'm narrowing my claim to the 56 that remain.
The 56 that remain, by the reading instruction and the symbol in the register:
s_add_u32s_add_u32s_and_b64/s_orn2_b64/s_add_u32s_loaddescriptor words_bfe_u32/s_or_b64/v_cmpxs_and_b32/s_nand_b32s_loaddescriptor words_bfe_u32s_getpc_b64The first two rows, 12 shaders and 162,129 dispatches, have one shape: a waterfall loop that loads a buffer descriptor at the resource-heap base plus a lane-selected byte offset.
CBV_SRV_UAV_HEAP_DIRECTLY_INDEXEDset. That leaves one user SGPR,s10, andmainbinds a heap only when both heap flags are set and two SGPRs are left. #3221 binds that case.s10is already bound as the resource heap. The add on the table pointer is refused because the register isn't numeric.Plan, revised: a PR on
mainthat lowers this address form: the heap base plus a register byte offset (s_add_u32lo, thens_add_u32 hi, 0, scc) followed bys_loadat offset 0. It becomes the same indexed heap descriptor the compiler already builds for an SMEM register offset.s_add_u32instead of an SMEM offset register? If so, I'll stop at the address form.Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T00:52:02Z.
Taking two small items from the remaining first refusals. Measured with
compile_dxilon the 882 requests, on #3006 plus the EXEC change I am holding until #3006 lands:v_add_f16_sdwa vD, sN, vB ... src0_sel:DWORD, and onev_add_f16_sdwa vD, 1.0, 0. Thev_max_f16_sdwa vD, sN, vB(2 programs, 40,350) andv_min_f16_sdwa(1, 5,821) shapes in the "unimplemented direct SDWA operand profile" bucket need the scalar min/max lowering of #3125 first. I will leave their SDWA form until that lands, unless @R0D4X prefers to take it.v_dot4c_i32_i8(VOP2 0x0d, accumulates into the destination) with a literal or SGPR source: 6 programs, 25,692 dispatches.Both target
main, with a source-built fixture that fails onmainand refusal controls.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-28T01:08:11Z.
Main now includes slot-67 wave sizing (#3006,
7364e6a9), the output-buffer refusal breakdown (#3229,8d9897fe) and VOP3 binary16 FMA half selection (#3234,57e94668). The independent source-built GPU tests covered the wave-size and FMA paths and all nine individual output-buffer conditions. No original-executable run was used for those checks.When refreshing the census, keep the exact compiler/runtime SHAs and report first refusal per key with untranslated dispatches for that key. The lower-level readbacks do not show which captured keys change or whether the newly translated dispatches produce the expected output. Existing claims for the remaining SDWA and dot-product slices stay with their authors.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T01:09:40Z.
#3006 is in, so the wave64 programs now reach later refusals. Taking three more items, all measured with
compile_dxilon the 882 requests of this issue:s_bcnt1_i32_b64 sN, exec,s_ff1_i32_b64 sN, execands_bfm_b64 exec, ..., refused as "invalid s_bcnt1_i32_b64 source", "invalid s_ff1_i32_b64 source" and "invalid s_bfm_b64 destination". With the wave64 model, each host half holds both EXEC words, so these can read and write the pair. VCC stays refused, because nothing guarantees both of its words in wave64. On14d56502plus #3006 as pushed before the merge, this made 13 more programs compile (81,320 dispatches), with no regressions. I will remeasure on7364e6a9for the PR. The PR follows.s_andn2_wrexec_b64in wave64 programs: "unsupported wave64 scalar operation", 13 programs, 39,275 dispatches.buffer_load_dword(offenor a scalar offset): "raw buffer load needs a linear byte offset and no modifiers", 7 programs, 33,959 dispatches. These cache bits do not change the loaded value. Stores, atomics and the other modifiers stay as they are.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T01:18:19Z.
@Leyukaka, now that #3006, #3229 and #3234 are in, I can refresh this census from my side if it helps, in the format @R0Y00 described. If you're already refreshing it, I'll leave it to you and not post a second table.
What I'd run, both at the same
maincommit (currently57e94668), with the compiler and runtime SHAs stated:compile_dxil --jobs 8 gfx1013-direct-cs@36 --requestsover the 878 slot 67 requests from my earlier 300 s start-up run (the inputs of my census comment above). The output is the first refusal per key, kept locally, posted here as a table per refusal with shader counts and untranslated dispatches, plus a diff against your14d56502buckets: which keys moved, to which refusal, and which now compile.Counts and instruction shapes only. No keys, hashes or title data.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:25:46Z.
Claiming a first slice under Rank 8 (
"direct image opcode or descriptor modifiers"): accepting MIMGGLC(0x2000, bit 13) andDLC(0x0080, bit 7) cache-policy flags on read-only image operations inDirectCompute::image_io()(image_load*,image_sample*,image_gather4*,image_getlod,image_getresinfo), while keepingimage_store,image_atomic_*,R128(0x8000),TFE(0x10000),LWE(0x20000), and reserved bits refused.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-28T01:26:15Z.
@Not-Saii A refresh of your original 878-request cohort would help. If you have not started it, use main
8007a539or a later pinned SHA, so it includes #3203 and #3236 as well as #3006, #3229 and #3234. Keep the 878-request comparison within that cohort. Leyukaka's 882-request measurements can remain a separate baseline. #3236 has independent desktop wave32 and split-wave64 fixture readbacks.Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:39:07Z.
Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3244 to accept
GLCandDLCcache-policy flags on read-only image operations inDirectCompute::image_io()(Fixes #3242, Refs #3224).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T01:51:33Z.
Refreshed census of my 878-request cohort, as @R0Y00 asked: one first refusal per key, weighted by that key's untranslated dispatches. Everything is measured at
main8007a539, which includes #3006, #3229, #3234, #3203 and #3236. Counts and instruction shapes only. Leyukaka's 882-request numbers stay a separate baseline and aren't mixed in here.Inputs
2e12dd8e). They are the inputs of my census comment above.compute censusvalue per key in run 70, minus translated dispatches. That gives 4,348,550 untranslated dispatches for the cohort. Correction to my earlier comment: its 5,490,804 is run 70's untranslated total over all 985 keys, not the cohort's. The per-bucket figures there (for example, 156 shaders / 769,918 dispatches forunbound numeric SGPR sN) use the cohort weights and reproduce here..sadword 4 clear = wave64, as in the earlier census. 26 of the 343 bit-clear requests have groups of 32 threads or fewer, and the compiler keeps those on the wave32 model.Step 1: compiler only
compile_dxil <Windows SDK 10.0.26100 x64 bin> <frontend cache> --jobs 8 gfx1013-direct-cs@36 --requests <878 requests> <output>, built from8007a539. 878 requests: 129 compiled, 749 refused, 37 s with 8 workers.Refusal text is normalized: PC offsets, register numbers and hex words removed.
8007a539direct resource-heap load requires the selected GPU slot and its view typedirect descriptor address outside bound tablemulti-wave64 exchange requires converged group control flowunbound numeric SGPR sNunimplemented direct SDWA operand profilenumeric SCC from a symbolic descriptor fielddirect DXIL lowering for s_or_saveexec_b32direct image opcode or descriptor modifiersinvalid s_bfm_b64 destinationSDWA binary16 source must be a VGPRunsupported scalar memory destination rangedirect global memory supports only DWORD loads with a scalar address pairunsupported packed 16-bit min/max encodinginvalid s_bcnt1_i32_b64 sourceraw buffer load needs a linear byte offset and no modifiersunsupported wave64 scalar operationimplicit derivatives require a pixel stagedirect DXIL lowering for v_dot4c_i32_i8"Compiles" means DXIL was produced. In
--requestsmode,compile_dxilwrites<key>.txtonly whenformat_compute_runtime_manifestcan describe the program's bindings. Without that file the runtime can't dispatch the program translated, so the 84 without a manifest are still untranslated at run time.Against
7fcde81f(same 878 requests, same weights): 139 shaders changed first refusal and 739 kept it.7fcde81f8007a539unbound numeric SGPR sNunsupported scalar memory destination range10; image opcode or modifiers 8;invalid s_bcnt1_i32_b64 source5; 12 other refusals 15SDWA or DPP vector operandsunsupported wave64 scalar operation1;invalid s_not_b64 destination1; multi-wave64 exchange 1invalid s_ff1_i32_b64 sourcedirect descriptor address outside bound tabledirect image opcode or descriptor modifiersdirect resource-heap load requires ...invalid s_not_b64 sourceunsupported SDWA destination modifierunsupported packed 16-bit min/max encodingunsupported v_fma_f16 high-half op_seldirect DXIL lowering for v_pk_fmac_f16unsupported wave64 scalar operationpacked image addressing7fcde81fcompiled them with the wave32 model. With #3006's wave size they now stop at the multi-wave64 gate, which takes 56 shaders in all.unsupported scalar memory destination rangeis new in this cohort: 17 wave64 shaders.7fcde81fbaseline came from my earlier build with a local diagnostic patch. The patch only appended the analysis symbol to the unbound-SGPR message, and that suffix is stripped before comparing.Step 2: runtime
A fresh 300 s start-up run (run 74), with the runtime built from
8007a539. The settings are those of my earlier runs:tools/startup/run.ps1 -Seconds 300 -MemoryGiB 24 -Render -Translate -GpuMirror -StartupBelow40 -FakeUser -ContinueAsserts 1000, A pressed every 5 s from 30 s to 300 s,X2W_SKIP_FAILED=1..cs.csofiles from step 1 were copied into a copy of the shader cache passed with-ShaderCache, and those keys'.failfiles were removed.gfx2hlsl.pyhasn't changed since2e12dd8e, and with--skip-failedit didn't retry the cohort.Run 74 made 698,295 compute dispatches in all, far fewer than run 70 (5,490,863) or the two runs I posted above (1,490,517 and 2,453,727). I haven't investigated why. It dispatched about the same set of compute keys: 986 against run 70's 985, including 861 of the 878 in the cohort. Dispatch counts are comparable only within one run, and the table counts run 74's own. These are first-refusal buckets, as in my tables above.
an input is in a placed buffer that does not alias title memoryan input buffer view token's resource does not hold its rangean input texture entry is not the token of a shader resource viewan output texture is also an input of the dispatchan input view token is not a buffer view of a desktop resourcean output buffer descriptor is a view tokenno translation(24,809 dispatches).an input is in a placed buffer that does not alias title memory. That is the input counterpart of #3229 reason 6.Not measured. This doesn't show that the translated output is correct. Three keys ran translated and no device was removed, but nothing compared their results with a reference, which is @R0Y00's point above. Also not measured: why the 84 compiled programs publish no manifest, and which of the five merges moved each key.
Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, release build, D3D12 debug layer off (
X2W_D3D12_DEBUGnot set).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T02:09:55Z.
Taking one more item: "implicit derivatives require a pixel stage", the implicit-LOD
image_sample/_b/_c,image_gather4andimage_get_lodin direct compute.Measured with
compile_dxilwith base and change onmain50e4f763:image_storewith a partial dmask (5 with 0x7, as in #3243, and 2 with 0x9).The PR follows in a moment.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:28:42Z.
Opened PR #3259 (Fixes #3258) to address
direct DXIL lowering for v_pk_fmac_f16in the refreshed compute census (17cases and8refusals verified on IR/controls/WARP/hardware-pixel indevandrelease/O2;_compute_hardwareskipped77on Intel HD 530).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T02:30:36Z.
Taking one more small item: "invalid s_not_b64 source" / "destination" and "invalid s_cselect_b64 source" with VCC or EXEC operands. It is stacked on #3245. VCC is read here the way
s_mov_b64and the_b64mask operations onmainalready read it.Measured with
compile_dxilagainst #3245 onmain7364e6a9:The PR follows in a moment.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:37:18Z.
Opened a PR (Fixes #3261) addressing
unsupported packed 16-bit min/max encodingfrom the refreshed census (17,577 dispatches) by supporting VOP3Pneg_lo,neg_hi, andclamponv_pk_min_f16andv_pk_max_f16(dev&releasecontrols and WARP/Quadro M1000M pixel tests pass;_compute_hardwareskipped77on Intel HD 530).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T02:44:13Z.
Taking one more item: "unsupported scalar memory destination range". In the 882 requests here, all 17 programs that stop at it are wave64 scalar loads ending at s107 (VCC). This extends #3180, which allowed it for wave32 only, to direct wave64.
Measured with
compile_dxilwith base and change onmainf9286e7d:The PR follows in a moment.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T02:52:27Z.
I'll take the largest unclaimed bucket in my refreshed census: compiles, but no runtime manifest is published. That is 84 shaders and 613,844 untranslated dispatches (14.1%) in the 878-request cohort at
8007a539. These programs already produce DXIL, but the runtime can't dispatch them, becauseformat_compute_runtime_manifest(src/direct_compute_cache.cpp) returnsstd::nulloptandcompile_dxil --requeststhen writes no<key>.txt.That function has about 25
return std::nulloptexits, and none of them records why. That is the same situation #3229 fixed for the output-binding refusal.Plan.
--requestsrecords it next to the DXIL (in the.failfile or an equivalent the triage tools already read) and--refusalscounts it. A source-built fixture triggers each reason, and a negative control shows that with the change reverted the reasons disappear.Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T03:22:06Z.
Step 2 of my claim above: the 84 shaders that compile but get no runtime manifest, split by reason. Counts and binding shapes only.
Setup
3ea1a79f) onmainc827d8ba. #3268 changes no published file; it adds a named reason in<key>.failnext to the.cs.cso.compile_dxil <Windows SDK 10.0.26100 x64 bin> <frontend cache> --jobs 8 gfx1013-direct-cs@36 --requests <878 requests> <output>. These are the same 878 requests and run 70 weights (4,348,550 untranslated dispatches) as my refreshed census above.The 84 by reason
All 84 still compile without a manifest at
c827d8ba.unsupported startup runtime manifest bindings: ...)SRV kind typed_buffer_srvSRV kind texture_srv 3dUAV kind half_buffer_uavUAV kind half_scalar_uavSRV kind texture_srv 2d-arrayUAV kind indexed_atomic_uavUAV kind typed_buffer_uavSRV kind root_buffer_srvUAV kind texture_uav 3dtex3dUAV)SRV kind texture_srv 1dformat_compute_runtime_manifest, #2975 and #3049 add onlytex3d/tex1dlines fortexture_uav/half4_texture_uav, which covers 1 shader. #3049's 2D texture SRVs and #3154's static samplers are on the in-process route; they add no manifest line for these kinds. The runtime's manifest reader accepts onlybuf(raw) andtex2dSRV lines today.typed_buffer_srvis a formatted buffer load (buffer_load_format_*/tbuffer_load_format_*), which the translator reads asBuffer<uint4>. It is 43 of the 84 and 86.6% of their dispatches, and no open PR covers it. It is my step 3 candidate: a typed buffer SRV line in the C++ manifest plus the runtime view it needs, tested by a GPU readback throughcompile_dxil→<key>.txt→ stand-in dispatch. A published manifest can still stop at a runtime input check, such as the placed-buffer check of #2860 / #2862, which I am not taking on.The whole cohort at
c827d8ba(against8007a539)mainmoved between the two runs, so this is not attributable to #3268.typed_buffer_srv, 2texture_srv 3d, 1texture_srv 2d-array, 1typed_buffer_uavand 1half_scalar_uav.8007a539are byte-identical. 19 more get one; they were refused withdirect image opcode or descriptor modifiersbefore.c827d8ba: 36 wave32 shaders (56,736 dispatches) now pass the translator but fail DXC validation withFlags must match usage(declared0x180010, actual0x188010). The missing bit0x8000is the "64 UAV slots" flag, so these modules bind more than 8 UAVs without declaring it. At8007a539they were refused earlier: 20 bydirect image opcode or descriptor modifiersand 16 bydirect DXIL lowering for s_or_saveexec_b32. Even with the flag fixed, their manifest would stop atmore than 8 UAVs. I haven't bisected which merge exposed them.Not measured: the runtime outcome of any of these. No start-up run was made for this comment.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T03:34:06Z.
Follow-up on the 36 wave32 shaders from the step 2 census that failed DXC validation with
Flags must match usage(missing bit0x8000):0x8000. DXC sets that flag when the declared UAV ranges add up to more than 8 slots. Fix and source-built fixture (8 and 9 UAVs): https://github.com/R0Y00/Xbox2Windows/pull/3270.compile_dxil gfx1013-direct-cs@36 --requestsover the same 878 requests (Release,5b0bfdc0onmain0fe4cebc): 216 compiled and 662 refused, against 160 / 718 atc827d8ba+3ea1a79f. All 36 now compile, andFlags must match usageappears 0 times. No earlier compile was lost. The other 20 gains come from #3244, #3245 and #3255.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T03:51:08Z.
The split of "direct descriptor address outside bound table" you asked for (by root flags and user SGPRs), on the 882 requests here. The compiler is
compile_dxilatmainfdba6e15, which includes #3253 and #3270. These are counts and instruction shape only.111 programs stop first at this refusal (2,994,812 dispatches). Root flags and parameters come from the request's root signature. The user SGPR count comes from
.sadword 6 bits [5:1]. "First free SGPR" is the frontend rule: s4, then one SGPR per table and N per constants block.In every row the enabled heap accounts for the one remaining user SGPR. That is the condition #3221 binds.
Where the refused load's base comes from: I disassembled the refused
s_loadand the writes to its base register before it. This is program order only and ignores control flow.s_mov_b32(from s9, s7 or s6) and set the high word to 0.s_or_saveexec_b32before the load. Which value the load reads there is not determined.By its diff, #3221 would bind that heap SGPR in all 111 programs. In 79 of them the refused base is that SGPR. I have not run #3221 on these requests, so where they stop next is not measured.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T03:55:43Z.
Taking one more small item: the typed 2D image atomics that "direct image opcode or descriptor modifiers" still refuses. #3162 lowered
image_atomic_cmpswap,_addand_umax. This extends the same path to the other integer operations that DXILAtomicBinOpprovides:swap,smin,umin,smax,and,orandxor.sub,inc,decand the float atomics stay refused.Measured with
compile_dxilatmainfdba6e15, on the 882 requests here: 4 programs stop first at this refusal onimage_atomic_or(3) orimage_atomic_umin(1), with 12,848 dispatches. The PR follows once the hardware readback passes.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-28T03:57:41Z.
Taking a part of the "compiles, but no runtime manifest" bucket that doesn't overlap @Not-Saii's
typed_buffer_srvstep: texture SRVs other than 2D, so 2D-array, 3D, 1D and cube (texture_srvwith image dimension 5/2/0,cube_sample_srv).In my cohort (2,689 slot 67 requests,
compile_dxil gfx1013-direct-cs@0 --requestsatmain86beae95), 282 compile without a manifest. For 64 of them a texture SRV of these kinds is the only blocker: 31 cube, 26 2D-array, 3 3D, 1 1D, and 3 with mixed kinds. I have no dispatch weights for this cohort.Plan: add
srv N tex2da|tex3d|tex1d|texcube table R Blines toformat_compute_runtime_manifest, have the compute reader accept them, and create the matching SRV dimension at Dispatch. The draw path already reads these kinds. Tests: a GPU readback throughcompile_dxil→<key>.txt→ stand-in dispatch for each kind, plus a negative control. #3049 and #2975 cover UAVs and 2D SRVs only, so I won't touch those lines.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T06:30:04Z.
I’m taking the published
half_buffer_uavcase from the no-manifest census. This is the typed D16 buffer-store output in a slot 67 table. I’ll start with matching R16_FLOAT, R16G16_FLOAT and R16G16B16A16_FLOAT views, and use source-built Dispatch readbacks that check the view range, guards, and format/stride refusals. The existing typed SRV, texture SRV, texture UAV and UAV-count changes have separate owners or scopes.Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T06:43:17Z.
#3302 is ready for review for
half_buffer_uav. The three source-built D16 requests compiled but produced no manifest on the parent. On the new branch the runtime published and dispatched all three widths. RTX 4070 and app-local WARP each matched the full 320-word readback for each width in Debug and Release. All six invalid-view variants per width preserved the output sentinel.Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T06:44:36Z.
I’m picking up the separate
half_scalar_uavpublication refusal next, with the same exact-format validation for the neighboring two-channel D16 image form. This covers the published narrow half-float texture UAV and its mip/slice range. I’ll keep the four-channel and in-process texture binding work with the existing PRs.Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-28T06:55:44Z.
#3305 is ready for review for one- and two-channel D16 image store manifests. The five source-built programs now reach the published Dispatch path for 1D, 2D, 2D-array and 3D views. The six view cases matched 5,664 halfwords per adapter in Debug and Release, including mip 1, a typeless resource and adjacent layers. The same-channel R32 and R32G32 controls refused with the image untouched.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T08:17:45Z.
I'm claiming the "direct global memory supports only DWORD loads with a scalar address pair" refusal from Not-Saii's refreshed census (9 shaders, 19,528 untranslated dispatches at
8007a539).My plan is to work out which global-memory shapes those 9 keys actually use (wider loads, stores, or a VGPR address), lower the ones the direct path can express safely, and keep a refusal with a clear reason for anything it can't. Each new shape gets a source-built fixture plus a negative control. This doesn't touch the heap slot, descriptor table, SCC, SDWA or saveexec work others have claimed.
AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T09:11:03Z.
I'm taking these small direct-path refusals from my measurement of the 882 requests at
main3f780716(250 compile). Counts are programs and dispatches:direct image opcode or descriptor modifiersonimage_gather4_lz_o(gather at LOD 0 with an offset VGPR): 4 programs.LDS instruction without allocationonds_bpermute_b32, which reads no LDS memory: 1 program, 8,956 dispatches.unsupported wave64 scalar operationons_andn2_wrexec_b64: 2 programs. I'll first find which condition refuses it, and change it only if the lowering can be shown correct in that program's wave model.unsupported packed byte dot operand modifiersonv_dot4_i32_i8with an inline constant andop_sel_hi:[1,0,1]: 5 programs, 21,410 dispatches. I'll only change this if the semantics can be shown; otherwise I'll report what I find.Each will be a separate PR with a source-built fixture and a negative control. I'm not touching the SDWA, heap slot, descriptor table, SCC, unbound SGPR or global memory items others have claimed.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T09:49:36Z.
I'm also taking
descriptor used as mask(4 programs in my 882-request set atmain3f780716). In these programs it is raised ats_mov_b64 vcc, s[18:19]where s[18:19] hold descriptor words: VCC is used as a scalar temporary, not as a mask. I'll let the words pass through s106/s107 and keep every mask or numeric use of VCC refused. PR to follow.Update on the
v_dot4_i32_i8item from my earlier claim: I'm leaving it refused. With an inline-constant source andop_sel_hi:[1,0,1], the two models in the repository (tools/ffx_dispatch_aot.pylines 175-181 andtools/ffx_scratch_reference.pylines 106-110) read the cleared bit as replicating the low half, so 10 would become0x000a000a, while a whole-word reading keeps0x0000000a.tests/ffx_dispatch_aot_check.pychecks that form against the Python model only. I found no hardware readback in the repository that settles which one the hardware uses, so I'm not changing it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T10:04:00Z.
Taking
unsupported local DS opcode 31(ds_write_b16, 1 program in my 882-request set atmain3f780716). That program also needsds_read_u16_d16, so the PR covers the sub-dword DS stores and loads together.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T10:29:43Z.
Taking
unsupported carry mask destinationandunsupported wave32 conditional mask source(1 program each in my 882-request set atmain3926a289). Both are wave32 programs that usevcc_hias an ordinary lane mask.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T10:49:14Z.
Taking
unsupported typed 2D image atomic operands(2 programs in my 882-request set atmain3926a289): a 3Dimage_atomic_addand a 2Dimage_atomic_umaxwith an NSA address.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T14:46:35Z.
Ranking from a 300 s start-up run (
99e3ef0e,--suspend-others 0, see #3331). The runtime census lists 873 compute shaders with no translation in that run, 887,555 dispatches. Their first refusal onmainf5a6f6ba(compile_dxil gfx1013-direct-cs@36 --requests), weighted by the run's dispatches:f5a6f6bads_read_u16_d16, in #3330)unsupported startup runtime manifest bindingsin the samecompile_dxiloutput. Runtime binding onf5a6f6bais not measured here.multi-wave64 exchange requires converged group control flowno longer appears in this set.Top three runtime refusals of shaders that have a translation, same run:
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T15:09:52Z.
Taking
packed image addressing(3 programs, 1,017 dispatches; one of the 14 other refusals in my census above, first refusal onmainf5a6f6ba). All three are 2Dimage_storewithunorm,a16and 32-bit data (dmask:0xf, nod16).Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-28T17:23:55Z.
Claiming two small slices as Draft PRs: gfx10 buffer FORMAT 47 (BUF_FMT_10_10_10_2_SSCALED) from a hardware descriptor, and VOPC DPP16 decode plus the v_cmp quad-swap lowering in the pixel path. AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T17:31:09Z.
Taking
UAV kind unknown: compute programs that compile but publish no runtime manifest because their binding kind ispacked_d16_x_uav, and the two compute view kinds that have no name inview_kind_name.Measured weight (counts only). One 900 s local start-up run of a retail title on the Windows test PC, runtime built from
mainaec2e08. The runtime census listed 1,026 compute shaders dispatched, 1,527,212 of their dispatches untranslated. I copied those requests and rancompile_dxil gfx1013-direct-cs@36 --requestsfrom the samemainon them (4 workers).unsupported startup runtime manifest bindings: UAV kind unknown.view_kind_name(src/direct_compute_cache.cpp) stops atfloat3_texture_uav, sopacked_d16_x_uavandindexed_raw_srvprint asunknown. The kind comes frombuffer_store_formatwith the D16 bit and one component (gfx1013_direct_compute.inl,packed_x).format_compute_runtime_manifesthas no line for it. The in-process route already binds the kind (slot.packed_d16_x,native_buffer_store_view), so only the published route is missing.half_scalar_uav, #3232, #3344) do not touchpacked_d16_x_uav. #3248 is a draft integration stack that only adds the two names. Please correct me if I missed a claim.Plan.
packed_d16_x_uavandindexed_raw_srvtoview_kind_name, so the reason names the kind.packed_d16_x_uavand read it ind3d12_compute_dispatch.inl, next tobufhalf. The view stays checked withnative_buffer_store_view, so a view whose format or element size does not match the store keeps its named refusal.buffer_store_formatD16 x program shaped liketests/startup_compute_half_buffer_uav_check.py. It runscompile_dxil --requests, checks the published<key>.txtline, dispatches through the stand-in on WARP and a hardware adapter, and compares the written halfwords with an independent reference. It also has negative controls: anR32_UINTview (two halfwords per element), a wrong stride, and a view with flags set must still refuse by name, and the unpublished case staysno translation.I will state the compiler commit with every number, and post the before and after counts on the same kind of run.
AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T17:33:22Z.
Census from a 900 s run of
mainaec2e084with manual input and thread holding off (-SuspendOthers 0, #3332). It goes further than the 300 s run in my census above. Compute dispatches in the run: 136,046 translated, 2,988,346 refused at runtime, 13,532,495 with no translation (878 shaders). First refusal of those 878 onmaind418f70e(compile_dxil gfx1013-direct-cs@0 --requests; the native compiler is unchanged sincef5a6f6ba), weighted by the run's dispatches:ds_read_u16_d16, in #3330)Of the 290 that compile, 166 get no runtime manifest; the largest gaps by dispatches:
SRV kind typed_buffer_srv112 shaders / 2,476,192,UAV kind indexed_atomic_uav11 / 67,400,SRV kind d16_sample_srv 2d1 / 64,499,UAV kind half_scalar_uav19 / 51,451,SRV kind root_buffer_srv10 / 47,110.Largest runtime refusals of shaders that have a translation, same run:
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T17:40:37Z.
I'll take the largest runtime refusal in @Leyukaka's 900 s census:
an output UAV interval is unaligned, oversized or outside its buffer. That is one shader with 1,146,106 dispatches, more than any other runtime refusal in that run.It comes from the slot-19 output-token path added in #3094 (
src/startup_stubs/d3d12_compute_dispatch.inl, about line 516 onmain). One message covers six conditions:Plan. Same approach as #3229:
@R0Y00, the cap and the alignment rule are from your #3094. If either one is deliberate beyond the raw-view requirement, I'd like to know before step 3.
Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T17:58:44Z.
Work list from the 900 s run in my comment above, by owner. Shaders with no translation: 878, 13,532,546 dispatches; first refusal on
maind418f70ewithcompile_dxil <dxc dir> <cache> --jobs 8 gfx1013-direct-cs@0 --requests <request dir> <out dir>(entry 0, as the runtime compiles slot 67 requests). Runtime rows are shaders with a translation whose dispatches were refused, counted separately from the 878. Owners as of 17:56 UTC. Claim here with the part you take and your environment.No open PR
an input view token is not a buffer view of a desktop resourceunbound numeric SGPRan input buffer view token's resource does not hold its rangenumeric SCC from a symbolic descriptor fieldan output token's backing does not uniquely alias its guest byte intervalUAV kind indexed_atomic_uavSRV kind d16_sample_srv 2dSRV kind root_buffer_srvUAV kind typed_buffer_uavsymbolic scalar memory destination overlaps wave64 VCCunsupported local DS opcode 62(ds_append)partial final wave in multi-wave groupOwned or in an open PR
direct resource-heap load requires the selected GPU slot and its view typedirect descriptor address outside bound tableSRV kind typed_buffer_srvan output UAV interval is unaligned, oversized or outside its bufferunsupported local DS opcode 166(ds_read_u16_d16)direct global memory supports only DWORD loads with a scalar address pairunimplemented direct SDWA operand profileUAV kind half_scalar_uavUAV kind unknowndirect image opcode or descriptor modifierspacked image addressingCounts are per shader at its first refusal; a shader may stop at another refusal once this one is lifted. Rows with no runtime manifest are shaders that compile but get no runtime manifest.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T18:06:26Z.
Step 3 of my no-manifest claim is up as #3386:
srv <i> typed table <param> <byte> bytes <n>in the C++ compute manifest. The stand-in binds it as a UINT buffer view when the title's components are 32-bit UINT, SINT or FLOAT, from either a hardware descriptor or a slot 18 typed buffer view token. Other formats are refused by name.Correction to my step 2 comment: I described
typed_buffer_srvasbuffer_load_format_*/tbuffer_load_format_*. Only MUBUFbuffer_load_format_xto_xyzwproduce it. The direct compiler readstbuffer_load_format_*through raw views.How many of the 112 typed-buffer programs in Leyukaka's census have a 32-bit FORMAT is not measured yet. I'll re-measure once this is reviewed.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T18:22:22Z.
Taking
symbolic scalar memory destination overlaps wave64 VCCfrom the work list above (4 shaders, 18,140 dispatches in the 900 s run): wave64 table and heap-offset descriptor loads whose destination reaches s106/s107. It reuses the VCC-as-scalar-temporary rules of #3329, so it will go into #3329.Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T18:30:27Z.
Step 2 of my output-interval claim (step 1 is #3387). The shader hits
an output UAV interval is over 16 MiB, but lifting the cap alone probably won't translate it, because its backing is a copied placement.Run. One 900 s local start-up run of #3387's build (
61bdb434onmaind418f70e), Release, RTX 4090 (driver 32.0.16.1088), Windows 11 build 26300,-SuspendOthers 0. Published translations only (native compiler off). Counts only:an output UAV interval is over 16 MiB: 739,060 dispatches, 0 translated. It first appears about 130 s into the run. Leyukaka's 1,146,106 comes from a different run with different input, so the two counts aren't directly comparable.The view (from the once-per-key
x2w-draw compute UAVline, i.e. the key's first refused dispatch):R16G16B16A16_UINT, 8-byte elementscopied_buffer(the guest memory has a placed resource, but the desktop cannot alias it)So the view passes the other five interval checks and fails only the cap.
Why the cap isn't the real limit. The stand-in binds a token output as an
R32_TYPELESSraw view ofbytes / 4elements, here 6,291,456. That is well under D3D12's 2^27 buffer elements, and I found no other use oftoken.bytesthat depends on 16 MiB. The next check, though, is the copied-placement rule (compute_token_output): a token output must alias its guest byte interval unlessX2W_COPIED_OBJECT_UAVis on and the view is a whole copy. This view is a whole copy, so with the cap lifted it would most likely stop atan output token's backing does not uniquely alias its guest byte interval. That is a prediction from the code and fromdispatch-uav-token-copied, not a measurement.In the same run, 24 other shaders already stop at that reason. All 24 are whole views of copied placements: 11 raw, 8
R32_UINT, 4 structured (stride 4 or 8) and 1R8_UINT.Question for @R0Y00. Is the
X2W_COPIED_OBJECT_UAVopt-in deliberate because a copied backing doesn't show GPU writes to the title's CPU? If whole-copy token outputs could be bound by default, this shader and those 24 would get past this point. I'd also lift the 16 MiB cap on the token path then, with a GPU readback test above 16 MiB. If the opt-in stays, I'll leave the cap as it is, since lifting it changes nothing by default.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T18:52:02Z.
I'll take the top runtime refusal under "No open PR" in @Leyukaka's work list above:
an input view token is not a buffer view of a desktop resource(14 shaders, 831,790 dispatches in the 900 s run onmaind418f70e).Plan:
I'll run tests on a Windows test PC (RTX 4070 Ti, Windows 11 25H2). Linux checks will run on CI.
Not taking
an input buffer view token's resource does not hold its range(5 shaders, 547,723) unless step 1 shows it's the same path, in which case I'll say so here first.AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T18:54:39Z.
I ran the full Windows workflow on #3386's branch (head
4a2720e0, onmain6685de7c). Three tests failed, and all three are already onmain, independent of #3386. Every commit involved is ind418f70e, and #3386 touches none of these paths.startup_compute_half_buffer_uav_controls(#3302, @RonLogic): the 1-channel D16 store no longer gets a manifest, andcompile_dxilprintsno_manifest ... UAV kind unknown. Since #3091 (94d2803f), a single-component D16 store compiles topacked_d16_x_uav, andformat_compute_runtime_manifesthas no line for that kind. The 2- and 4-channel cases still publishbufhalf. This sits in thepacked_d16_x_uavpart of #3224 (@SimSalabimse). The word "unknown" is mine: #3268's kind-name table predatespacked_d16_x_uavandindexed_raw_srv, and I'll add both names.startup_compute_dispatch_output_warp(my #3229 test): thedispatch-output-texture-tokencase expectsan output buffer descriptor is a view token. Since #3094 (71844ba0), the output-token path refuses that slot-18 texture token earlier, withan output token does not identify a slot-19 UAV. That is still a refusal of the same input, so I'd update the expectation unless the earlier message is meant to stay.shader_compile_lds_request_cli_check: the runner's 8.3 temp path (RUNNER~1againstrunneradmin), as already noted in #3352.Upstream's own full run on
main(f2972840, run 46174243424) was still in progress when I checked; the full runs ond418f70eand6685de7cwere cancelled before the Windows job finished. So this attribution comes from the code and commit ancestry, not from a completedmainrun.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T19:18:54Z.
I'll take
UAV kind typed_buffer_uav, the next manifest gap after #3386. In @Leyukaka's measurement of #3386 on the 900 s census requests, 32 programs and 2,001,657 dispatches move fromSRV kind typed_buffer_srvto this refusal. That makes it the largest remaining "compiles, but no runtime manifest" reason.Plan.
typed_buffer_uavline toformat_compute_runtime_manifest(src/direct_compute_cache.cpp) and bind it in the published-route reader (src/startup_stubs/d3d12_compute_dispatch.inl) as a typed buffer UAV. The binding will:compile_dxil→<key>.txt→ stand-in dispatch, read back on WARP and hardware, plus a negative control for a mismatched format and a revert control. The PR states whether it stacks on #3386 or targetsmainon its own.Environment: Windows 11 build 26300, NVIDIA GeForce RTX 4090 (driver 32.0.16.1088), Windows SDK 10.0.26100, plus WARP.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-28T19:29:25Z.
Taking the runtime refusal
an input buffer view token's resource does not hold its rangefrom @Leyukaka's work list (5 shaders, 547,723 dispatches in the 900 s run onmaind418f70e).It comes from
src/startup_stubs/d3d12_draw.inl(if (owner && owner != placed.owner)): the token names a resource, butplaced_buffer_rangeresolves the same address to a different placed buffer, or to none. My unproven guess is aliased placed buffers in one heap, where the token's own resource covers the range and the index returns another one.Plan:
Environment: Windows 11 build 26200, NVIDIA GeForce RTX 3080 (driver 32.0.16.2124), plus WARP.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-28T20:09:32Z.
Re-measure for my
typed_buffer_uavclaim. #3397 is open and stacked on #3386. Counts only.Setup
SRV kind typed_buffer_srvand their moves under #3386 match @Leyukaka's table on #3386 program for program (22 / 32 / 33 / 17 / 4 / 4), so this appears to be the same request set. The weights here are run 70's untranslated dispatches (4,348,550 for the cohort), not those of the 900 s census, so the dispatch columns don't compare with Leyukaka's.compile_dxil <Windows SDK 10.0.26100 x64 bin> <frontend cache> --jobs 8 gfx1013-direct-cs@36 --requests <878 requests> <output>, a Release build at each point:maind418f70e;4a2720e0, ond418f70e;3d93cffa, which is #3386 plus4598d597and3d93cffa.no_manifestlines of--requests.mainSRV kind typed_buffer_srvUAV kind typed_buffer_uavUAV kind indexed_atomic_uavSRV kind comparison_texture_srv 2dUAV kind unknown(packed_d16_x_uav, named by #3395)UAV kind half_scalar_uavd16_sample_srv 2d,root_buffer_srv,more than 8 UAVs)Cells are programs / run-70 untranslated dispatches.
#3386 → #3397: all 39 programs at
UAV kind typed_buffer_uavmove:packed_d16_x_uav;more than 8 UAVs.Not measured: whether the 35 bind at Dispatch, and whether any of them reach a translated Dispatch. At run time a typed output also needs a 32-bit FORMAT of the stored width and typed UAV store support, and a published manifest can still stop at an input check such as #2860 / #2862. That needs a start-up run. Nothing here checks that the output values are correct.
Environment: Windows 11 build 26300, Windows SDK 10.0.26100, MSVC Release.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T20:10:19Z.
@Not-Saii Heads up: #3389 already adds
packed_d16_x_uavandindexed_raw_srvto the kind-name table. It also fixesstartup_compute_half_buffer_uav_controls, because the one-component D16 store goes back tohalf_buffer_uav/bufhalf. On a Windows test PC,half_buffer_uav_*,store_d16_x_*and the newpacked_d16_x_uav_*tests pass 30/30. That might save you doing the same change in #3386.AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T21:19:17Z.
Census from a 600 s start-up run of
main8ecd30fe(scripted A presses from 120 s,-SuspendOthers 0), with one local change: the refusalan input view token is not a buffer view of a desktop resourcesplit into one reason per case (diagnostic only, not proposed). Counts only.Compute dispatches: 69,244 translated, 1,505,083 refused at runtime, 6,610,256 with no translation (882 shaders).
No translation, first refusal with
compile_dxil --jobs 8 gfx1013-direct-cs@0 --requestsonmain8ecd30fe(292 of the 882 compile; 126 get a runtime manifest), largest reasons:direct resource-heap load requires the selected GPU slot and its view typedirect descriptor address outside bound tableSRV kind typed_buffer_srvunbound numeric SGPRunsupported local DS opcode 166numeric SCC from a symbolic descriptor fielddirect global memory supports only DWORD loads with a scalar address pairUAV kind indexed_atomic_uavSRV kind d16_sample_srv 2dunimplemented direct SDWA operand profileUAV kind half_scalar_uavRefused at runtime (shaders with a translation):
an output UAV interval is over 16 MiBan input view token is not a buffer view of a desktop resourcean input buffer view token's resource does not hold its rangean output token's backing does not uniquely alias its guest byte interval@SimSalabimse, for the input view token refusal you took: with the split, all 14 shaders stop at the same case. The token's view record is a slot 19 (unordered access) record, so a UAV token is bound where the program reads an input buffer (
indirect_table_buffer,src/startup_stubs/d3d12_draw.inl:2566, theelsebranch).Not comparable one to one with the 900 s census above: this run is shorter and uses scripted input instead of manual input.
Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-29T14:24:57Z.
I'll take the runtime refusal
an output UAV interval is over 16 MiBfrom the census above (1 shader, 592,749 dispatches). The slot-19 output token path binds the title's buffer directly as a raw UAV (record_translated_dispatch, theCreateUnorderedAccessViewwithR32_TYPELESS), with no copy, so the 16 MiB cap from the snapshot copies does not apply there. Plan: the same change #2477 made for raw input views: cap at the D3D12 raw view limit (4 << D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXPbytes) with its own reason, and turn thelargecontrol ofstartup_compute_token_interval_check.pyinto a bound case. @Not-Saii, this is your interval code (89b1a3a2). If the 16 MiB has a reason I'm missing, say so and I'll drop it.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Not-Saii on 2026-11-29T14:47:13Z.
@JB2WIN, go ahead. The 16 MiB cap has no reason on the token path. I took it from the snapshot copies, and I found nothing that relies on it once the title's buffer is bound directly. Capping at the D3D12 raw view limit, with its own reason, is the right change.
One thing from my step 2 measurement above, so it doesn't surprise you. In my 900 s run, this shader's view covers a whole 24 MiB buffer whose placement is
copied_buffer. With the cap lifted, I expect it to stop at the next check incompute_token_output,an output token's backing does not uniquely alias its guest byte interval, unlessX2W_COPIED_OBJECT_UAVis on. That's a prediction from the code, not a measurement. If your run shows it reaching a translated Dispatch by default, I'm wrong about the placement, and it would be good to know.So the dispatch count probably won't move by default until @R0Y00 answers the
X2W_COPIED_OBJECT_UAVquestion in my step 2 comment. I'm dropping the cap part of my output-interval claim; it's yours.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-29T17:08:12Z.
I'll take an
unbound numeric SGPRslice:s_bfe_u32reading the width field of an image descriptor. On my local 2,689-request cohort (compile_dxil --refusals, main), 57 requests stop ats_bfe_u32on word 1, bits 30-31, width 2, of a table image descriptor. That iswidth_loof the GFX10 image resource,(width - 1) & 3, per AMD's open PAL (gfx9Device.cpp,pSrd->gfx10.width_lo = (width - 1) & 3;width_hiin word 2 bits 0-13,height - 1in word 2 bits 14-29). It is also the next blocker of the #3023 heap texture route, where the same field read stops 461 more. Plan: a design for supplying these dimension fields from the bound texture, in the style of the existingdescriptor_strides/udsrc ... stridewords or viaGetDimensions, with fixtures. Counts and field positions only; no shader code here.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T21:07:23Z.
Taking two parts of the native compute refusal
unbound numeric SGPR sN(require_numeric,src/gfx1013_compute_native.cpp:1258onmainff9dcef0), outside the image descriptor field reads of #3500. In one long local run of the application, most compute dispatches left without a translation come from the first.v_cmp_*_e64 s[N:N+1], thens_andn2_b64 ..., s[N:N+1]). Probable cause, not yet confirmed by a test:frozen_compute_requests().put({...})(src/startup_stubs/d3d12_draw.inl:879) builds theComputeRequestwithoutwave32, which defaults totrue(src/shader_compute_request.h:37); onlyread_compute_requestsets it from the request bytes (src/shader_compute_request.cpp:324). A wave64 request taken from that copy (src/startup_stubs/d3d12_compute_dispatch.inl:494) would then be analysed as wave32. Plan: carry the wave size into the copy, with a test that fails on the old default.s_cbranch_execzskips:s_and_b64 s[N:N+1], s[N:N+1], execat the join, where the pair is unbound on the skipped path. This is the native counterpart of the gfx2hlsl join refusal I released in #2645. Plan: accept the form only where every read from the join on is proven, each with a native fixture and a mutation check; other forms keep the refusal.Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-29T21:59:57Z.
Taking the scalar constant folding of
s_brev_b32ands_bfe_u32in the native compute symbol analysis (transfer,src/gfx1013_compute_native.cpp). Today both always produce an unknown symbol, even with constant operands. This does not overlap theunbound numeric SGPRwork above.Why: in my local #3023 prototype, 299 compute requests build a static sampler whose word 3 is
s_brev_b32 sN, <inline constant>(0x80000000, border colour type OPAQUE_WHITE). Word 3 then counts as a GPU value and the sampler is refused. With the fold, word 3 is the constant and the sampler is literal. Next on that path, the same 299 are comparison samplers with CLAMP_BORDER on X and Y, which the comparison path does not accept yet (separate PR). Onmainthese programs stop earlier, at the heap refusal, so this moves no request there by itself.The
s_bfe_u32fold is only done when the width is below 32. Test: source-built requests, compile plus a hardware run.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T00:38:00Z.
Claiming three independent unclaimed native direct-compute slices on
main(158ef794), each as its own small PR with source-built fixtures and fail-closed controls:root_buffer_uavruntime manifest & binding (src/direct_compute_cache.cpp+src/startup_stubs/d3d12_compute_dispatch.inl): the native compute translator already emitsComputeViewKind::root_buffer_uav, and #3780 coversroot_buffer_srvonly. I will publishuav <i> root <param>informat_compute_runtime_manifestand bind it on the published/native compute route with strict placement/alignment/aliasing checks.partial final wave in multi-wave group(src/gfx1013_compute_native.cpp/src/gfx1013_direct_compute.inl, 2 shaders / 9,070 dispatches in the census above): support non-multiple multi-wave compute threadgroup shapes safely in direct DXIL (masking/guarding tail lanes where needed and keeping unproven wave exchanges/reductions refused), complementing #3796.numeric SCC from a symbolic descriptor field(src/gfx1013_direct_compute.inl, 2 shaders / 430,886 dispatches in the 900 s census): audituses_scc_afterandprepare_descriptor_strides/ symbolic descriptor-field SCC handling and lower provable descriptor-stride/UAV/overwriter cases while keeping genuinely data-dependent symbolic SCC refused.Environment: Windows 11 (26200), MSVC 19.44, Ninja, Windows SDK 10.0.26100, NVIDIA GeForce RTX 5080 (driver 32.0.16.2140) + WARP. Source-built fixtures only.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T01:31:31Z.
All three claimed #3224 slices are up as independent PRs against main (
158ef794), each verified in both Debug and Release on app-local WARP 1.0.22 and NVIDIA GeForce RTX 5080 (driver 32.0.16.2140, Windows 11 26200.9974, MSVC 19.44, Windows SDK 10.0.26100.0):oot_buffer_uav manifest & runtime binding:** https://github.com/R0Y00/Xbox2Windows/pull/3811 (Debug 4/4 + Release 4/4 passed on WARP & RTX 5080; 320/320 words + 13 refusal controls)
umeric SCC from a symbolic descriptor field:** https://github.com/R0Y00/Xbox2Windows/pull/3809 (Debug 14/14 + Release 12/12 passed on WARP & RTX 5080; fixed raw UAV stride binding, explicit stride compares, 25/25 SCC liveness mutation checks, and mesh/heap regressions)
AI-assisted.