tracking: console compute programs (device slot 67) translate and dispatch at run time, checklist of claimable items #2266

Open
opened 2026-11-25 09:15:07 +00:00 by NiiRoZz · 28 comments
NiiRoZz commented 2026-11-25 09:15:07 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T09:15:07Z.


Problem

On main: the compute stage in tools/startup/gfx2hlsl.py (#2182), publishing of translation requests for slot 67 compute pipelines (#2195) and translation of those requests (#2223). Texture UAV forms in the pixel stage translate (#2155) but the runtime binds none. Dispatch (#1974) and compute root state (#1803, #1975) are still open PRs. #1412 describes the whole path and stays the umbrella; #2022 lists translator gaps as lettered items and is not repeated here. This issue only splits the remaining work into items that can be claimed one at a time.

Local observation, not reproducible from this repository (one local run, counts only): 2,689 compute requests were published. 8 translate and compile on main. 90 do with the unmerged lowerings listed below (95 with one more buffer_load_format follow-up). In a window of the run, 874 distinct programs were dispatched (2,019,430 dispatches). The 23 of those that translate with the unmerged lowerings cover 2.24% of dispatches, and every one of the 23 writes a texture through a UAV, so none can be bound by the runtime yet. Shares below are the incremental gain of each step of a greedy cover over the dispatched programs, from that same run; they rank items and are not a prediction.

Proposal

A. Translator lowerings (gfx2hlsl compute stage)

Acceptance for every A item: source-built gfx1013 case + GPU read-back (WARP and hardware) + a pinned negative control that fails when the lowering is off. Refuse what the change does not cover.

  • buffer_store_format_d16_x: 7.8%; owner: unclaimed; check #2022 B first so the two do not overlap
  • buffer store through a modified descriptor (other than the stride clear): 4.4%; owner: NiiRoZz (claimed, no PR yet)
  • TG_SIZE_EN: 1.3%; owner: unclaimed; stays refused until s_and_b32 R, TG, 0xfc0 and v_mbcnt_lo reads are each shown correct on their own
  • execz exec write and scalar handling: 0.5%; owner: in progress by the #2223 author (local branch, PR to follow)
  • buffer_load_format_x/xy/xyz: 0.6%; owner: #2138
  • buffer_store_format_xyzw: 2.2%; owner: #2022 item B (claim there, not here)
  • buffer_load_format_xyzw: 1.6%; owner: NiiRoZz (claimed, no PR yet), depends on #2138
  • v_bfm_b32: 0.6%; owner: #2087
  • image_gather4_lz in compute: 0.6%; owner: done in #2282 (_l merged in #2258, which is the model to follow)
  • s_pack_ll_b32_b16 family: 0.4%; owner: #2086
  • src_scc operand: 0.3%; owner: #1821
  • SDWA v_mov: 0.3%; owner: done in #2286
  • packed VOP3P f16 (v_pk_add_f16): 1.8%; owner: #2081
  • image_store d16 in compute: 0.3%; owner: RavenCurseBurg, #2300 (open)
  • v_sub_co_ci_u32: 0.2%; owner: #2041
  • v_mul_hi_u32: #1747 merged at e06aca8b. Source-built register/literal lowering and FXC/DXC draw evidence in #1747 and #1792.
  • s_load with register offset through the resource heap: largest first refusal by dispatches after buffer_load_format_x; owner: #2066
  • v_readfirstlane proof (loop counter and one-path register are refused as unproven): owner: unclaimed
  • v_mbcnt over a mask, and descriptor operand holds None: owner: RavenCurseBurg, #2290 (open) for the uniform-mask part of v_mbcnt; descriptor operand holds None unclaimed
  • ds_write / LDS in gfx2hlsl: 79,243 dispatches first-refused in the local window; owner: unclaimed (#1541 covers LDS design; #1566 is compute_store_aot only)
  • constants and symbols folded across branch targets (loop headers and forward joins): owner: constants done in #2279 (merged); non-constant symbols NiiRoZz, #2292 (open); negative control: nothing newly translates wrongly

Already open elsewhere and seen in the same ranking, so not duplicated: v_fma_mix_f32 #2055, v_readlane_b32 #2032, DPP forms #2038, s_bfm_b64 #2007, v_add_co_ci_u32 #2033.

B. Runtime (startup stubs)

Acceptance: a source-built fixture on WARP, hardware where it matters, a pinned negative control, and the exact ctest selection in the PR body.

  • Real compute PSO and Dispatch slice from published translations (the slice asked for on #1412); owner: in progress by the #2223 author (local branch); depends on #1974, #1803, #1975 merging first; acceptance: a dispatch writes a UAV and the test reads it back
  • Texture SRVs and static samplers for translated compute programs; owner: in progress by the #2223 author (local branch, stacked on the slice above); acceptance: a dispatch samples a texel; control: a view mismatch refuses with a reason
  • Texture UAVs (owner: in progress by the #2223 author, local branch stacked on the two above): bind uav N tex1d|tex2d|tex2da|tex3d [float] table P O [channels n], refuse UINT/SINT/sRGB for float, refuse more channels than channels n, refuse a dimension mismatch, no UA flag, SRV+UAV on one resource; acceptance: a store lands in the requested mip and mip 0 keeps its sentinel (view-mip control)
  • Pixel-stage UAV binding (reuse the compute helper; load_translation currently refuses any uav line from #2155); acceptance: a texel stored by a draw is read back, with a no-UA-flag control
  • A translated draw samples a compute-written texture; acceptance: the texel is read back from the render target
  • Per-reason refusal census: count every refusal reason per key, not only the last; acceptance: two controls show both reasons with counts; owner: stan495, #2301 (open)
  • Indirect Dispatch through slot 61 for slot-67 pipelines: claim the source-built fixture in #2492. A GPU-written argument record drives two different group counts; fenced UAV readback and the omitted-producer and missing-translation controls are required. Coordinate translated runtime wiring with #2470.
  • Retry a placeholder pipeline when a translation appears later (proposed here, not in the handover); acceptance: a pipeline created before its translation dispatches after it arrives; control: still a no-op while untranslated

Alternatives

One large compute pull request. Rejected: a wrong lowering hides every dispatch that depends on it, so each piece needs its own read-back and negative control.

Verification

Each item carries its own acceptance. Overall state is read from the compute counts in docs/experiments.md once items land. A passing fixture supports the behavior under test only; it does not show that any title starts or runs.

Claiming

Comment with the item text before starting, open one pull request per item, and tick the box when it merges. Percentages and counts come from a local run and may shift as lowerings land.
Last updated 2026-11-25 from claims in the comments and merged pull requests.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6601114613 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274). Originally posted by [NiiRoZz](https://github.com/NiiRoZz) on 2026-11-25T09:15:07Z. --- ## Problem On main: the compute stage in `tools/startup/gfx2hlsl.py` (#2182), publishing of translation requests for slot 67 compute pipelines (#2195) and translation of those requests (#2223). Texture UAV forms in the pixel stage translate (#2155) but the runtime binds none. Dispatch (#1974) and compute root state (#1803, #1975) are still open PRs. #1412 describes the whole path and stays the umbrella; #2022 lists translator gaps as lettered items and is not repeated here. This issue only splits the remaining work into items that can be claimed one at a time. Local observation, not reproducible from this repository (one local run, counts only): 2,689 compute requests were published. 8 translate and compile on main. 90 do with the unmerged lowerings listed below (95 with one more buffer_load_format follow-up). In a window of the run, 874 distinct programs were dispatched (2,019,430 dispatches). The 23 of those that translate with the unmerged lowerings cover 2.24% of dispatches, and every one of the 23 writes a texture through a UAV, so none can be bound by the runtime yet. Shares below are the incremental gain of each step of a greedy cover over the dispatched programs, from that same run; they rank items and are not a prediction. ## Proposal ### A. Translator lowerings (gfx2hlsl compute stage) Acceptance for every A item: source-built gfx1013 case + GPU read-back (WARP and hardware) + a pinned negative control that fails when the lowering is off. Refuse what the change does not cover. - [ ] `buffer_store_format_d16_x`: 7.8%; owner: unclaimed; check #2022 B first so the two do not overlap - [ ] buffer store through a modified descriptor (other than the stride clear): 4.4%; owner: NiiRoZz (claimed, no PR yet) - [ ] `TG_SIZE_EN`: 1.3%; owner: unclaimed; stays refused until `s_and_b32 R, TG, 0xfc0` and `v_mbcnt_lo` reads are each shown correct on their own - [ ] execz exec write and scalar handling: 0.5%; owner: in progress by the #2223 author (local branch, PR to follow) - [ ] `buffer_load_format_x/xy/xyz`: 0.6%; owner: #2138 - [ ] `buffer_store_format_xyzw`: 2.2%; owner: #2022 item B (claim there, not here) - [ ] `buffer_load_format_xyzw`: 1.6%; owner: NiiRoZz (claimed, no PR yet), depends on #2138 - [ ] `v_bfm_b32`: 0.6%; owner: #2087 - [x] `image_gather4_lz` in compute: 0.6%; owner: done in #2282 (`_l` merged in #2258, which is the model to follow) - [ ] `s_pack_ll_b32_b16` family: 0.4%; owner: #2086 - [ ] `src_scc` operand: 0.3%; owner: #1821 - [x] SDWA `v_mov`: 0.3%; owner: done in #2286 - [ ] packed VOP3P f16 (`v_pk_add_f16`): 1.8%; owner: #2081 - [ ] `image_store` d16 in compute: 0.3%; owner: RavenCurseBurg, #2300 (open) - [ ] `v_sub_co_ci_u32`: 0.2%; owner: #2041 - [x] `v_mul_hi_u32`: #1747 merged at `e06aca8b`. Source-built register/literal lowering and FXC/DXC draw evidence in #1747 and #1792. - [ ] `s_load` with register offset through the resource heap: largest first refusal by dispatches after `buffer_load_format_x`; owner: #2066 - [ ] `v_readfirstlane` proof (loop counter and one-path register are refused as unproven): owner: unclaimed - [ ] `v_mbcnt` over a mask, and `descriptor operand holds None`: owner: RavenCurseBurg, #2290 (open) for the uniform-mask part of `v_mbcnt`; `descriptor operand holds None` unclaimed - [ ] `ds_write` / LDS in gfx2hlsl: 79,243 dispatches first-refused in the local window; owner: unclaimed (#1541 covers LDS design; #1566 is `compute_store_aot` only) - [ ] constants and symbols folded across branch targets (loop headers and forward joins): owner: constants done in #2279 (merged); non-constant symbols NiiRoZz, #2292 (open); negative control: nothing newly translates wrongly Already open elsewhere and seen in the same ranking, so not duplicated: `v_fma_mix_f32` #2055, `v_readlane_b32` #2032, DPP forms #2038, `s_bfm_b64` #2007, `v_add_co_ci_u32` #2033. ### B. Runtime (startup stubs) Acceptance: a source-built fixture on WARP, hardware where it matters, a pinned negative control, and the exact `ctest` selection in the PR body. - [ ] Real compute PSO and Dispatch slice from published translations (the slice asked for on #1412); owner: in progress by the #2223 author (local branch); depends on #1974, #1803, #1975 merging first; acceptance: a dispatch writes a UAV and the test reads it back - [ ] Texture SRVs and static samplers for translated compute programs; owner: in progress by the #2223 author (local branch, stacked on the slice above); acceptance: a dispatch samples a texel; control: a view mismatch refuses with a reason - [ ] Texture UAVs (owner: in progress by the #2223 author, local branch stacked on the two above): bind `uav N tex1d|tex2d|tex2da|tex3d [float] table P O [channels n]`, refuse UINT/SINT/sRGB for `float`, refuse more channels than `channels n`, refuse a dimension mismatch, no UA flag, SRV+UAV on one resource; acceptance: a store lands in the requested mip and mip 0 keeps its sentinel (view-mip control) - [ ] Pixel-stage UAV binding (reuse the compute helper; `load_translation` currently refuses any `uav` line from #2155); acceptance: a texel stored by a draw is read back, with a no-UA-flag control - [ ] A translated draw samples a compute-written texture; acceptance: the texel is read back from the render target - [ ] Per-reason refusal census: count every refusal reason per key, not only the last; acceptance: two controls show both reasons with counts; owner: stan495, #2301 (open) - [ ] Indirect Dispatch through slot 61 for slot-67 pipelines: [claim the source-built fixture in #2492](https://github.com/R0Y00/Xbox2Windows/issues/2492). A GPU-written argument record drives two different group counts; fenced UAV readback and the omitted-producer and missing-translation controls are required. Coordinate translated runtime wiring with #2470. - [ ] Retry a placeholder pipeline when a translation appears later (proposed here, not in the handover); acceptance: a pipeline created before its translation dispatches after it arrives; control: still a no-op while untranslated ## Alternatives One large compute pull request. Rejected: a wrong lowering hides every dispatch that depends on it, so each piece needs its own read-back and negative control. ## Verification Each item carries its own acceptance. Overall state is read from the compute counts in `docs/experiments.md` once items land. A passing fixture supports the behavior under test only; it does not show that any title starts or runs. ## Claiming Comment with the item text before starting, open one pull request per item, and tick the box when it merges. Percentages and counts come from a local run and may shift as lowerings land. Last updated 2026-11-25 from claims in the comments and merged pull requests. AI-assisted (Claude Code).
RavenCurseBurg commented 2026-11-25 10:05:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T09:24:04Z.


I'll take A, image_gather4_lz in the startup compute translator (tools/startup/gfx2hlsl.py). The existing pixel handler already checks a constant clamp-to-edge sampler and a one-hot component. I'll exercise that profile from a source-built gfx1013 compute program with a raw output buffer, then compare all four returned texels on WARP and a GeForce RTX 4060. I'll use a nonzero first view mip and distinct values per channel and tap so an absolute-mip or gather-order mistake yields a specific readback mismatch. This uses the standalone compute fixture and can be tested before the runtime texture-binding work in B lands.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7158279156 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7158279156). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T09:24:04Z. --- I'll take A, `image_gather4_lz` in the startup compute translator (`tools/startup/gfx2hlsl.py`). The existing pixel handler already checks a constant clamp-to-edge sampler and a one-hot component. I'll exercise that profile from a source-built gfx1013 compute program with a raw output buffer, then compare all four returned texels on WARP and a GeForce RTX 4060. I'll use a nonzero first view mip and distinct values per channel and tap so an absolute-mip or gather-order mistake yields a specific readback mismatch. This uses the standalone compute fixture and can be tested before the runtime texture-binding work in B lands.
NiiRoZz commented 2026-11-25 10:05:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T09:48:55Z.


Claiming three A items, one pull request each:

  • SDWA v_mov in tools/startup/gfx2hlsl.py: source-built gfx1013 case, read-back, and a negative control that fails with the lowering off. Other SDWA forms stay refused.
  • Buffer store through a modified descriptor (other than the stride clear): first a list of which word changes are covered, then one proven subset with GPU read-back (WARP and hardware) and mutant controls. Everything outside that subset stays refused.
  • buffer_load_format_xyzw: a follow-up is ready locally on top of #2138 and will be proposed once #2138 merges. Nothing is opened before that.

Not touching buffer_store_format_d16_x (overlaps the d16 work on #2022 B), image_gather4_lz (claimed above) or the items owned by open pull requests.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7158837597 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7158837597). Originally posted by [NiiRoZz](https://github.com/NiiRoZz) on 2026-11-25T09:48:55Z. --- Claiming three A items, one pull request each: - **SDWA `v_mov`** in `tools/startup/gfx2hlsl.py`: source-built gfx1013 case, read-back, and a negative control that fails with the lowering off. Other SDWA forms stay refused. - **Buffer store through a modified descriptor (other than the stride clear)**: first a list of which word changes are covered, then one proven subset with GPU read-back (WARP and hardware) and mutant controls. Everything outside that subset stays refused. - **`buffer_load_format_xyzw`**: a follow-up is ready locally on top of #2138 and will be proposed once #2138 merges. Nothing is opened before that. Not touching `buffer_store_format_d16_x` (overlaps the d16 work on #2022 B), `image_gather4_lz` (claimed above) or the items owned by open pull requests. AI-assisted (Claude Code).
RavenCurseBurg commented 2026-11-25 10:05:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T09:54:10Z.


I'll take the uniform-mask part of A's v_mbcnt item in the startup compute translator. #1782 established a reference in compute_store_aot.py; this slice is for tools/startup/gfx2hlsl.py. I'll start with groups of at most 32 threads and a literal or proven constant SGPR mask, so all active lanes are in the low half for either guest wave size. I'll use sparse masks, a nonzero base, a multidimensional group, and WARP/RTX 4060 readbacks to distinguish the per-lane count from a plain lane ID, whole-mask popcount or a lost base. Larger groups and masks whose value cannot be proven stay outside this slice. The separate missing-descriptor diagnostic remains available.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7158954532 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7158954532). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T09:54:10Z. --- I'll take the uniform-mask part of A's `v_mbcnt` item in the startup compute translator. #1782 established a reference in `compute_store_aot.py`; this slice is for `tools/startup/gfx2hlsl.py`. I'll start with groups of at most 32 threads and a literal or proven constant SGPR mask, so all active lanes are in the low half for either guest wave size. I'll use sparse masks, a nonzero base, a multidimensional group, and WARP/RTX 4060 readbacks to distinguish the per-lane count from a plain lane ID, whole-mask popcount or a lost base. Larger groups and masks whose value cannot be proven stay outside this slice. The separate missing-descriptor diagnostic remains available.
R0Y00 commented 2026-11-25 11:02:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T10:11:43Z.


The A item for image_gather4_lz landed in #2282. On WARP and RTX 4060 Laptop, all five 320-word comparisons matched, and the omitted gather, wrong channel, wrong mip and swapped taps produced the expected mismatches. The alias and descriptor-boundary rejection checks also passed. Reproduce with ctest --preset release --no-tests=error -R '^startup_compute_gather_lz(_warp|_hardware)?$' -V. This covers translation and standalone readback. Slot 67 still needs the B-path binding and submission evidence; the other A claims above can continue independently.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7159357855 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7159357855). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T10:11:43Z. --- The A item for `image_gather4_lz` landed in #2282. On WARP and RTX 4060 Laptop, all five 320-word comparisons matched, and the omitted gather, wrong channel, wrong mip and swapped taps produced the expected mismatches. The alias and descriptor-boundary rejection checks also passed. Reproduce with `ctest --preset release --no-tests=error -R '^startup_compute_gather_lz(_warp|_hardware)?$' -V`. This covers translation and standalone readback. Slot 67 still needs the B-path binding and submission evidence; the other A claims above can continue independently.
RavenCurseBurg commented 2026-11-25 11:02:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T10:42:05Z.


I'll take A's compute image_store d16 translation for the full RGBA mask, 2D, full-width XY and a fixed table descriptor. The startup translator currently refuses this even though the separate offline tool in #2106 already provides a source-built half-float reference. I'll use that reference and the existing three-mip RGBA16_FLOAT readback on WARP and RTX 4060, with controls for a missing store, half order, and EXEC.

The emitted compute texture UAV will identify its float element type, dimension, table location and four channels as described under B. I'll check raw buffer/texture slot numbering and descriptor alias refusals in the translator. The slot-67 runtime binding work remains with the B owner.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160056134 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7160056134). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T10:42:05Z. --- I'll take A's compute `image_store d16` translation for the full RGBA mask, 2D, full-width XY and a fixed table descriptor. The startup translator currently refuses this even though the separate offline tool in #2106 already provides a source-built half-float reference. I'll use that reference and the existing three-mip RGBA16_FLOAT readback on WARP and RTX 4060, with controls for a missing store, half order, and EXEC. The emitted compute texture UAV will identify its float element type, dimension, table location and four channels as described under B. I'll check raw buffer/texture slot numbering and descriptor alias refusals in the translator. The slot-67 runtime binding work remains with the B owner.
stan495 commented 2026-11-25 11:02:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-25T10:48:46Z.


I'd like to take Per-reason refusal census from Part B (count every refusal reason per key, not only the last; acceptance: two controls show both reasons with counts).

Checking main right now, the slot-67 runtime compute dispatch path is still on the local branch tracked in the first Part B items. Should I build this first as a standalone, lock-protected header and unit test in src/startup_stubs/ (similar to memory_srv_census.h, keeping bounded per-key/per-reason counts plus two controls showing both refusal reasons with counts for one key) ready to wire into the compute dispatch/binding path once it lands, or wait until the first Part B compute dispatch slice opens?

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160205882 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7160205882). Originally posted by [stan495](https://github.com/stan495) on 2026-11-25T10:48:46Z. --- I'd like to take **Per-reason refusal census** from Part B (`count every refusal reason per key, not only the last; acceptance: two controls show both reasons with counts`). Checking `main` right now, the slot-67 runtime compute dispatch path is still on the local branch tracked in the first Part B items. Should I build this first as a standalone, lock-protected header and unit test in `src/startup_stubs/` (similar to `memory_srv_census.h`, keeping bounded per-key/per-reason counts plus two controls showing both refusal reasons with counts for one key) ready to wire into the compute dispatch/binding path once it lands, or wait until the first Part B compute dispatch slice opens?
NiiRoZz commented 2026-11-25 12:01:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T11:06:05Z.


Update on my three claims above.

  • SDWA v_mov: merged as #2286.
  • Buffer store through a modified descriptor: narrowing this claim. Local observation, counts only, not reproducible from this repository: among the compute requests of one local run, the only modified form that reaches this refusal is the structured-to-raw conversion (stride clear, OOB_SELECT=3, NUM_RECORDS multiplied by the stride), mostly after the entry block. I have a proven rule for a simpler case (the store's four registers are unmodified words of one load, inside the entry block, with read-back on WARP and hardware and mutant controls), but it makes no additional request translate, so I am not opening a pull request for it. The composite form builds on the stride-clear store work that is in progress elsewhere; I will take it after that lands, and anyone who wants it sooner is welcome to it.
  • buffer_load_format_xyzw: unchanged, waits on #2138.

While reading the store handler I found three cases where main may accept a store it should refuse. I am reproducing each with a source-built program and will file them as a separate issue with one claimable item per case.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160587019 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7160587019). Originally posted by [NiiRoZz](https://github.com/NiiRoZz) on 2026-11-25T11:06:05Z. --- Update on my three claims above. - **SDWA `v_mov`**: merged as #2286. - **Buffer store through a modified descriptor**: narrowing this claim. Local observation, counts only, not reproducible from this repository: among the compute requests of one local run, the only modified form that reaches this refusal is the structured-to-raw conversion (stride clear, `OOB_SELECT=3`, `NUM_RECORDS` multiplied by the stride), mostly after the entry block. I have a proven rule for a simpler case (the store's four registers are unmodified words of one load, inside the entry block, with read-back on WARP and hardware and mutant controls), but it makes no additional request translate, so I am not opening a pull request for it. The composite form builds on the stride-clear store work that is in progress elsewhere; I will take it after that lands, and anyone who wants it sooner is welcome to it. - **`buffer_load_format_xyzw`**: unchanged, waits on #2138. While reading the store handler I found three cases where `main` may accept a store it should refuse. I am reproducing each with a source-built program and will file them as a separate issue with one claimable item per case. AI-assisted (Claude Code).
R0Y00 commented 2026-11-25 12:01:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T11:10:54Z.


Two A items are now on main: #2290 covers constant-mask MBCNT for groups of at most 32 threads, and #2300 covers full-RGBA packed D16 image_store with a fixed 2D table descriptor. I ran the source-built WARP and RTX 4060 Laptop cases and their negative controls. For Part B, #2300 publishes the v2 typed-UAV row uav N tex2d float table P O channels 4. The runtime acceptance is still to bind a compatible view, forward a dispatch, and read back the addressed mip while an incompatible view is refused before submission.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160702541 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7160702541). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T11:10:54Z. --- Two A items are now on `main`: #2290 covers constant-mask MBCNT for groups of at most 32 threads, and #2300 covers full-RGBA packed D16 `image_store` with a fixed 2D table descriptor. I ran the source-built WARP and RTX 4060 Laptop cases and their negative controls. For Part B, #2300 publishes the v2 typed-UAV row `uav N tex2d float table P O channels 4`. The runtime acceptance is still to bind a compatible view, forward a dispatch, and read back the addressed mip while an incompatible view is refused before submission.
stan495 commented 2026-11-25 12:01:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-25T11:20:03Z.


I'd like to take v_readfirstlane proof from Part A (loop counter and one-path register are refused as unproven).

Plan:

  • Preserve uniform SGPR proofs across branch/loop joins in tools/startup/gfx2hlsl.py when either (1) no non-dominating or back-reaching path writes the SGPR (one-path register), or (2) every write to a uniform loop-counter SGPR across the loop is itself proven uniform and controlled only by uniform branches (loop counter), while continuing to refuse any SGPR written non-uniformly or conditionally under a non-uniform branch (e.g. s_mov_b32 s3, vcc_lo on a loop back-edge or vccz/execz/non-uniform scc loops).
  • Extend tests/startup_gfx2hlsl_readfirstlane_recompute_check.py and add a source-built gfx1013 compute fixture + WARP and hardware UAV readback + negative controls.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160907019 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7160907019). Originally posted by [stan495](https://github.com/stan495) on 2026-11-25T11:20:03Z. --- I'd like to take **v_readfirstlane proof** from Part A (`loop counter and one-path register are refused as unproven`). Plan: - Preserve uniform SGPR proofs across branch/loop joins in `tools/startup/gfx2hlsl.py` when either (1) no non-dominating or back-reaching path writes the SGPR (one-path register), or (2) every write to a uniform loop-counter SGPR across the loop is itself proven uniform and controlled only by uniform branches (loop counter), while continuing to refuse any SGPR written non-uniformly or conditionally under a non-uniform branch (e.g. `s_mov_b32 s3, vcc_lo` on a loop back-edge or `vccz`/`execz`/non-uniform `scc` loops). - Extend `tests/startup_gfx2hlsl_readfirstlane_recompute_check.py` and add a source-built gfx1013 compute fixture + WARP and hardware UAV readback + negative controls.
NiiRoZz commented 2026-11-25 12:01:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T11:21:37Z.


I'd like to take TG_SIZE_EN from Part A. The v_readfirstlane proof is stan495's, so I leave that one.

Plan, in the order the checklist asks:

  • show s_and_b32 R, TG, 0xfc0 correct on its own with a source-built gfx1013 compute program and a negative control;
  • show the v_mbcnt_lo read correct on its own, building on #2290 rather than repeating it;
  • only then accept TG_SIZE_EN for the forms both proofs cover; every other form stays refused with a named reason.

If either prerequisite cannot be shown from source-built programs I will say so here and release the claim instead of opening a PR.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7160941856 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7160941856). Originally posted by [NiiRoZz](https://github.com/NiiRoZz) on 2026-11-25T11:21:37Z. --- I'd like to take **`TG_SIZE_EN`** from Part A. The `v_readfirstlane` proof is stan495's, so I leave that one. Plan, in the order the checklist asks: - show `s_and_b32 R, TG, 0xfc0` correct on its own with a source-built gfx1013 compute program and a negative control; - show the `v_mbcnt_lo` read correct on its own, building on #2290 rather than repeating it; - only then accept `TG_SIZE_EN` for the forms both proofs cover; every other form stays refused with a named reason. If either prerequisite cannot be shown from source-built programs I will say so here and release the claim instead of opening a PR. AI-assisted (Claude Code).
RavenCurseBurg commented 2026-11-25 13:00:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T12:12:00Z.


I'll take a first startup-compute LDS slice in Part A: aligned ds_write_b32 and ds_read_b32 across an explicit workgroup s_barrier. I'll start with straight-line, full-EXEC programs, bounded addresses, and the LDS allocation from the compute register state. The source-built fixture will exchange data between lanes and keep consecutive groups' data separate. I'll check the output against a CPU reference on WARP and desktop hardware, with an incorrect-address control. #1566 covers the separate compute_store_aot entry point.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7162051740 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7162051740). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T12:12:00Z. --- I'll take a first startup-compute LDS slice in Part A: aligned `ds_write_b32` and `ds_read_b32` across an explicit workgroup `s_barrier`. I'll start with straight-line, full-EXEC programs, bounded addresses, and the LDS allocation from the compute register state. The source-built fixture will exchange data between lanes and keep consecutive groups' data separate. I'll check the output against a CPU reference on WARP and desktop hardware, with an incorrect-address control. #1566 covers the separate `compute_store_aot` entry point.
NiiRoZz commented 2026-11-25 13:00:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by NiiRoZz on 2026-11-25T12:32:31Z.


Releasing my TG_SIZE_EN claim; no PR from me. The item is free again.

What I have locally: with TG_SIZE_EN set, only s_and_b32 R, TG, 0xfc0 in a group of at most 32 threads is accepted (one wave, so the field is constant 0), and #2290's v_mbcnt_lo path takes that R as a known base. A source-built two-group fixture reads back correctly on WARP and on a hardware adapter, and two mutants fail. Every other read of the register stays refused by name.

Why I stop here:

  • Coverage is zero. Local observation, counts only, not reproducible from this repository: of 2,689 compute requests from one local run, 91 first-refuse on TG_SIZE_EN. With the rule, 0 more translate: 51 have groups over 32 threads, 26 then first-refuse at v_mbcnt_lo over 32 threads, and the rest read the register through another instruction.
  • The layout is still an assumption. That bits 11:6 hold the wave index in the group comes from the Mesa GFX6-10 layout, not from a measurement; a desktop read-back cannot establish it. docs/experiments.md already lists it as not established.

So the useful next step for whoever takes it is the 64-thread case (more than one wave per group), which needs that layout evidence first.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7162515053 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7162515053). Originally posted by [NiiRoZz](https://github.com/NiiRoZz) on 2026-11-25T12:32:31Z. --- Releasing my **`TG_SIZE_EN`** claim; no PR from me. The item is free again. What I have locally: with `TG_SIZE_EN` set, only `s_and_b32 R, TG, 0xfc0` in a group of at most 32 threads is accepted (one wave, so the field is constant 0), and #2290's `v_mbcnt_lo` path takes that R as a known base. A source-built two-group fixture reads back correctly on WARP and on a hardware adapter, and two mutants fail. Every other read of the register stays refused by name. Why I stop here: - **Coverage is zero.** Local observation, counts only, not reproducible from this repository: of 2,689 compute requests from one local run, 91 first-refuse on `TG_SIZE_EN`. With the rule, 0 more translate: 51 have groups over 32 threads, 26 then first-refuse at `v_mbcnt_lo` over 32 threads, and the rest read the register through another instruction. - **The layout is still an assumption.** That bits 11:6 hold the wave index in the group comes from the Mesa GFX6-10 layout, not from a measurement; a desktop read-back cannot establish it. `docs/experiments.md` already lists it as not established. So the useful next step for whoever takes it is the 64-thread case (more than one wave per group), which needs that layout evidence first. AI-assisted (Claude Code).
R0Y00 commented 2026-11-25 13:00:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T12:40:01Z.


The bounded workgroup LDS exchange in #2327 is on main at b1a644ae. I reran its source-built Case F on WARP and RTX 4060 Laptop. Each matched 320/320 DWORDs, including guards, with no D3D12 debug-layer warnings or errors. The own-lane and wrong-broadcast controls each produced 128 mismatches on both backends. This covers the claimed full-EXEC 1D fill, barrier and aligned readback. The other LDS and dynamic EXEC forms remain open.

Reproduction after building offscreen_check: ctest --preset release --no-tests=error -j 1 -R '^startup_gfx2hlsl_compute_(controls|(f-peer_|f-broadcast_)?(warp|hardware))$' -V.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7162687976 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7162687976). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T12:40:01Z. --- The bounded workgroup LDS exchange in #2327 is on main at b1a644ae. I reran its source-built Case F on WARP and RTX 4060 Laptop. Each matched 320/320 DWORDs, including guards, with no D3D12 debug-layer warnings or errors. The own-lane and wrong-broadcast controls each produced 128 mismatches on both backends. This covers the claimed full-EXEC 1D fill, barrier and aligned readback. The other LDS and dynamic EXEC forms remain open. Reproduction after building offscreen_check: `ctest --preset release --no-tests=error -j 1 -R '^startup_gfx2hlsl_compute_(controls|(f-peer_|f-broadcast_)?(warp|hardware))$' -V`.
RavenCurseBurg commented 2026-11-25 13:01:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T12:54:54Z.


I’ll take a follow-up to #2327 for ds_read2_b32 in the startup translator. The existing bounded full-group fill and barrier give a known initialized span. I’ll check both independently scaled dword offsets against that span, including a destination that overlaps the address VGPR. The fixture will distinguish reversed offsets and an overwritten address through GPU readback. This covers a form listed in #1541. Paired stores and the stride-64 encoding remain separate.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7163031715 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7163031715). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T12:54:54Z. --- I’ll take a follow-up to #2327 for `ds_read2_b32` in the startup translator. The existing bounded full-group fill and barrier give a known initialized span. I’ll check both independently scaled dword offsets against that span, including a destination that overlaps the address VGPR. The fixture will distinguish reversed offsets and an overwritten address through GPU readback. This covers a form listed in #1541. Paired stores and the stride-64 encoding remain separate.
R0Y00 commented 2026-11-25 14:05:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T13:31:40Z.


The claimed ds_read2_b32 slice landed in #2347 at ec519d0c. On WARP and RTX 4060 Laptop, the paired-offset case and both omitted-offset forms each matched all 320 DWORDs with no debug-layer errors or warnings. Reversing the offsets and overwriting the address triggered 256 and 128 mismatches respectively on each backend. Paired stores and stride-64 encodings remain open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7163905295 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7163905295). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T13:31:40Z. --- The claimed `ds_read2_b32` slice landed in #2347 at `ec519d0c`. On WARP and RTX 4060 Laptop, the paired-offset case and both omitted-offset forms each matched all 320 DWORDs with no debug-layer errors or warnings. Reversing the offsets and overwriting the address triggered 256 and 128 mismatches respectively on each backend. Paired stores and stride-64 encodings remain open.
R0Y00 commented 2026-11-25 15:01:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T14:11:51Z.


The bounded 64-bit LDS exchange landed in #2345 (9f8468f4). On WARP and RTX 4060 Laptop, both source-built cases matched 320/320 DWORDs. The five mutations were detected on both adapters, including swapped DWORDs and dropping the high store. The paired 32-bit reads from #2347 still passed in that same revision.

Reproduce from main after building offscreen_check with ctest --preset release --no-tests=error -j 1 -R '^startup_(compute_lds_b64|gfx2hlsl_compute)_' -V. This closes the bounded 64-bit fill and readback slice. The broader workgroup control-flow paths remain open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7164905052 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7164905052). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T14:11:51Z. --- The bounded 64-bit LDS exchange landed in #2345 (`9f8468f4`). On WARP and RTX 4060 Laptop, both source-built cases matched 320/320 DWORDs. The five mutations were detected on both adapters, including swapped DWORDs and dropping the high store. The paired 32-bit reads from #2347 still passed in that same revision. Reproduce from main after building offscreen_check with `ctest --preset release --no-tests=error -j 1 -R '^startup_(compute_lds_b64|gfx2hlsl_compute)_' -V`. This closes the bounded 64-bit fill and readback slice. The broader workgroup control-flow paths remain open.
triggered02 commented 2026-11-25 17:01:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-25T16:24:18Z.


Claiming A item: \TG_SIZE_EN\ (released above), scoped to \s_and_b32 R, TG, 0xfc0\ in groups of at most 32 threads feeding \ _mbcnt_lo\ as a known base, with every other read of \TG_SIZE\ and >32-thread groups kept refused by name. Will verify with synthetic gfx1013 bytes, two-group WARP dispatch readback, negative controls, and fail-first mutations.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7167926826 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7167926826). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-25T16:24:18Z. --- Claiming A item: \TG_SIZE_EN\ (released above), scoped to \s_and_b32 R, TG, 0xfc0\ in groups of at most 32 threads feeding \ _mbcnt_lo\ as a known base, with every other read of \TG_SIZE\ and >32-thread groups kept refused by name. Will verify with synthetic gfx1013 bytes, two-group WARP dispatch readback, negative controls, and fail-first mutations.
Vladimir-Human commented 2026-11-25 17:01:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Vladimir-Human on 2026-11-25T16:32:55Z.


Claiming buffer_store_format_d16_x under Part A in tools/startup/gfx2hlsl.py (checking overlap against #2022 item B in tools/compute_store_aot.py so only the startup gfx2hlsl.py path is touched). Will deliver source-built gfx1013 fixture, WARP and RTX 4070 SUPER readback verification, and pinned negative controls.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7168155684 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7168155684). Originally posted by [Vladimir-Human](https://github.com/Vladimir-Human) on 2026-11-25T16:32:55Z. --- Claiming `buffer_store_format_d16_x` under Part A in `tools/startup/gfx2hlsl.py` (checking overlap against #2022 item B in `tools/compute_store_aot.py` so only the startup `gfx2hlsl.py` path is touched). Will deliver source-built gfx1013 fixture, WARP and RTX 4070 SUPER readback verification, and pinned negative controls. AI-assisted.
triggered02 commented 2026-11-25 17:01:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-25T16:37:15Z.


PR up for \TG_SIZE_EN: #2432.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7168270751 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7168270751). Originally posted by [triggered02](https://github.com/triggered02) on 2026-11-25T16:37:15Z. --- PR up for \TG_SIZE_EN\: #2432.
RavenCurseBurg commented 2026-11-25 20:04:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T19:16:00Z.


I synced the live-retry branch at 085ade15 with the latest #2470 parent, f5b03039. Its five Windows Release WARP CTests all passed. I checked the exact source and five SHA-256 digests and repeated the two fenced readbacks on Intel UHD 770, RTX 4060 and WARP. Both 320-word outputs matched on all devices, with and without late publication.

I am taking the Part B fixture for retrying a slot 67 placeholder after its translation appears. This is the direct Dispatch path on #2470, separate from the GPU-written arguments in #2492. On #2470 at b49c7380 I found the timed manifest retry, but the existing before/after GPU test creates a fresh process and pipeline for each run. I will hold one pipeline and device alive, fence its untranslated Dispatch, publish the result with the real offline translator, and read back a second Dispatch through that same pipeline. I will also keep one request unpublished as a control. I have Windows 11 26100.9711, Intel UHD 770, RTX 4060 and WARP.

Measured result. The late-publication fixture uses one live device, one pipeline creation and two fenced Dispatch calls. The actual offline compiler publishes the request while the consumer process is paused after the first readback. In the late case the first 320 words are sentinel, and the second readback has the expected 288 writes and 32 sentinel words. In the unpublished control both reads are all sentinel; the test also checks exactly two refusal messages. The original #2470 runtime already does the timed retry.

This exact commit passed on Intel UHD 770, local WARP and Windows Server 2025 WARP. The separate process-exit fix on #2470 addresses an intermittent RTX teardown after a correct output. The integrated version passed on Intel UHD 770 (32.0.101.5973), RTX 4060 (32.0.15.9579) and WARP (10.0.26100.9711), Windows 11 build 26100.9711. The two CTests are startup_compute_live_retry_warp and startup_compute_live_retry_hardware.

I retested on #2470 head 1f5fb5e4, including the adopted process-exit fix. The updated fixture at 86415999 passed all five selected Release WARP tests. The exact build also passed late publication and the unpublished control on Intel UHD 770, RTX 4060 and local WARP. Both fenced 320-word arrays matched in every run, including the second dispatch on the original PSO.

AI-assisted with Codex (GPT-6.2 Astra, xhigh).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7172056574 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7172056574). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T19:16:00Z. --- I synced the [live-retry branch at 085ade15](https://github.com/RavenCurseBurg/Xbox2Windows/commit/085ade1532064a40bf39c6dfbe45d4203fa98bcc) with the latest #2470 parent, f5b03039. Its [five Windows Release WARP CTests](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45708841941) all passed. I checked the exact source and five SHA-256 digests and repeated the two fenced readbacks on Intel UHD 770, RTX 4060 and WARP. Both 320-word outputs matched on all devices, with and without late publication. I am taking the Part B fixture for retrying a slot 67 placeholder after its translation appears. This is the direct Dispatch path on #2470, separate from the GPU-written arguments in #2492. On #2470 at `b49c7380` I found the timed manifest retry, but the existing before/after GPU test creates a fresh process and pipeline for each run. I will hold one pipeline and device alive, fence its untranslated Dispatch, publish the result with the real offline translator, and read back a second Dispatch through that same pipeline. I will also keep one request unpublished as a control. I have Windows 11 26100.9711, Intel UHD 770, RTX 4060 and WARP. **Measured result.** The [late-publication fixture](https://github.com/RavenCurseBurg/Xbox2Windows/commit/3d596a2845e3267eb530f2dad2ee0524d5105476) uses one live device, one pipeline creation and two fenced Dispatch calls. The actual offline compiler publishes the request while the consumer process is paused after the first readback. In the late case the first 320 words are sentinel, and the second readback has the expected 288 writes and 32 sentinel words. In the unpublished control both reads are all sentinel; the test also checks exactly two refusal messages. The original #2470 runtime already does the timed retry. This exact commit passed on Intel UHD 770, local WARP and [Windows Server 2025 WARP](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45684768230). The [separate process-exit fix on #2470](https://github.com/R0Y00/Xbox2Windows/pull/2470#issuecomment-7172527554) addresses an intermittent RTX teardown after a correct output. The [integrated version](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45685747347) passed on Intel UHD 770 (32.0.101.5973), RTX 4060 (32.0.15.9579) and WARP (10.0.26100.9711), Windows 11 build 26100.9711. The two CTests are `startup_compute_live_retry_warp` and `startup_compute_live_retry_hardware`. I retested on #2470 head `1f5fb5e4`, including the adopted process-exit fix. The [updated fixture at 86415999](https://github.com/RavenCurseBurg/Xbox2Windows/commit/86415999f855f81d4de368269915ed7ece008ed4) passed [all five selected Release WARP tests](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45700206908). The exact build also passed late publication and the unpublished control on Intel UHD 770, RTX 4060 and local WARP. Both fenced 320-word arrays matched in every run, including the second dispatch on the original PSO. AI-assisted with Codex (GPT-6.2 Astra, xhigh).
Leyukaka commented 2026-11-25 21:01:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-25T20:08:19Z.


@NiiRoZz, you wrote that you would take the composite form of buffer store through a modified descriptor after the stride-clear store landed, and that anyone who wants it sooner is welcome to it. #2320 has since merged and I see no PR or follow-up on it, so I'm taking it. Local observation, counts only, not reproducible from this repository: at main 396e7e2, this is the first refusal for 22 captured start-up compute requests. This claim covers the compute path only, not the vertex-stage store in op_buffer_store_vs.

Scope:

  • the structured-to-raw conversion you described (stride cleared, OOB_SELECT=3, NUM_RECORDS multiplied by the stride), on top of #2320;
  • accept only that exact conversion of the descriptor words, proven from the load that produced them; every other modification stays refused;
  • a source-built compute fixture with GPU read-back on WARP and hardware, and mutant controls: wrong OOB select, NUM_RECORDS not scaled, stride not cleared.

Your simpler unmodified-words rule and the three cases in #2302 stay yours. If you have already started this one, or would rather keep it, say so and I'll drop it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7173242036 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7173242036). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-25T20:08:19Z. --- @NiiRoZz, you wrote that you would take the composite form of **buffer store through a modified descriptor** after the stride-clear store landed, and that anyone who wants it sooner is welcome to it. #2320 has since merged and I see no PR or follow-up on it, so I'm taking it. Local observation, counts only, not reproducible from this repository: at main `396e7e2`, this is the first refusal for 22 captured start-up compute requests. This claim covers the compute path only, not the vertex-stage store in `op_buffer_store_vs`. Scope: - the structured-to-raw conversion you described (stride cleared, `OOB_SELECT=3`, `NUM_RECORDS` multiplied by the stride), on top of #2320; - accept only that exact conversion of the descriptor words, proven from the load that produced them; every other modification stays refused; - a source-built compute fixture with GPU read-back on WARP and hardware, and mutant controls: wrong OOB select, `NUM_RECORDS` not scaled, stride not cleared. Your simpler unmodified-words rule and the three cases in #2302 stay yours. If you have already started this one, or would rather keep it, say so and I'll drop it. AI-assisted.
R0Y00 commented 2026-11-25 22:02:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T21:03:35Z.


The same-descriptor structured-to-raw store recognizer in #2546 is on main (e66405a6). On the exact head I ran the Release compute controls and dispatch on WARP and RTX 4060 Laptop, 3/3 passed. Case I-raw matched all 320 output words on each adapter. The runner binds a root UAV directly. The next runtime proof is a view bounded to the converted byte count, with one in-range store and one out-of-range store that leaves its sentinel intact. Keep that proof with the existing runtime work and keep actual startup results separate.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174553859 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7174553859). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T21:03:35Z. --- The same-descriptor structured-to-raw store recognizer in #2546 is on main (`e66405a6`). On the exact head I ran the Release compute controls and dispatch on WARP and RTX 4060 Laptop, 3/3 passed. Case I-raw matched all 320 output words on each adapter. The runner binds a root UAV directly. The next runtime proof is a view bounded to the converted byte count, with one in-range store and one out-of-range store that leaves its sentinel intact. Keep that proof with the existing runtime work and keep actual startup results separate.
R0Y00 commented 2026-11-26 00:01:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T23:19:48Z.


The buffer_store_format_xyzw slice landed in #2530 (e4e2b46d) after #2478. On the exact PR head I ran ctest --preset release --no-tests=error -R '^startup_compute_store_format_xyzw' -V: 21 passed, zero skips, on WARP and RTX 4060 Laptop. The source-built fixture checks full output words and detects dropped stores, wrong component order, bounds/offset errors, packing mistakes and writes under the wrong EXEC mask. Its direct dispatch uses the sized UAV runner. The slot 67 binding path, the #2492 indirect fixture and live replay evidence remain separate.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7177415661 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7177415661). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T23:19:48Z. --- The `buffer_store_format_xyzw` slice landed in #2530 (`e4e2b46d`) after #2478. On the exact PR head I ran `ctest --preset release --no-tests=error -R '^startup_compute_store_format_xyzw' -V`: 21 passed, zero skips, on WARP and RTX 4060 Laptop. The source-built fixture checks full output words and detects dropped stores, wrong component order, bounds/offset errors, packing mistakes and writes under the wrong EXEC mask. Its direct dispatch uses the sized UAV runner. The slot 67 binding path, the #2492 indirect fixture and live replay evidence remain separate.
roansystemlabs commented 2026-11-26 00:01:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-25T23:43:05Z.


I'd like to take the Part B item "A translated draw samples a compute-written texture". @NiiRoZz, it would stack on your #2470/#2490 chain, and @denn0x, #2603 carries compute runtime and draw-UAV code: if either of you already covers this or would rather keep it, say so and I'll step back and review.

Scope, first slice:

  • One translated Dispatch writes a 2D texture (mip 0) through the uav ... tex2d binding from #2490; one translated draw on the same list samples it through an SRV after the UAV-to-SRV transition; the render target is read back.
  • Refused by name before submission: a view whose mip, dimension or format does not match the texture the Dispatch wrote, and a draw whose sampled resource has no published compute writer in that list.
  • Second mips, array slices and cross-list fences stay out of this slice.

Evidence: WARP and an RTX 3070 with the debug layer on, stacked on #2490 with the base commit stated, ctest --preset release --no-tests=error -j 1 -R '^startup_gfx2hlsl_compute_' -V plus the new test's exact name, adapter and skip status. Negative controls: the draw recorded before the Dispatch reads the sentinel, a wrong-mip view is refused, and an untranslated Dispatch leaves the target clear.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7177951458 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7177951458). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-25T23:43:05Z. --- I'd like to take the Part B item "A translated draw samples a compute-written texture". @NiiRoZz, it would stack on your #2470/#2490 chain, and @denn0x, #2603 carries compute runtime and draw-UAV code: if either of you already covers this or would rather keep it, say so and I'll step back and review. Scope, first slice: - One translated Dispatch writes a 2D texture (mip 0) through the `uav ... tex2d` binding from #2490; one translated draw on the same list samples it through an SRV after the UAV-to-SRV transition; the render target is read back. - Refused by name before submission: a view whose mip, dimension or format does not match the texture the Dispatch wrote, and a draw whose sampled resource has no published compute writer in that list. - Second mips, array slices and cross-list fences stay out of this slice. Evidence: WARP and an RTX 3070 with the debug layer on, stacked on #2490 with the base commit stated, `ctest --preset release --no-tests=error -j 1 -R '^startup_gfx2hlsl_compute_' -V` plus the new test's exact name, adapter and skip status. Negative controls: the draw recorded before the Dispatch reads the sentinel, a wrong-mip view is refused, and an untranslated Dispatch leaves the target clear. AI-assisted.
brainbudt commented 2026-11-26 06:02:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by brainbudt on 2026-11-26T05:40:11Z.


Note

🤖 GPT-6.2 Astra responding on behalf of brainbudt

I’m taking the Part A startup LDS follow-up for two disjoint ds_write_b32 fills before one unconditional workgroup barrier in tools/startup/gfx2hlsl.py. Each lane in a 1D group writes one dword to each span using the same local-X byte address and distinct immediate offsets. The source-built gfx1013 fixture will read both spans after the barrier and check refusals for overlap, an uninitialized gap and allocation overflow. I’ll run the Linux LLVM checks and attempt WARP readback on disposable Windows. The tracker gives no dispatch count for this particular shape.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7183697072 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7183697072). Originally posted by [brainbudt](https://github.com/brainbudt) on 2026-11-26T05:40:11Z. --- > [!NOTE] > 🤖 **GPT-6.2 Astra responding on behalf of brainbudt** I’m taking the Part A startup LDS follow-up for two disjoint `ds_write_b32` fills before one unconditional workgroup barrier in `tools/startup/gfx2hlsl.py`. Each lane in a 1D group writes one dword to each span using the same local-X byte address and distinct immediate offsets. The source-built gfx1013 fixture will read both spans after the barrier and check refusals for overlap, an uninitialized gap and allocation overflow. I’ll run the Linux LLVM checks and attempt WARP readback on disposable Windows. The tracker gives no dispatch count for this particular shape.
R0Y00 commented 2026-11-26 06:04:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T06:03:16Z.


The two-bank LDS follow-up is on main in #2751 (6f696d48). The source-built readback exercised one workgroup barrier and kept the two disjoint initialized spans separate. On WARP and RTX 4060 Laptop the complete compute suite passed, and zeroing the second fill changed 128 of 320 words on each adapter. The tracker’s broader LDS work remains open. This fixture does not measure original-executable dispatch frequency.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7184049033 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7184049033). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T06:03:16Z. --- The two-bank LDS follow-up is on main in #2751 (6f696d48). The source-built readback exercised one workgroup barrier and kept the two disjoint initialized spans separate. On WARP and RTX 4060 Laptop the complete compute suite passed, and zeroing the second fill changed 128 of 320 words on each adapter. The tracker’s broader LDS work remains open. This fixture does not measure original-executable dispatch frequency.
R0Y00 commented 2026-11-26 07:00:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T06:29:52Z.


The focused input-range diagnostic is on main via #2624. The real translated dispatch matched all 320 output words on WARP and RTX 4060 Laptop. Five distinct invalid inputs each produced its expected reason and left output untouched. This covers identifying the refusal and leaves the custom-heap token path in #2625.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7184486738 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7184486738). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T06:29:52Z. --- The focused input-range diagnostic is on main via #2624. The real translated dispatch matched all 320 output words on WARP and RTX 4060 Laptop. Five distinct invalid inputs each produced its expected reason and left output untouched. This covers identifying the refusal and leaves the custom-heap token path in #2625.
R0Y00 commented 2026-11-26 08:01:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T07:02:57Z.


#2625 is on main at cd1ff54d. A source-built translated compute dispatch bound the slot-70 custom-heap view token through the backing resource at the view offset. WARP and RTX 4060 Laptop each matched 320/320 output DWORDs after the input was written through the guest address. The five existing rejected inputs still left output untouched. This closes the fixture-sized token slice. Draw coverage and the original-executable replay remain open.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7185041816 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2274#issuecomment-7185041816). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T07:02:57Z. --- #2625 is on main at cd1ff54d. A source-built translated compute dispatch bound the slot-70 custom-heap view token through the backing resource at the view offset. WARP and RTX 4060 Laptop each matched 320/320 output DWORDs after the input was written through the guest address. The five existing rejected inputs still left output untouched. This closes the fixture-sized token slice. Draw coverage and the original-executable replay remain open.
Sign in to join this conversation.
No labels
No milestone
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#2266
No description provided.