cpp-migration: remaining work before the runtime can use the native shader compiler (tracking) #2935

Open
opened 2026-11-26 22:04:59 +00:00 by MasterDomino · 66 comments
MasterDomino commented 2026-11-26 22:04:59 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-26T22:04:59Z.


Target branch cpp-migration, at 999e17cd (updated 2026-11-27; first written at e97c5c7c). This tracks what still separates the native C++ shader compiler from replacing tools/startup/gfx2hlsl.py in the startup runtime, and so from merging cpp-migration into main.

The list started from a source-reading review of cpp-migration against main (at 7f951fd3, nothing built or run). Each item says whether it was checked on the branch or is still from reading only. Please open a focused issue per item before working on it, and link it here.

Status today

On 999e17cd the runtime can use the native compiler for compute, opt-in only. Default runs still translate through gfx2hlsl.py.

  • Runtime, compute: X2W_NATIVE_SHADERS=<DXC directory> (run.ps1 -NativeShaders) translates slot 67 compute requests in the stand-in at their first Dispatch (#2958). It binds raw_vector_srv and raw_buffer_uav only. Requests it refuses fall back to the gfx2hlsl.py path. Checked in a start-up run.
  • Runtime, graphics: no native path yet. #2981 is in review for #2978.
  • Offline:
    • compile_dxil --requests reads the runtime's revision-28 requests and publishes <key>.txt with <key>.{vs,ps,cs}.cso, which the runtime loads (#2939, #2955).
    • It writes <key>.fail on refusal (#2984) and resolves RTV variants (#2989).
    • compile_dxil --watch follows a live request directory (#2992, #3003).
    • compile_dxil --refusals gives a read-only first-refusal census (#2984, #3003).
  • Coverage on one local start-up capture (counts only, compile_dxil --requests):
    • Compute: 418 of 2,747 requests compile with this round's instruction PRs, up from 415 at 4ff5e36d.
    • Graphics: 3 of 628 req_*.a requests compile at 4ff5e36d.
    • --refusals at 4ff5e36d lists 56 distinct first-refusal reasons for compute.
  • Tests: the native, compute-dispatch and stream-draw families give 94 tests on an RX 9070 XT plus WARP, with 90 passed and 4 WARP capability skips (wave32).

Done

  • #2933: compile_dxil reads the runtime's requests and publishes cache entries the runtime loads (#2939, #2955).
  • #2934: native compute compilation and dispatch through the runtime entry point (#2958, opt-in).
  • Tooling: .fail files that triage_run.py classifies, --refusals (#2983 → #2984), --watch (#2988 → #2992), and .rtv in both (#3001 → #3003). Still missing: a native equivalent of shader_cache_rekey.py.
  • Helper scripts: compile_lds_request.py runs again (#2941; #2944 closed).
  • CI: pull requests into cpp-migration get CI since #2942. It runs native_dxil_llvm_ident_controls on this branch, but it still excludes _hardware, where most direct-DXIL execution tests are.
  • #2906 (#2914), #2907 (#2946), #2908 (#2972), #2909 (#2917), #2915 (#2928, #2932).
  • Instruction coverage, landed so far:
    • DPP16 quad_perm (#2937);
    • v_readlane/v_writelane (#2950);
    • 64-bit shift operands (#2952);
    • s_bfm_b64/s_cselect_b64/s_not_b64 (#2959);
    • binary16 add/sub/subrev/mul and their SDWA forms (#2964, #2973);
    • root-pointer global_load_dword (#2966);
    • byte-window buffer stores (#2967);
    • image_gather4_c_lz (#2971);
    • the SAD operations (#2990);
    • v_ashrrev_i64/v_mad_i32_i24 (#2994);
    • v_alignbit/v_alignbyte/v_bfm_b32 (#2986);
    • the saturating 16-bit packs (#2996);
    • v_cvt_pk_u8_f32 (#2998).

In progress

  • Graphics through the runtime:

    • #2978 (one fixed target format), with #2981 in review. The open review finding there is that a late native failure must not bypass a valid on-disk entry.
    • #2980 (RTV variants): offline resolution and caching have landed (#2989, #3003), and the e2e draws the variants through the stand-in. The issue is still open for its author to close.
  • Compute bindings on the native routes:

    • #2974 Part 1 (#2975): 3D/1D texture UAVs in the stand-in and the C++ manifest. It is approved but held: in title runs with natively published manifests, loading its 3D/1D translations coincides with a start-up stall (see the PR).
    • #2974 Part 2 (#2993): table buffers, 2D texture inputs and texture outputs on the in-process route. It builds on #2975.
  • Wave size of slot 67 requests: #2999 (#3006). Every .c67 request is compiled as wave32 today. In the capture, bit 20 of .sa dword 4 splits the requests the way a wave size would.

  • Instruction coverage, open:

    • v_mad_u64_u32/v_mad_i64_i32: #3000 (#3004);
    • unfused f32 multiply-adds: #3005 (#3007);
    • DPP16 row shifts and rotates: #3008;
    • v_add_nc_i32/v_sub_nc_i32 and clamped add/sub: #3009.

    The VOP3 probe on #2985 counted 79 refused names at 05438d65, before this round. Until coverage is close, the runtime needs its per-pipeline fallback to gfx2hlsl.py, and #2958 keeps that fallback.

Not yet filed

  • Mesh, slot 57. .m57 and .ps57 requests have no native path. From reading.
  • Raw graphics stages. A raw stage with a branch, an EXEC write or interpolation is refused without container metadata or a pixel-entry record (src/gfx1013_compute_native.cpp), and nothing on the branch produces either. From reading.
  • WARP. Native modules are SM 6.6 with wave size 32 (src/dxil_module.h). WARP reports 4-lane waves, so the native _warp execution tests skip, and the in-process route refuses on WARP (#2958). The CI-built GPU check requires the Python compute cases to pass on WARP (package-gpu-check.ps1). Checked.
  • Samplers. Only constant sampler words are accepted, and there is no sampler-heap path. The in-process compute route refuses any sampler. From reading.
  • shader_cache_rekey.py. It has no native equivalent (see Tooling above).
  • Python-only tests. The review counted 171 test files that import gfx2hlsl and run on Linux and macOS, while the native tests need Windows with DXC.
  • Integration. R0Y00 on this issue: keep the fallback-disabled compute and graphics corpus runs and the original runtime acceptance together for integration after the component work lands.

AI-assisted. "Checked" means verified on the branch; "from reading" means taken from the source-reading review and not yet verified.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6635842728 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-26T22:04:59Z. --- Target branch `cpp-migration`, at `999e17cd` (updated 2026-11-27; first written at `e97c5c7c`). This tracks what still separates the native C++ shader compiler from replacing `tools/startup/gfx2hlsl.py` in the startup runtime, and so from merging `cpp-migration` into `main`. The list started from a source-reading review of `cpp-migration` against `main` (at `7f951fd3`, nothing built or run). Each item says whether it was checked on the branch or is still from reading only. Please open a focused issue per item before working on it, and link it here. ## Status today On `999e17cd` the runtime can use the native compiler for compute, opt-in only. Default runs still translate through `gfx2hlsl.py`. - **Runtime, compute:** `X2W_NATIVE_SHADERS=<DXC directory>` (`run.ps1 -NativeShaders`) translates slot 67 compute requests in the stand-in at their first Dispatch (#2958). It binds `raw_vector_srv` and `raw_buffer_uav` only. Requests it refuses fall back to the `gfx2hlsl.py` path. **Checked** in a start-up run. - **Runtime, graphics:** no native path yet. #2981 is in review for #2978. - **Offline:** - `compile_dxil --requests` reads the runtime's revision-28 requests and publishes `<key>.txt` with `<key>.{vs,ps,cs}.cso`, which the runtime loads (#2939, #2955). - It writes `<key>.fail` on refusal (#2984) and resolves RTV variants (#2989). - `compile_dxil --watch` follows a live request directory (#2992, #3003). - `compile_dxil --refusals` gives a read-only first-refusal census (#2984, #3003). - **Coverage on one local start-up capture** (counts only, `compile_dxil --requests`): - Compute: 418 of 2,747 requests compile with this round's instruction PRs, up from 415 at `4ff5e36d`. - Graphics: 3 of 628 `req_*.a` requests compile at `4ff5e36d`. - `--refusals` at `4ff5e36d` lists 56 distinct first-refusal reasons for compute. - **Tests:** the native, compute-dispatch and stream-draw families give 94 tests on an RX 9070 XT plus WARP, with 90 passed and 4 WARP capability skips (wave32). ## Done - [x] #2933: `compile_dxil` reads the runtime's requests and publishes cache entries the runtime loads (#2939, #2955). - [x] #2934: native compute compilation and dispatch through the runtime entry point (#2958, opt-in). - [x] **Tooling:** `.fail` files that `triage_run.py` classifies, `--refusals` (#2983 → #2984), `--watch` (#2988 → #2992), and `.rtv` in both (#3001 → #3003). Still missing: a native equivalent of `shader_cache_rekey.py`. - [x] **Helper scripts:** `compile_lds_request.py` runs again (#2941; #2944 closed). - [x] **CI:** pull requests into `cpp-migration` get CI since #2942. It runs `native_dxil_llvm_ident_controls` on this branch, but it still excludes `_hardware`, where most direct-DXIL execution tests are. - [x] #2906 (#2914), #2907 (#2946), #2908 (#2972), #2909 (#2917), #2915 (#2928, #2932). - [x] **Instruction coverage, landed so far:** - DPP16 `quad_perm` (#2937); - `v_readlane`/`v_writelane` (#2950); - 64-bit shift operands (#2952); - `s_bfm_b64`/`s_cselect_b64`/`s_not_b64` (#2959); - binary16 add/sub/subrev/mul and their SDWA forms (#2964, #2973); - root-pointer `global_load_dword` (#2966); - byte-window buffer stores (#2967); - `image_gather4_c_lz` (#2971); - the SAD operations (#2990); - `v_ashrrev_i64`/`v_mad_i32_i24` (#2994); - `v_alignbit`/`v_alignbyte`/`v_bfm_b32` (#2986); - the saturating 16-bit packs (#2996); - `v_cvt_pk_u8_f32` (#2998). ## In progress - [ ] **Graphics through the runtime:** - #2978 (one fixed target format), with #2981 in review. The open review finding there is that a late native failure must not bypass a valid on-disk entry. - #2980 (RTV variants): offline resolution and caching have landed (#2989, #3003), and the e2e draws the variants through the stand-in. The issue is still open for its author to close. - [ ] **Compute bindings on the native routes:** - #2974 Part 1 (#2975): 3D/1D texture UAVs in the stand-in and the C++ manifest. It is approved but held: in title runs with natively published manifests, loading its 3D/1D translations coincides with a start-up stall (see the PR). - #2974 Part 2 (#2993): table buffers, 2D texture inputs and texture outputs on the in-process route. It builds on #2975. - [ ] **Wave size of slot 67 requests:** #2999 (#3006). Every `.c67` request is compiled as wave32 today. In the capture, bit 20 of `.sa` dword 4 splits the requests the way a wave size would. - [ ] **Instruction coverage, open:** - `v_mad_u64_u32`/`v_mad_i64_i32`: #3000 (#3004); - unfused f32 multiply-adds: #3005 (#3007); - DPP16 row shifts and rotates: #3008; - `v_add_nc_i32`/`v_sub_nc_i32` and clamped add/sub: #3009. The VOP3 probe on #2985 counted 79 refused names at `05438d65`, before this round. Until coverage is close, the runtime needs its per-pipeline fallback to `gfx2hlsl.py`, and #2958 keeps that fallback. ## Not yet filed - [ ] **Mesh, slot 57.** `.m57` and `.ps57` requests have no native path. From reading. - [ ] **Raw graphics stages.** A raw stage with a branch, an EXEC write or interpolation is refused without container metadata or a pixel-entry record (`src/gfx1013_compute_native.cpp`), and nothing on the branch produces either. From reading. - [ ] **WARP.** Native modules are SM 6.6 with wave size 32 (`src/dxil_module.h`). WARP reports 4-lane waves, so the native `_warp` execution tests skip, and the in-process route refuses on WARP (#2958). The CI-built GPU check requires the Python compute cases to pass on WARP (`package-gpu-check.ps1`). **Checked.** - [ ] **Samplers.** Only constant sampler words are accepted, and there is no sampler-heap path. The in-process compute route refuses any sampler. From reading. - [ ] **`shader_cache_rekey.py`.** It has no native equivalent (see Tooling above). - [ ] **Python-only tests.** The review counted 171 test files that import `gfx2hlsl` and run on Linux and macOS, while the native tests need Windows with DXC. - [ ] **Integration.** R0Y00 on this issue: keep the fallback-disabled compute and graphics corpus runs and the original runtime acceptance together for integration after the component work lands. AI-assisted. "Checked" means verified on the branch; "from reading" means taken from the source-reading review and not yet verified.
Leyukaka commented 2026-11-26 22:06:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T22:06:31Z.


Filed #2936 for one instruction-coverage item: DPP16 quad_perm in the direct compute path (677 first refusals in a local census of 2,689 compute requests). I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7204369985 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7204369985). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-26T22:06:31Z. --- Filed #2936 for one instruction-coverage item: DPP16 `quad_perm` in the direct compute path (677 first refusals in a local census of 2,689 compute requests). I am taking it. AI-assisted.
Leyukaka commented 2026-11-26 22:25:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T22:25:14Z.


Filed #2940 for the next instruction-coverage item: v_readlane_b32 / v_writelane_b32 (SGPR spills) in the direct compute path, including vcc_lo as a lane-read destination. I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7204661311 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7204661311). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-26T22:25:14Z. --- Filed #2940 for the next instruction-coverage item: `v_readlane_b32` / `v_writelane_b32` (SGPR spills) in the direct compute path, including `vcc_lo` as a lane-read destination. I am taking it. AI-assisted.
Leyukaka commented 2026-11-26 22:59:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T22:59:11Z.


Filed #2951 for the next instruction-coverage item: inline-integer, literal and SGPR-pair shifted values for v_lshrrev_b64 / v_lshlrev_b64 in the direct compute path. I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7205155055 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7205155055). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-26T22:59:11Z. --- Filed #2951 for the next instruction-coverage item: inline-integer, literal and SGPR-pair shifted values for `v_lshrrev_b64` / `v_lshlrev_b64` in the direct compute path. I am taking it. AI-assisted.
Leyukaka commented 2026-11-26 23:25:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T23:25:54Z.


Filed #2957 for the next instruction-coverage item: s_bfm_b64, s_cselect_b64 and s_not_b64 as 64-bit values in the direct compute path. I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7205535621 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7205535621). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-26T23:25:54Z. --- Filed #2957 for the next instruction-coverage item: `s_bfm_b64`, `s_cselect_b64` and `s_not_b64` as 64-bit values in the direct compute path. I am taking it. AI-assisted.
legacy-code-archaeologist commented 2026-11-26 23:38:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-26T23:38:15Z.


Status note for the Helper scripts item: load_compute_request on cpp-migration now takes pipeline_type (tools/startup/gfx2hlsl.py:10991, from #2941, merged as a990f323), so the compile_lds_request.py:169 call matches its signature again. The script does not exist on main. I have not run its main() against a real request.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7205715742 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7205715742). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-26T23:38:15Z. --- Status note for the **Helper scripts** item: `load_compute_request` on `cpp-migration` now takes `pipeline_type` (`tools/startup/gfx2hlsl.py:10991`, from #2941, merged as `a990f323`), so the `compile_lds_request.py:169` call matches its signature again. The script does not exist on `main`. I have not run its `main()` against a real request. AI-assisted.
Leyukaka commented 2026-11-26 23:52:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T23:52:38Z.


Filed #2963 for the SDWA forms of binary16 add, sub and mul in the direct compute path. It builds on the plain forms in #2945. I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7205948409 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7205948409). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-26T23:52:38Z. --- Filed #2963 for the SDWA forms of binary16 add, sub and mul in the direct compute path. It builds on the plain forms in #2945. I am taking it. AI-assisted.
Leyukaka commented 2026-11-26 23:57:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-26T23:57:03Z.


Filed #2965 for the next instruction-coverage item: buffer stores through a byte-window descriptor (stride cleared, NUM_RECORDS scaled, OOB_SELECT 3) in the direct compute path. I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7206025345 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7206025345). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-26T23:57:03Z. --- Filed #2965 for the next instruction-coverage item: buffer stores through a byte-window descriptor (stride cleared, NUM_RECORDS scaled, OOB_SELECT 3) in the direct compute path. I am taking it. AI-assisted.
legacy-code-archaeologist commented 2026-11-26 23:59:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-26T23:59:58Z.


Filed #2962 for the global loads part of the instruction-coverage item: global_load_dword in the saddr form through a root SRV address in the direct compute path, following gfx2hlsl.py op_global_load_dword. I am taking it; a PR against cpp-migration follows.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7206076057 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7206076057). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-26T23:59:58Z. --- Filed #2962 for the **global loads** part of the instruction-coverage item: `global_load_dword` in the `saddr` form through a root SRV address in the direct compute path, following `gfx2hlsl.py` `op_global_load_dword`. I am taking it; a PR against `cpp-migration` follows. AI-assisted.
legacy-code-archaeologist commented 2026-11-27 00:13:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T00:13:04Z.


Filed #2969 for one of the image ops in the instruction-coverage item: image_gather4_c_lz as DXIL textureGatherCmp in the direct image path. I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7206274065 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7206274065). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T00:13:04Z. --- Filed #2969 for one of the image ops in the instruction-coverage item: `image_gather4_c_lz` as DXIL `textureGatherCmp` in the direct image path. I am taking it. AI-assisted.
Leyukaka commented 2026-11-27 00:51:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T00:51:16Z.


Filed #2974 for the runtime side of the native route: 3D/1D texture UAVs (the runtime half of #2902) and the table-buffer and 2D-texture views a natively translated compute program needs, so a per-frame pipeline that the C++ compiler already compiles can reach a Dispatch. I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7206807611 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7206807611). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-27T00:51:16Z. --- Filed #2974 for the runtime side of the native route: 3D/1D texture UAVs (the runtime half of #2902) and the table-buffer and 2D-texture views a natively translated compute program needs, so a per-frame pipeline that the C++ compiler already compiles can reach a Dispatch. I am taking it. AI-assisted.
R0Y00 commented 2026-11-27 01:57:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T01:57:10Z.


Graphics work now has two independently claimable slices. #2978 covers the first ordinary native draw with a fixed target format. #2980 covers offline RTV variant resolution, cache identity and format-specific readback. Both target cpp-migration. Keep the fallback-disabled compute and graphics corpus runs and the original runtime acceptance together for integration after the component work lands.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7207709352 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7207709352). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-27T01:57:10Z. --- Graphics work now has two independently claimable slices. #2978 covers the first ordinary native draw with a fixed target format. #2980 covers offline RTV variant resolution, cache identity and format-specific readback. Both target cpp-migration. Keep the fallback-disabled compute and graphics corpus runs and the original runtime acceptance together for integration after the component work lands.
stan495 commented 2026-11-27 02:44:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-27T02:44:19Z.


Filed #2983 for the Tooling item (.fail diagnostic files and read-only --refusals summary in compile_dxil, plus triage_run.py classification). I am taking it.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7208387186 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7208387186). Originally posted by [stan495](https://github.com/stan495) on 2026-11-27T02:44:19Z. --- Filed #2983 for the **Tooling** item (`.fail` diagnostic files and read-only `--refusals` summary in `compile_dxil`, plus `triage_run.py` classification). I am taking it.
legacy-code-archaeologist commented 2026-11-27 03:16:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T03:16:38Z.


Filed #2985 for three integer-ALU items: v_alignbit_b32, v_alignbyte_b32 and v_bfm_b32 in the direct compute path. I found them with a per-opcode probe of the VOP3 names in gfx1013_isa_tables.inl: 79 names are refused on 05438d65, and these three have a gfx2hlsl.py lowering and no issue or PR. I am taking them.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7208852927 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7208852927). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T03:16:38Z. --- Filed #2985 for three integer-ALU items: `v_alignbit_b32`, `v_alignbyte_b32` and `v_bfm_b32` in the direct compute path. I found them with a per-opcode probe of the VOP3 names in `gfx1013_isa_tables.inl`: 79 names are refused on `05438d65`, and these three have a `gfx2hlsl.py` lowering and no issue or PR. I am taking them. AI-assisted.
stan495 commented 2026-11-27 03:25:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-27T03:25:37Z.


Filed #2988 for the Tooling --watch item (compile_dxil --watch for live startup graphics and slot-67 compute requests). I am taking it.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7208978165 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7208978165). Originally posted by [stan495](https://github.com/stan495) on 2026-11-27T03:25:37Z. --- Filed #2988 for the **Tooling** `--watch` item (`compile_dxil --watch` for live startup graphics and slot-67 compute requests). I am taking it.
legacy-code-archaeologist commented 2026-11-27 03:25:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T03:25:49Z.


Filed #2987 for the five sum-of-absolute-differences operations (v_sad_u8, v_sad_hi_u8, v_sad_u16, v_sad_u32, v_msad_u8) in the direct compute path, from the same VOP3 probe as #2985. I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7208980747 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7208980747). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T03:25:49Z. --- Filed #2987 for the five sum-of-absolute-differences operations (`v_sad_u8`, `v_sad_hi_u8`, `v_sad_u16`, `v_sad_u32`, `v_msad_u8`) in the direct compute path, from the same VOP3 probe as #2985. I am taking it. AI-assisted.
legacy-code-archaeologist commented 2026-11-27 03:31:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T03:31:55Z.


Filed #2991 for two signed counterparts of existing lowerings, v_ashrrev_i64 (next to the #2952 shifts) and v_mad_i32_i24, in the direct compute path. I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7209062843 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7209062843). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T03:31:55Z. --- Filed #2991 for two signed counterparts of existing lowerings, `v_ashrrev_i64` (next to the #2952 shifts) and `v_mad_i32_i24`, in the direct compute path. I am taking it. AI-assisted.
legacy-code-archaeologist commented 2026-11-27 03:39:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T03:39:09Z.


Filed #2995 for the saturating packs v_cvt_pk_u16_u32 and v_cvt_pk_i16_i32 in the direct compute path, from the same VOP3 probe. I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7209162265 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7209162265). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T03:39:09Z. --- Filed #2995 for the saturating packs `v_cvt_pk_u16_u32` and `v_cvt_pk_i16_i32` in the direct compute path, from the same VOP3 probe. I am taking it. AI-assisted.
legacy-code-archaeologist commented 2026-11-27 03:47:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T03:47:24Z.


Filed #2997 for v_cvt_pk_u8_f32 in the direct compute path, with the round-to-nearest-even and saturation contract that gfx2hlsl.py measured on RDNA 2. I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7209273116 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7209273116). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T03:47:24Z. --- Filed #2997 for `v_cvt_pk_u8_f32` in the direct compute path, with the round-to-nearest-even and saturation contract that `gfx2hlsl.py` measured on RDNA 2. I am taking it. AI-assisted.
Leyukaka commented 2026-11-27 03:54:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T03:54:15Z.


Filed #2999 for the wave size of slot 67 compute requests: bit 20 of .sa dword 4 splits the census the way a wave size would, and the C++ compiler compiles every request as wave32 today. I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7209362650 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7209362650). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-27T03:54:15Z. --- Filed #2999 for the wave size of slot 67 compute requests: bit 20 of `.sa` dword 4 splits the census the way a wave size would, and the C++ compiler compiles every request as wave32 today. I am taking it. AI-assisted.
stan495 commented 2026-11-27 03:59:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-27T03:59:43Z.


Filed #3001 to wire .rtv variant requests (#2989) into compile_dxil --watch and --refusals. I am taking it.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7209433295 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7209433295). Originally posted by [stan495](https://github.com/stan495) on 2026-11-27T03:59:43Z. --- Filed #3001 to wire `.rtv` variant requests (#2989) into `compile_dxil --watch` and `--refusals`. I am taking it.
legacy-code-archaeologist commented 2026-11-27 04:12:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T04:12:26Z.


Filed #3000 for v_mad_u64_u32 and v_mad_i64_i32 in the direct compute path. I am taking it, and the PR is open.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7209609138 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7209609138). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T04:12:26Z. --- Filed #3000 for `v_mad_u64_u32` and `v_mad_i64_i32` in the direct compute path. I am taking it, and the PR is open. AI-assisted.
legacy-code-archaeologist commented 2026-11-27 04:35:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T04:35:15Z.


Unfused f32 multiply-adds (v_mad_f32, v_mad_legacy_f32, v_mac_f32, v_mac_legacy_f32) in the direct path: #3005, PR #3007 (controls pass, readback unmeasured on this machine). AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7209919694 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7209919694). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T04:35:15Z. --- Unfused f32 multiply-adds (`v_mad_f32`, `v_mad_legacy_f32`, `v_mac_f32`, `v_mac_legacy_f32`) in the direct path: #3005, PR #3007 (controls pass, readback unmeasured on this machine). AI-assisted.
Leyukaka commented 2026-11-27 04:40:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T04:40:23Z.


Filed #3008 for DPP16 row_shl, row_shr and row_ror in the direct compute path (80 requests in a local capture stop first there). I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7210000073 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7210000073). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-27T04:40:23Z. --- Filed #3008 for DPP16 `row_shl`, `row_shr` and `row_ror` in the direct compute path (80 requests in a local capture stop first there). I am taking it. AI-assisted.
MasterDomino commented 2026-11-27 04:45:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-27T04:45:54Z.


Updated the body for 999e17cd.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7210076093 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7210076093). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-27T04:45:54Z. --- Updated the body for `999e17cd`. - **Landed this round:** #2984, #2989, #2990, #2992, #2994, #2986, #2996, #2998 and #3003, with their issues closed. - **Moved to Done:** #2933, #2934, the Tooling items except a native `shader_cache_rekey.py`, the helper-script fix and CI. - **Still open:** graphics through the runtime (#2978/#2981, #2980), compute bindings (#2975, #2993), the slot 67 wave size (#2999/#3006), and the open instruction issues (#3000, #3005, #3008, #3009). AI-assisted.
legacy-code-archaeologist commented 2026-11-27 05:03:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T05:03:51Z.


Filed #3009 for v_add_nc_i32, v_sub_nc_i32 and the clamped (saturating) 32-bit add/sub forms in the direct path, from the same VOP3 probe; PR #3011 (controls pass, readback unmeasured here). AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7210317905 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7210317905). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T05:03:51Z. --- Filed #3009 for `v_add_nc_i32`, `v_sub_nc_i32` and the clamped (saturating) 32-bit add/sub forms in the direct path, from the same VOP3 probe; PR #3011 (controls pass, readback unmeasured here). AI-assisted.
stan495 commented 2026-11-27 05:06:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-27T05:06:54Z.


Started work on compile_dxil --rekey (native C++ equivalent of tools/startup/shader_cache_rekey.py) in #3012.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7210360558 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7210360558). Originally posted by [stan495](https://github.com/stan495) on 2026-11-27T05:06:54Z. --- Started work on `compile_dxil --rekey` (native C++ equivalent of `tools/startup/shader_cache_rekey.py`) in #3012.
archielcqp-a11y commented 2026-11-27 05:22:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by archielcqp-a11y on 2026-11-27T05:22:56Z.


Filed #3015 for v_perm_b32 and v_lerp_u8 in the direct compute path. I found them with the same kind of per-opcode VOP3 probe: on 999e17cd it refused 68 of 120 names, and these two have gfx2hlsl.py PRs (#2875, #2873) but nothing for the direct path. I'm taking it, and the PR follows.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7210587126 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7210587126). Originally posted by [archielcqp-a11y](https://github.com/archielcqp-a11y) on 2026-11-27T05:22:56Z. --- Filed #3015 for `v_perm_b32` and `v_lerp_u8` in the direct compute path. I found them with the same kind of per-opcode VOP3 probe: on `999e17cd` it refused 68 of 120 names, and these two have `gfx2hlsl.py` PRs (#2875, #2873) but nothing for the direct path. I'm taking it, and the PR follows. AI-assisted.
archielcqp-a11y commented 2026-11-27 05:28:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by archielcqp-a11y on 2026-11-27T05:28:39Z.


Filed #3017 for the twelve non-packed 16-bit integer VOP3 ops (v_add/sub_nc_u16/i16, v_mul_lo_u16, the three 16-bit shifts and v_min/max_u16/i16) in the direct compute path. They keep D[31:16], the rule #669 settled. I'm taking it, and the PR follows.

The issue also notes that the direct path's binary16 v_add/sub/subrev/mul_f16 (#2964) zero D[31:16] in their non-SDWA form, where gfx10 keeps it. I didn't change that.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7210666748 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7210666748). Originally posted by [archielcqp-a11y](https://github.com/archielcqp-a11y) on 2026-11-27T05:28:39Z. --- Filed #3017 for the twelve non-packed 16-bit integer VOP3 ops (`v_add/sub_nc_u16/i16`, `v_mul_lo_u16`, the three 16-bit shifts and `v_min/max_u16/i16`) in the direct compute path. They keep D[31:16], the rule #669 settled. I'm taking it, and the PR follows. The issue also notes that the direct path's binary16 `v_add/sub/subrev/mul_f16` (#2964) zero D[31:16] in their non-SDWA form, where gfx10 keeps it. I didn't change that. AI-assisted.
archielcqp-a11y commented 2026-11-27 05:37:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by archielcqp-a11y on 2026-11-27T05:37:30Z.


Filed #3019: the direct path's binary16 v_add/sub/subrev/mul_f16 (#2964) zero D[31:16], where LLVM's gfx10 rule and the path's own v_cvt_f16_f32 keep it. The fix and the updated native_f16_alu fixture follow as a PR.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7210795441 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7210795441). Originally posted by [archielcqp-a11y](https://github.com/archielcqp-a11y) on 2026-11-27T05:37:30Z. --- Filed #3019: the direct path's binary16 `v_add/sub/subrev/mul_f16` (#2964) zero D[31:16], where LLVM's gfx10 rule and the path's own `v_cvt_f16_f32` keep it. The fix and the updated `native_f16_alu` fixture follow as a PR. AI-assisted.
Leyukaka commented 2026-11-27 05:55:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T05:55:45Z.


Filed #3021 for v_permlane16_b32 and v_permlanex16_b32 in the direct compute path (47 requests in a local capture stop first there after #3010). I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7211066222 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7211066222). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-27T05:55:45Z. --- Filed #3021 for `v_permlane16_b32` and `v_permlanex16_b32` in the direct compute path (47 requests in a local capture stop first there after #3010). I am taking it. AI-assisted.
JB2WIN commented 2026-11-27 06:16:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-27T06:16:17Z.


Filed #3023 for passing the captured heap view types of #2972 into the in-runtime native compute route (#2958), the follow-up named on #2908. I'm taking it, and the PR follows.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7211374322 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7211374322). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-27T06:16:17Z. --- Filed #3023 for passing the captured heap view types of #2972 into the in-runtime native compute route (#2958), the follow-up named on #2908. I'm taking it, and the PR follows. AI-assisted.
sydney-0o commented 2026-11-27 11:30:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by sydney-0o on 2026-11-27T11:30:48Z.


PR #3049 combines the remaining #2975 and #2993 changes on main after #3039. Both source-built hardware fixtures passed on a GTX 1080 Ti with app-local Agility SDK 1.620.2 (wave32 and SM 6.6). The startup stall previously reported in #2975 still needs a separate measurement.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7217160465 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7217160465). Originally posted by [sydney-0o](https://github.com/sydney-0o) on 2026-11-27T11:30:48Z. --- PR #3049 combines the remaining #2975 and #2993 changes on `main` after #3039. Both source-built hardware fixtures passed on a GTX 1080 Ti with app-local Agility SDK 1.620.2 (wave32 and SM 6.6). The startup stall previously reported in #2975 still needs a separate measurement.
pigalot commented 2026-11-27 11:36:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by pigalot on 2026-11-27T11:36:06Z.


Filed #3050 for the 32-bit bit counts and scans in the direct compute path: s_bcnt0/1_i32_b32, s_ff0/1_i32_b32, s_flbit_i32(_b32), v_ffbl_b32, v_ffbh_u32 and v_ffbh_i32. On one local capture, 12 compute requests stop first there. I am taking it, and the PR follows.

This reply was AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7217262402 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7217262402). Originally posted by [pigalot](https://github.com/pigalot) on 2026-11-27T11:36:06Z. --- Filed #3050 for the 32-bit bit counts and scans in the direct compute path: `s_bcnt0/1_i32_b32`, `s_ff0/1_i32_b32`, `s_flbit_i32(_b32)`, `v_ffbl_b32`, `v_ffbh_u32` and `v_ffbh_i32`. On one local capture, 12 compute requests stop first there. I am taking it, and the PR follows. This reply was AI-assisted.
SimSalabimse commented 2026-11-27 11:47:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-27T11:47:34Z.


Smoke result for the current cpp-migration tip (b405cf71, "native: read formatted loads through byte-address rewritten descriptors (#3034)"), which includes the main merge b8f49259. No game files were involved.

Environment (the Windows test PC): RTX 4070 Ti, driver 621.35, Windows 11 25H2 (build 26200), MSVC 19.44, cmake --preset dev, X2W_WITH_OPUS=ON.

Build: configure and build both exit 0.

Tests: the full suite is 2565 tests (audio-device tests excluded) and takes hours at -j 1, so I ran the native/compute subset:
ctest --preset dev --no-tests=error -j 1 -R "^(native_|startup_gfx2hlsl_compute_|startup_compute|startup_native)" -E "startup_audio_output|startup_audio_pacing|startup_audio_provider"

  • 296 tests selected: 289 passed, 4 skipped (WARP-only variants, exit 77), 3 failed. ctest exit code 8, 630 s.
  • Failed, deterministic on a rerun:
    • native_cvt_pk_u8_hardware: GPU result differs in the low bit of the output word (0xa5a5a500 where 0xa5a5a501 is expected, repeating every 16 bytes).
    • native_sdwa_f16_ir and native_sdwa_f16_hardware: case.matches(got) fails for the first add case even though the printed got and want are equal (0xa55a4200), so the check itself looks suspect rather than the result.
  • Parent check: the same three fail at f6cdee10 (b8f49259^1, before the main merge), so the merge did not cause them.

Happy to rerun against a newer tip or on request.

AI-Assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7217480524 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7217480524). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-27T11:47:34Z. --- Smoke result for the current `cpp-migration` tip (`b405cf71`, "native: read formatted loads through byte-address rewritten descriptors (#3034)"), which includes the main merge `b8f49259`. No game files were involved. Environment (the Windows test PC): RTX 4070 Ti, driver 621.35, Windows 11 25H2 (build 26200), MSVC 19.44, `cmake --preset dev`, `X2W_WITH_OPUS=ON`. Build: configure and build both exit 0. Tests: the full suite is 2565 tests (audio-device tests excluded) and takes hours at `-j 1`, so I ran the native/compute subset: `ctest --preset dev --no-tests=error -j 1 -R "^(native_|startup_gfx2hlsl_compute_|startup_compute|startup_native)" -E "startup_audio_output|startup_audio_pacing|startup_audio_provider"` - 296 tests selected: 289 passed, 4 skipped (WARP-only variants, exit 77), 3 failed. ctest exit code 8, 630 s. - Failed, deterministic on a rerun: - `native_cvt_pk_u8_hardware`: GPU result differs in the low bit of the output word (`0xa5a5a500` where `0xa5a5a501` is expected, repeating every 16 bytes). - `native_sdwa_f16_ir` and `native_sdwa_f16_hardware`: `case.matches(got)` fails for the first `add` case even though the printed `got` and `want` are equal (`0xa55a4200`), so the check itself looks suspect rather than the result. - Parent check: the same three fail at `f6cdee10` (`b8f49259^1`, before the main merge), so the merge did not cause them. Happy to rerun against a newer tip or on request. AI-Assisted
RonLogic commented 2026-11-27 13:08:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T13:08:04Z.


I’ll take the direct C++ compute path for v_dot4_i32_i8 and v_dot4_u32_u8. The source-built wave32 requests reach direct ALU operand modifiers on main fca7c35b; #3031 covers the separate gfx2hlsl.py path. This slice is the two byte-dot opcodes plus clamp, including signed bounds, unsigned carry and inactive-lane preservation. I’m testing the packed DXIL operations on the RTX 4070.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7219100195 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7219100195). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-27T13:08:04Z. --- I’ll take the direct C++ compute path for `v_dot4_i32_i8` and `v_dot4_u32_u8`. The source-built wave32 requests reach `direct ALU operand modifiers` on main `fca7c35b`; #3031 covers the separate `gfx2hlsl.py` path. This slice is the two byte-dot opcodes plus clamp, including signed bounds, unsigned carry and inactive-lane preservation. I’m testing the packed DXIL operations on the RTX 4070.
RonLogic commented 2026-11-27 13:14:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T13:14:44Z.


The native byte-dot work is ready in #3060. I’ll take the native C++ halfword dots (v_dot2_i32_i16 and v_dot2_u32_u16) as a separate follow-up to the existing HLSL work in #3036. At 801f4c3b both canonical forms are still refused. The native fixture will verify exact cancellation where the intermediate signed sum crosses INT32_MAX, unsigned totals with two carries, and the wrapping and clamped cases.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7219237248 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7219237248). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-27T13:14:44Z. --- The native byte-dot work is ready in #3060. I’ll take the native C++ halfword dots (`v_dot2_i32_i16` and `v_dot2_u32_u16`) as a separate follow-up to the existing HLSL work in #3036. At `801f4c3b` both canonical forms are still refused. The native fixture will verify exact cancellation where the intermediate signed sum crosses INT32_MAX, unsigned totals with two carries, and the wrapping and clamped cases.
RonLogic commented 2026-11-27 13:33:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T13:33:11Z.


Filed #3066 for native image_gather4_l on a fixed 2D view. The synthetic pixel and compute baseline compiles the existing _lz form and refuses explicit LOD. I’ll take the direct frontend slice, using the nonzero-base SRV and distinct-tap readback from #3065 to check mip addressing.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7219628982 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7219628982). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-27T13:33:11Z. --- Filed #3066 for native `image_gather4_l` on a fixed 2D view. The synthetic pixel and compute baseline compiles the existing `_lz` form and refuses explicit LOD. I’ll take the direct frontend slice, using the nonzero-base SRV and distinct-tap readback from #3065 to check mip addressing.
legacy-code-archaeologist commented 2026-11-27 13:35:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T13:35:32Z.


Filed #3062 and opened PR #3067 (\main) for \s_lshl_b64, \s_lshr_b64\ and \s_ashr_i64\ in the direct C++ compute path (including the _i64\ symbolic-transfer pair-clear fix and \SCC\ liveness).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7219688372 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7219688372). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T13:35:32Z. --- Filed #3062 and opened PR #3067 (\main\) for \s_lshl_b64\, \s_lshr_b64\ and \s_ashr_i64\ in the direct C++ compute path (including the \_i64\ symbolic-transfer pair-clear fix and \SCC\ liveness). AI-assisted.
legacy-code-archaeologist commented 2026-11-27 14:07:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T14:07:23Z.


Filed #3070 and opened PR #3071 (\main) for \s_cmov_b32, \s_cmov_b64\ and \s_cmovk_i32\ in the direct C++ compute path (\D = SCC ? S0 : D, \SCC\ unchanged,
eads_scc\ and \ ransfer()\ updated).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7220368927 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7220368927). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T14:07:23Z. --- Filed #3070 and opened PR #3071 (\main\) for \s_cmov_b32\, \s_cmov_b64\ and \s_cmovk_i32\ in the direct C++ compute path (\D = SCC ? S0 : D\, \SCC\ unchanged, \ eads_scc\ and \ ransfer()\ updated). AI-assisted.
legacy-code-archaeologist commented 2026-11-27 14:13:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T14:13:01Z.


Filed #3072 and opened PR #3073 (\main) for the six 64-bit-source scalar bit counts and bit scans (\s_bcnt0_i32_b64, \s_bcnt1_i32_b64, \s_ff0_i32_b64, \s_ff1_i32_b64, \s_flbit_i32_b64, \s_flbit_i32_i64) in the direct C++ compute path, including the _i32_b64\ \ ransfer()\ pair-preservation fix.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7220499584 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7220499584). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T14:13:01Z. --- Filed #3072 and opened PR #3073 (\main\) for the six 64-bit-source scalar bit counts and bit scans (\s_bcnt0_i32_b64\, \s_bcnt1_i32_b64\, \s_ff0_i32_b64\, \s_ff1_i32_b64\, \s_flbit_i32_b64\, \s_flbit_i32_i64\) in the direct C++ compute path, including the \_i32_b64\ \ ransfer()\ pair-preservation fix. AI-assisted.
JB2WIN commented 2026-11-27 14:21:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-27T14:21:04Z.


Samplers item: opened #3076 (sampler descriptors read from the directly indexed sampler heap; translator first, runtime binding as a follow-up). I am taking it.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7220671640 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7220671640). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-27T14:21:04Z. --- Samplers item: opened #3076 (sampler descriptors read from the directly indexed sampler heap; translator first, runtime binding as a follow-up). I am taking it. AI-assisted.
legacy-code-archaeologist commented 2026-11-27 14:35:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T14:35:38Z.


Claimed #3078 and opened #3081 (s_cmp_eq_u64, s_cmp_lg_u64, s_bitcmp0_b64, s_bitcmp1_b64) on main. AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7220980108 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7220980108). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T14:35:38Z. --- Claimed #3078 and opened #3081 (`s_cmp_eq_u64`, `s_cmp_lg_u64`, `s_bitcmp0_b64`, `s_bitcmp1_b64`) on `main`. AI-assisted.
legacy-code-archaeologist commented 2026-11-27 14:51:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T14:51:30Z.


Claimed #3086 and opened #3089 (s_bfe_u64, s_bfe_i64, s_brev_b64) on main. AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7221316780 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7221316780). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T14:51:30Z. --- Claimed #3086 and opened #3089 (`s_bfe_u64`, `s_bfe_i64`, `s_brev_b64`) on `main`. AI-assisted.
RonLogic commented 2026-11-27 18:20:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T18:20:16Z.


Filed #3069 and opened #3144 for the six native packed 16-bit min/max opcodes. Debug and Release passed all 24 selected tests on the rebased head, including the new packed integer regressions. I’ll take #3145 for packed binary16 ADD/MUL/FMA in direct DXIL. The six baseline probes confirm that all three forms still refuse in both Pixel and Compute.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7225382957 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7225382957). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-27T18:20:16Z. --- Filed #3069 and opened #3144 for the six native packed 16-bit min/max opcodes. Debug and Release passed all 24 selected tests on the rebased head, including the new packed integer regressions. I’ll take #3145 for packed binary16 ADD/MUL/FMA in direct DXIL. The six baseline probes confirm that all three forms still refuse in both Pixel and Compute.
Leyukaka commented 2026-11-27 18:31:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T18:31:40Z.


Filed #3150 for descriptor spills through v_writelane_b32 / v_readlane_b32 in the direct compute path, following #2940. I am taking it. AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7225579690 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7225579690). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-27T18:31:40Z. --- Filed #3150 for descriptor spills through `v_writelane_b32` / `v_readlane_b32` in the direct compute path, following #2940. I am taking it. AI-assisted.
RonLogic commented 2026-11-27 19:03:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T19:03:31Z.


I’ll take #3156 for typed 2D image ADD, unsigned MAX and compare-and-swap in direct Compute DXIL. Synthetic containers for all three are refused at the image instruction on 88cddb09. This is separate from the sampler changes and the existing Python/AOT image atomics.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7226145563 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7226145563). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-27T19:03:31Z. --- I’ll take #3156 for typed 2D image ADD, unsigned MAX and compare-and-swap in direct Compute DXIL. Synthetic containers for all three are refused at the image instruction on `88cddb09`. This is separate from the sampler changes and the existing Python/AOT image atomics.
legacy-code-archaeologist commented 2026-11-27 19:09:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T19:09:34Z.


Filed #3148 and opened PR #3159 (main) lowering v_cvt_f16_u16, v_cvt_f16_i16, v_cvt_u16_f16, and v_cvt_i16_f16 in the direct C++ compute path (with native_compute_ir_dump IR evaluation and compile_dxil controls; hardware skipped 77 on Quadro M1000M).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7226248179 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7226248179). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T19:09:34Z. --- Filed #3148 and opened PR #3159 (`main`) lowering `v_cvt_f16_u16`, `v_cvt_f16_i16`, `v_cvt_u16_f16`, and `v_cvt_i16_f16` in the direct C++ compute path (with `native_compute_ir_dump` IR evaluation and `compile_dxil` controls; `hardware` skipped `77` on Quadro M1000M). AI-assisted.
RonLogic commented 2026-11-27 19:19:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T19:19:29Z.


I’ll take #3163 for global_load_dwordx2/x3/x4 through a proven root address in direct Compute. All three hit the scalar-only decoder refusal at +0x38 on 88cddb09. This is separate from the MUBUF offset work in #3143 and the Python Pixel-AOT GLOBAL variants.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7226413792 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7226413792). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-27T19:19:29Z. --- I’ll take #3163 for `global_load_dwordx2/x3/x4` through a proven root address in direct Compute. All three hit the scalar-only decoder refusal at `+0x38` on `88cddb09`. This is separate from the MUBUF offset work in #3143 and the Python Pixel-AOT GLOBAL variants.
legacy-code-archaeologist commented 2026-11-27 20:48:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-27T20:48:56Z.


Filed #3186 and opened a PR (main) lowering v_fma_f16, v_fmac_f16, v_fmamk_f16, and v_fmaak_f16 in the direct C++ path with single-rounded integer FMA (native_fma_f16_ir + native_fma_f16_controls; hardware skipped 77).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7227866375 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7227866375). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-27T20:48:56Z. --- Filed #3186 and opened a PR (`main`) lowering `v_fma_f16`, `v_fmac_f16`, `v_fmamk_f16`, and `v_fmaak_f16` in the direct C++ path with single-rounded integer FMA (`native_fma_f16_ir` + `native_fma_f16_controls`; `hardware` skipped `77`). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 00:05:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T00:05:11Z.


Filed #3226 and opened https://github.com/R0Y00/Xbox2Windows/pull/3230 targeting main to accept inline binary16 float (240..248, with [31:16] = 0 per gfx1013) and inline integer (128..208) constants in DirectCompute::packed_f16_alu() and DirectCompute::packed_minmax() (native_packed_f16_inline_ir, controls, pixel_warp, and pixel_hardware passed on Intel HD Graphics 530; compute_hardware skipped 77).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7230635326 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7230635326). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T00:05:11Z. --- Filed #3226 and opened https://github.com/R0Y00/Xbox2Windows/pull/3230 targeting `main` to accept inline binary16 float (`240..248`, with `[31:16] = 0` per gfx1013) and inline integer (`128..208`) constants in `DirectCompute::packed_f16_alu()` and `DirectCompute::packed_minmax()` (`native_packed_f16_inline_ir`, `controls`, `pixel_warp`, and `pixel_hardware` passed on Intel HD Graphics 530; `compute_hardware` skipped `77`). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 01:19:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:19:42Z.


Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3239 to lower VOP3P v_dot2_f32_f16 (0x13) in the direct Compute and Pixel DXIL path (Fixes #3238).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7231586462 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7231586462). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T01:19:42Z. --- Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3239 to lower VOP3P `v_dot2_f32_f16` (`0x13`) in the direct Compute and Pixel DXIL path (Fixes #3238). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 01:39:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:39:06Z.


Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3244 to accept GLC and DLC cache-policy flags on read-only image operations in DirectCompute::image_io() (Fixes #3242, Refs #3224).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7231820513 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7231820513). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T01:39:06Z. --- Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3244 to accept `GLC` and `DLC` cache-policy flags on read-only image operations in `DirectCompute::image_io()` (Fixes #3242, Refs #3224). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 01:46:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:46:36Z.


Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3250 to lower v_madmk_f32 (VOP2 0x20) and v_madak_f32 (VOP2 0x21) in direct Compute and Pixel DXIL (Fixes #3249, Refs #3005).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7231908565 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7231908565). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T01:46:36Z. --- Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3250 to lower `v_madmk_f32` (`VOP2 0x20`) and `v_madak_f32` (`VOP2 0x21`) in direct Compute and Pixel DXIL (Fixes #3249, Refs #3005). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 01:59:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:59:47Z.


Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3254 to lower v_rcp_iflag_f32 (VOP1 0x2b, VOP3 0x1ab, SDWA, DPP16) identically to v_rcp_f32 in direct Compute and Pixel DXIL (Fixes #3252).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7232056510 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7232056510). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T01:59:47Z. --- Opened PR https://github.com/R0Y00/Xbox2Windows/pull/3254 to lower `v_rcp_iflag_f32` (`VOP1 0x2b`, `VOP3 0x1ab`, SDWA, DPP16) identically to `v_rcp_f32` in direct Compute and Pixel DXIL (Fixes #3252). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 02:19:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:19:30Z.


Opened PR #3257 (Fixes #3256) to lower plain VOP2 v_dot2c_f32_f16 (0x02) in the direct Compute and Pixel DXIL paths on top of merged PR #3239 (v_dot2_f32_f16), with binary32 subnormal preservation, full 0x8000ffu mode tracking, and IR/DXIL/WARP/hardware-pixel verification (_compute_hardware skipped 77 on Intel HD 530).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7232285434 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7232285434). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T02:19:30Z. --- Opened PR #3257 (Fixes #3256) to lower plain VOP2 `v_dot2c_f32_f16` (`0x02`) in the direct Compute and Pixel DXIL paths on top of merged PR #3239 (`v_dot2_f32_f16`), with binary32 subnormal preservation, full `0x8000ffu` mode tracking, and IR/DXIL/WARP/hardware-pixel verification (`_compute_hardware` skipped `77` on Intel HD 530). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 02:28:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:28:40Z.


Opened PR #3259 (Fixes #3258, Refs #3224) to lower plain VOP2 v_pk_fmac_f16 (0x3c) in direct Compute and Pixel DXIL via fused_half_rne, with 17 cases and 8 refusals verified in dev and release (/O2) IR/controls/WARP/hardware-pixel (_compute_hardware skipped 77 on Intel HD 530).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7232388096 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7232388096). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T02:28:40Z. --- Opened PR #3259 (Fixes #3258, Refs #3224) to lower plain VOP2 `v_pk_fmac_f16` (`0x3c`) in direct Compute and Pixel DXIL via `fused_half_rne`, with `17` cases and `8` refusals verified in `dev` and `release` (`/O2`) IR/controls/WARP/hardware-pixel (`_compute_hardware` skipped `77` on Intel HD 530). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 02:37:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:37:16Z.


Opened a PR to support VOP3P neg_lo, neg_hi, and clamp modifiers on v_pk_min_f16 and v_pk_max_f16 (Fixes #3261, Refs #3224): controls and WARP/Quadro M1000M pixel tests pass in dev and release (/O2) (native_packed_minmax_compute_hardware skipped 77 on Intel HD 530).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7232485096 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7232485096). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T02:37:16Z. --- Opened a PR to support VOP3P `neg_lo`, `neg_hi`, and `clamp` modifiers on `v_pk_min_f16` and `v_pk_max_f16` (Fixes #3261, Refs #3224): controls and WARP/Quadro M1000M pixel tests pass in `dev` and `release` (`/O2`) (`native_packed_minmax_compute_hardware` skipped `77` on Intel HD 530). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 02:49:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:49:02Z.


Opened a PR to lower VOP3 v_min3_f16, v_max3_f16, and v_med3_f16 in direct Compute and Pixel DXIL (Fixes #3264): dev and release (/O2) IR/controls (24 cases, 7 refusals) and lossless WARP/Quadro M1000M pixel draws (12 draws / 24 cases) pass, and 71/71 native_.*_(controls|ir) pass (_compute_hardware skipped 77 on Intel HD 530).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7232612382 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7232612382). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T02:49:02Z. --- Opened a PR to lower VOP3 `v_min3_f16`, `v_max3_f16`, and `v_med3_f16` in direct Compute and Pixel DXIL (Fixes #3264): `dev` and `release` (`/O2`) IR/controls (`24` cases, `7` refusals) and lossless WARP/Quadro M1000M pixel draws (`12` draws / `24` cases) pass, and `71/71` `native_.*_(controls|ir)` pass (`_compute_hardware` skipped `77` on Intel HD 530). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 03:08:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T03:08:16Z.


Opened a PR to lower VOP1 (0x5f) and VOP3 (0x1df) v_fract_f16 in direct Compute and Pixel DXIL (Fixes #3267): dev and release (/O2) IR/controls (29 cases, 10 refusals) and lossless WARP/Quadro M1000M pixel draws (14 draws / 28 cases) pass, and 71/71 native_.*_(controls|ir) pass (_compute_hardware skipped 77 on Intel HD 530).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7232820602 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7232820602). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T03:08:16Z. --- Opened a PR to lower VOP1 (`0x5f`) and VOP3 (`0x1df`) `v_fract_f16` in direct Compute and Pixel DXIL (Fixes #3267): `dev` and `release` (`/O2`) IR/controls (`29` cases, `10` refusals) and lossless WARP/Quadro M1000M pixel draws (`14` draws / `28` cases) pass, and `71/71` `native_.*_(controls|ir)` pass (`_compute_hardware` skipped `77` on Intel HD 530). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 05:28:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T05:28:57Z.


Opened PR for #3287 (shader: support VOP3P clamp on v_pk_add_f16, v_pk_mul_f16, and v_pk_fma_f16) admitting VOP3P CLAMP on v_pk_add_f16, v_pk_mul_f16, and v_pk_fma_f16 in direct Compute and Pixel DXIL (22 cases, 9 refusals; 11/12 dev & release tests passed across IR/controls/WARP/Quadro M1000M pixel, native_packed_f16_clamp_compute_hardware skipped 77 on Intel HD 530).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7234695808 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7234695808). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T05:28:57Z. --- Opened PR for #3287 (`shader: support VOP3P clamp on v_pk_add_f16, v_pk_mul_f16, and v_pk_fma_f16`) admitting VOP3P `CLAMP` on `v_pk_add_f16`, `v_pk_mul_f16`, and `v_pk_fma_f16` in direct Compute and Pixel DXIL (`22` cases, `9` refusals; `11/12` dev & release tests passed across IR/controls/WARP/Quadro M1000M pixel, `native_packed_f16_clamp_compute_hardware` skipped `77` on Intel HD 530). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 05:43:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T05:43:46Z.


Opened PR for #3291 lowering VOP1/VOP3 v_cvt_norm_i16_f16 and v_cvt_norm_u16_f16 in direct Compute and Pixel DXIL using exact 32-bit integer RNE arithmetic (30 cases, 11 refusals; dev and release IR/DXIL/WARP/Quadro M1000M pixel tests pass; native_cvt_norm_f16_compute_hardware skipped 77 on Intel HD 530).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7234848775 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7234848775). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T05:43:46Z. --- Opened PR for #3291 lowering VOP1/VOP3 `v_cvt_norm_i16_f16` and `v_cvt_norm_u16_f16` in direct Compute and Pixel DXIL using exact 32-bit integer RNE arithmetic (`30` cases, `11` refusals; `dev` and `release` IR/DXIL/WARP/Quadro M1000M pixel tests pass; `native_cvt_norm_f16_compute_hardware` skipped `77` on Intel HD 530). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 05:50:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T05:50:37Z.


Opened PR for #3294 lowering VOP3 v_cvt_pknorm_i16_f32 (0x368) and v_cvt_pknorm_u16_f32 (0x369) in direct Compute and Pixel DXIL via exact pure-32-bit integer RNE arithmetic (26 cases, 8 refusals; dev and release IR/DXIL/WARP/Quadro M1000M pixel tests pass; native_cvt_pknorm_f32_compute_hardware skipped 77 on Intel HD 530).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7234919302 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7234919302). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T05:50:37Z. --- Opened PR for #3294 lowering VOP3 `v_cvt_pknorm_i16_f32` (`0x368`) and `v_cvt_pknorm_u16_f32` (`0x369`) in direct Compute and Pixel DXIL via exact pure-32-bit integer RNE arithmetic (`26` cases, `8` refusals; `dev` and `release` IR/DXIL/WARP/Quadro M1000M pixel tests pass; `native_cvt_pknorm_f32_compute_hardware` skipped `77` on Intel HD 530). AI-assisted.
legacy-code-archaeologist commented 2026-11-28 06:05:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T06:05:53Z.


Opened PR #3297 (Fixes #3296, Refs #2935) lowering the remaining 12 SOP1 EXEC-mask instructions (s_xor_saveexec_b32, s_andn2_saveexec_b32, s_orn2_saveexec_b32, s_nand_saveexec_b32, s_nor_saveexec_b32, s_xnor_saveexec_b32, s_andn1_saveexec_b32, s_orn1_saveexec_b32, s_andn1_wrexec_b32, s_andn1_saveexec_b64, s_orn1_saveexec_b64, s_andn1_wrexec_b64) in the direct Compute DXIL path.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7235078385 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7235078385). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T06:05:53Z. --- Opened PR #3297 (Fixes #3296, Refs #2935) lowering the remaining 12 SOP1 EXEC-mask instructions (`s_xor_saveexec_b32`, `s_andn2_saveexec_b32`, `s_orn2_saveexec_b32`, `s_nand_saveexec_b32`, `s_nor_saveexec_b32`, `s_xnor_saveexec_b32`, `s_andn1_saveexec_b32`, `s_orn1_saveexec_b32`, `s_andn1_wrexec_b32`, `s_andn1_saveexec_b64`, `s_orn1_saveexec_b64`, `s_andn1_wrexec_b64`) in the direct Compute DXIL path. AI-assisted.
legacy-code-archaeologist commented 2026-11-28 06:21:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T06:21:16Z.


Opened PR #3300 (Fixes #3298, Refs #2935) lowering v_sin_f16 (0x60/0x1e0) and v_cos_f16 (0x61/0x1e1) including SDWA and VOP3 abs/neg modifiers in the direct Compute DXIL path.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7235240942 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7235240942). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T06:21:16Z. --- Opened PR #3300 (Fixes #3298, Refs #2935) lowering `v_sin_f16` (`0x60`/`0x1e0`) and `v_cos_f16` (`0x61`/`0x1e1`) including SDWA and VOP3 `abs`/`neg` modifiers in the direct Compute DXIL path. AI-assisted.
Leyukaka commented 2026-11-29 21:51:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T21:51:46Z.


Taking this: let the runtime's native compute route use a valid cached frontend result (.csir) before it translates live. On main ff9dcef0 the route calls translate_compute at first Dispatch (src/startup_stubs/d3d12_compute_dispatch.inl:509) unless X2W_NATIVE_COMPUTE_PACK holds the key (:499-507); the .csir files that compile_dxil writes through prepare_direct_compute (src/direct_compute_cache.cpp:368) are never read there, so an offline batch over saved requests does not shorten a later run without a pack.

  • Change: look up the cached entry with the same revision and request-digest checks as the pack, then fall back to the live translation on a miss.
  • Tests: a key compiled offline is used with no live frontend run; a stale or mismatched entry is ignored and translated live.
  • Not covered: the pack format and its 256 MiB limit (#3473, #3484), --jobs (#3472).
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7263210256 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7263210256). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-29T21:51:46Z. --- Taking this: let the runtime's native compute route use a valid cached frontend result (`.csir`) before it translates live. On `main` `ff9dcef0` the route calls `translate_compute` at first Dispatch (`src/startup_stubs/d3d12_compute_dispatch.inl:509`) unless `X2W_NATIVE_COMPUTE_PACK` holds the key (`:499-507`); the `.csir` files that `compile_dxil` writes through `prepare_direct_compute` (`src/direct_compute_cache.cpp:368`) are never read there, so an offline batch over saved requests does not shorten a later run without a pack. - Change: look up the cached entry with the same revision and request-digest checks as the pack, then fall back to the live translation on a miss. - Tests: a key compiled offline is used with no live frontend run; a stale or mismatched entry is ignored and translated live. - Not covered: the pack format and its 256 MiB limit (#3473, #3484), `--jobs` (#3472).
mumba17 commented 2026-11-30 14:34:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-30T14:34:23Z.


Withdrawn: there is no gap here. I measured it before anyone acted on it.

My numbers came from a request cache built by runs that used the shared preset's -Translate. In run.ps1, that selects the Python watcher instead of native shaders, and that path never writes .ps57in. Of the 1,971 graphics requests in that cache, 1,915 are raw slot 57 pairs, so 1,053 of them stopped at raw graphics requires its captured pixel entry once the catalog was indexed.

In a native run (run_preset.py --set translate=false) on main 077bff3a (RTX 3090, 600 s, fresh cache):

Graphics requests Count
published 6
raw slot 57 pairs, with .ps57in written 4
stream containers 2
refused after --index-graphics-interfaces 0

The stream pairs use the standard ADDR = 2 layout, so direct_compute_cache.cpp derives the record itself. For anyone reading a refusal census: count only caches from native runs, or the pixel-entry class is inflated.

(This comment first claimed, then asked about, a runtime .psin producer. Neither is needed.)

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7281587078 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2935#issuecomment-7281587078). Originally posted by [mumba17](https://github.com/mumba17) on 2026-11-30T14:34:23Z. --- **Withdrawn: there is no gap here.** I measured it before anyone acted on it. My numbers came from a request cache built by runs that used the shared preset's `-Translate`. In `run.ps1`, that selects the Python watcher *instead of* native shaders, and that path never writes `.ps57in`. Of the 1,971 graphics requests in that cache, 1,915 are raw slot 57 pairs, so 1,053 of them stopped at `raw graphics requires its captured pixel entry` once the catalog was indexed. In a native run (`run_preset.py --set translate=false`) on `main` `077bff3a` (RTX 3090, 600 s, fresh cache): | Graphics requests | Count | |---|---:| | published | 6 | | raw slot 57 pairs, with `.ps57in` written | 4 | | stream containers | 2 | | refused after `--index-graphics-interfaces` | **0** | The stream pairs use the standard ADDR = 2 layout, so `direct_compute_cache.cpp` derives the record itself. For anyone reading a refusal census: count only caches from native runs, or the pixel-entry class is inflated. *(This comment first claimed, then asked about, a runtime `.psin` producer. Neither is needed.)*
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#2935
No description provided.