native: translate GPU-selected heap textures through view tokens in compute #3544

Merged
JB2WIN merged 8 commits from upstream-pr/3544 into main 2026-12-02 20:13:41 +00:00
JB2WIN commented 2026-11-30 03:38:19 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-30T03:38:19Z.


Change

#3023 stage 3, PR 1: translator only. A compute program can load a texture with s_load_dwordx8 from the directly indexed resource heap at an SGPR offset that comes from GPU data. Such a program is now translated, provided every use of the eight words is the T# of a supported image instruction. Supported: 1D, 2D or 2D-array image_load, load_mip, sample_l, sample_lz, get_resinfo, and 2D gather4_lz; samplers literal, or fixed-index from the sampler heap for sample_l/_lz.

The shader reads the 32-byte view token in title heap memory at the guest's own byte address (so + imm, 4-byte aligned, overflow refused). It checks:

  • the magic 0x56573258;
  • id < count;
  • the dimension recorded for the id: dims[min(id, count - 1)] == 1 + dim.

It then samples ResourceDescriptorHeap[base(dim) + id]. Otherwise it reads a null slot and counts one miss per wave (waveIsFirstLane + atomic add). There is no slot mirror and no per-dispatch heap scan. The heap measured in #3023 has about 1.25 M logical descriptors, of which about 15.5 k hold tokens.

The manifest names the runtime-provided views and words: srv N heaptok, srv N heaptokdims, uav N heaptokmiss, and five udsrc K heaptok … words. The runtime reader still refuses them by name (heap token textures are not bound yet), so dispatch behaviour is unchanged. Binding them is PR 2, which needs R0Y00's agreement on the outline in #3023.

A load with any other use is not eligible. That covers a copy, a numeric read, an image field read, a read after a join with a path that skipped the load, a partial T#, or a mix with an s_add_u32 heap address. Such a program keeps exactly today's symbols, DXIL and refusal text (two-pass analysis).

Design status, stated openly: the design went through four Elephant/Goldfish rounds with fresh critic and readiness reviewers, and they did not reach agreement. After the third revision the remaining points were decided by the author, documented point by point, and the design was frozen. A fresh precommit review then checked the code against it, and its findings (join loss, a logic_error instead of a refusal) are fixed here. So this is not an independently approved design. Please review it with that in mind.

Refs #3023, #3224. Prerequisites up: #3500, #3524, #3526, #3540.

Verification

Build on 2ff74a6a (Windows 11, NVIDIA GeForce RTX 3080).

  • native_heap_token_texture_hardware (30 assertions):

    • valid 1D, 2D and 2D-array ids give the right texels and 0 misses;
    • wrong magic, id == count, id 0xffffffff, a dims mismatch, a content token, id 0 and an empty token each give the null texel;
    • the miss count equals the number of waves (3).

    _warp exits 77 (no 32-lane waves).

  • native_heap_token_texture_controls (DXIL validator):

    • the manifest lines, the handle and op forms;
    • consumer refusals, each with today's text: s_mov copy, image_store, comparison, cube, 3D, numeric s_and_b32, image field read, join, join plus copy, numeric read after a join, partial T#, heap-address mix;
    • five address refusals;
    • an eligible load without a consumer publishes no token line.
  • native_compute_manifest_reasons (6 refusals, 1 publish) and startup_compute_dispatch_texture_check.py (4 reader refusals).

  • ctest -R "native_heap_token|native_compute_manifest|native_global_srv_heap|startup_compute|native_direct|native_sampler|native_compile_dxil|native_startup_request|startup_triage": 222 pass, 0 fail. Baseline 211, 0 fail.

  • Revert (src/ back to 2ff74a6a, the build succeeds): the new tests fail on assertions (tex2d: compiles, fixture mode tex2d exits 0). Before the join fix, join, join_copy and numeric_join gave other refusal texts.

  • native_compute_output_revision goes from 1 to 2. Three tests that hard-coded native 1 now read the revision from src/native_compute_output.h; their assertions are the same.

Evidence and follow-up

All fixtures are source-built. No game data.

Local census on my 2,689 slot-67 compute requests (counts only, compile_dxil --refusals), against the same main without the change:

  • direct resource-heap load requires the selected GPU slot and its view type goes from 1332 to 1323;
  • not refused goes from 828 to 831.

A3: the 828 manifests that existed before are byte-identical apart from the native revision line. This was measured on the first revision; the review fixes only make more loads ineligible. Most token loads are not eligible yet. An earlier note here named image field reads as the main reason; that was wrong. A follow-up branch that makes field reads eligible moves 0 requests in the same census, so the remaining loads fail other eligibility rules, which I still have to break down.

Not covered: the cache decode of the new kinds and of heap_token_words (only through prepare_direct_compute); gather4, sample_l, load_mip and resinfo at run time (compile only, validator passes); a null slot that every dimension may read (PR 2 must provide one).

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed. (docs/experiments/native-heap-token-textures.md)
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted.

🤖 Generated with Claude Code

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5558529841 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3544). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-30T03:38:19Z. --- ## Change #3023 stage 3, PR 1: translator only. A compute program can load a texture with `s_load_dwordx8` from the directly indexed resource heap at an SGPR offset that comes from GPU data. Such a program is now translated, provided every use of the eight words is the T# of a supported image instruction. Supported: 1D, 2D or 2D-array `image_load`, `load_mip`, `sample_l`, `sample_lz`, `get_resinfo`, and 2D `gather4_lz`; samplers literal, or fixed-index from the sampler heap for `sample_l`/`_lz`. The shader reads the 32-byte view token in title heap memory at the guest's own byte address (`so + imm`, 4-byte aligned, overflow refused). It checks: - the magic `0x56573258`; - `id < count`; - the dimension recorded for the id: `dims[min(id, count - 1)] == 1 + dim`. It then samples `ResourceDescriptorHeap[base(dim) + id]`. Otherwise it reads a null slot and counts one miss per wave (`waveIsFirstLane` + atomic add). There is no slot mirror and no per-dispatch heap scan. The heap measured in #3023 has about 1.25 M logical descriptors, of which about 15.5 k hold tokens. The manifest names the runtime-provided views and words: `srv N heaptok`, `srv N heaptokdims`, `uav N heaptokmiss`, and five `udsrc K heaptok …` words. The runtime reader still refuses them by name (`heap token textures are not bound yet`), so dispatch behaviour is unchanged. Binding them is PR 2, which needs R0Y00's agreement on the outline in #3023. A load with any other use is not eligible. That covers a copy, a numeric read, an image field read, a read after a join with a path that skipped the load, a partial T#, or a mix with an `s_add_u32` heap address. Such a program keeps exactly today's symbols, DXIL and refusal text (two-pass analysis). **Design status, stated openly:** the design went through four Elephant/Goldfish rounds with fresh critic and readiness reviewers, and they did not reach agreement. After the third revision the remaining points were decided by the author, documented point by point, and the design was frozen. A fresh precommit review then checked the code against it, and its findings (join loss, a `logic_error` instead of a refusal) are fixed here. So this is not an independently approved design. Please review it with that in mind. Refs #3023, #3224. Prerequisites up: #3500, #3524, #3526, #3540. ## Verification Build on `2ff74a6a` (Windows 11, NVIDIA GeForce RTX 3080). - `native_heap_token_texture_hardware` (30 assertions): - valid 1D, 2D and 2D-array ids give the right texels and 0 misses; - wrong magic, id == count, id 0xffffffff, a dims mismatch, a content token, id 0 and an empty token each give the null texel; - the miss count equals the number of waves (3). `_warp` exits 77 (no 32-lane waves). - `native_heap_token_texture_controls` (DXIL validator): - the manifest lines, the handle and op forms; - consumer refusals, each with today's text: s_mov copy, image_store, comparison, cube, 3D, numeric `s_and_b32`, image field read, join, join plus copy, numeric read after a join, partial T#, heap-address mix; - five address refusals; - an eligible load without a consumer publishes no token line. - `native_compute_manifest_reasons` (6 refusals, 1 publish) and `startup_compute_dispatch_texture_check.py` (4 reader refusals). - `ctest -R "native_heap_token|native_compute_manifest|native_global_srv_heap|startup_compute|native_direct|native_sampler|native_compile_dxil|native_startup_request|startup_triage"`: 222 pass, 0 fail. Baseline 211, 0 fail. - Revert (`src/` back to `2ff74a6a`, the build succeeds): the new tests fail on assertions (`tex2d: compiles`, `fixture mode tex2d exits 0`). Before the join fix, `join`, `join_copy` and `numeric_join` gave other refusal texts. - `native_compute_output_revision` goes from 1 to 2. Three tests that hard-coded `native 1` now read the revision from `src/native_compute_output.h`; their assertions are the same. ## Evidence and follow-up All fixtures are source-built. No game data. Local census on my 2,689 slot-67 compute requests (counts only, `compile_dxil --refusals`), against the same `main` without the change: - `direct resource-heap load requires the selected GPU slot and its view type` goes from 1332 to 1323; - not refused goes from 828 to 831. A3: the 828 manifests that existed before are byte-identical apart from the `native` revision line. This was measured on the first revision; the review fixes only make more loads ineligible. Most token loads are not eligible yet. An earlier note here named image field reads as the main reason; that was wrong. A follow-up branch that makes field reads eligible moves 0 requests in the same census, so the remaining loads fail other eligibility rules, which I still have to break down. Not covered: the cache decode of the new kinds and of `heap_token_words` (only through `prepare_direct_compute`); gather4, sample_l, load_mip and resinfo at run time (compile only, validator passes); a null slot that every dimension may read (PR 2 must provide one). ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. (`docs/experiments/native-heap-token-textures.md`) - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
JB2WIN commented 2026-11-30 03:56:26 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-30T03:56:26Z.


The red Linux Python job here is startup_triage_run_check.py failing on main itself (the #3471 reason missing from the triage list), not this change. The one-line fix is #3548.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7268329240 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3544#issuecomment-7268329240). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-30T03:56:26Z. --- The red Linux Python job here is `startup_triage_run_check.py` failing on `main` itself (the #3471 reason missing from the triage list), not this change. The one-line fix is #3548. AI-assisted.
lukaslw-lab commented 2026-11-30 07:31:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-30T07:31:47Z.

Review: APPROVED


Reviewed ec7318d8 by reading the diff; not built or run.

Verdict: approve. Translator-only: both runtime routes still refuse these programs. No MUST; the SHOULDs can follow here or in PR 2.

  • SHOULD The miss counter ignores EXEC (src/gfx1013_direct_compute.inl:1086-1088). The image op is predicated on active() (:1546), but missed is only !valid && waveIsFirstLane. A wave that reaches the instruction with no active guest lanes still counts a miss. Gate it on an active lane or emit it inside the image predicate. The fixture only runs full waves.
  • SHOULD The native-only route does not refuse these by name. With native_shaders_only(), load_compute_translation returns before the manifest reader (src/startup_stubs/d3d12_compute_dispatch.inl:280). It then translates in process and throws view kind 29 is not bound for a natively translated program (:559). One heap_token_words check before the bindings loop would give triage the same text on both routes.
  • SHOULD Say why native_compute_output_revision goes to 2 (src/native_compute_output.h:8). The bump marks every published compute manifest another compiler revision; rebuild it, although per A3 the existing ones differ only in that line. If the goal is retrying refused requests, say so in the doc.
  • NIT conservative_sgpr_reads (src/gfx1013_compute_native.cpp:1745-1777): its comment says unknown reads "read everything", but default: reads nothing. VOP3 mask/carry SGPR pairs (v_cndmask_b32, v_addc_co_u32) count as one register. The eligibility proof depends on this list.
  • Checked, no finding: the encode/decode change is safe (the cache key hashes direct_compute_cache.cpp); dx_kind 1/2/7 is right; content tokens fail id < count; count == 0 stays invalid.

Tests: _controls reaches the pre-pass refusals, the manifest writer and the module shape. _hardware checks the token check and the miss count, with full EXEC only. CI ran none of the new or changed tests (none is in the Windows pr filter), so the hardware results come only from the author's RTX 3080 run.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6108314706 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3544#pullrequestreview-6108314706). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-30T07:31:47Z. **Review:** APPROVED --- Reviewed `ec7318d8` by reading the diff; not built or run. **Verdict: approve.** Translator-only: both runtime routes still refuse these programs. No MUST; the SHOULDs can follow here or in PR 2. - **SHOULD** The miss counter ignores EXEC (`src/gfx1013_direct_compute.inl:1086-1088`). The image op is predicated on `active()` (`:1546`), but `missed` is only `!valid && waveIsFirstLane`. A wave that reaches the instruction with no active guest lanes still counts a miss. Gate it on an active lane or emit it inside the image predicate. The fixture only runs full waves. - **SHOULD** The native-only route does not refuse these by name. With `native_shaders_only()`, `load_compute_translation` returns before the manifest reader (`src/startup_stubs/d3d12_compute_dispatch.inl:280`). It then translates in process and throws `view kind 29 is not bound for a natively translated program` (`:559`). One `heap_token_words` check before the bindings loop would give triage the same text on both routes. - **SHOULD** Say why `native_compute_output_revision` goes to 2 (`src/native_compute_output.h:8`). The bump marks every published compute manifest `another compiler revision; rebuild it`, although per A3 the existing ones differ only in that line. If the goal is retrying refused requests, say so in the doc. - **NIT** `conservative_sgpr_reads` (`src/gfx1013_compute_native.cpp:1745-1777`): its comment says unknown reads "read everything", but `default:` reads nothing. VOP3 mask/carry SGPR pairs (`v_cndmask_b32`, `v_addc_co_u32`) count as one register. The eligibility proof depends on this list. - Checked, no finding: the `encode`/`decode` change is safe (the cache key hashes `direct_compute_cache.cpp`); `dx_kind` 1/2/7 is right; content tokens fail `id < count`; `count == 0` stays invalid. Tests: `_controls` reaches the pre-pass refusals, the manifest writer and the module shape. `_hardware` checks the token check and the miss count, with full EXEC only. CI ran none of the new or changed tests (none is in the Windows `pr` filter), so the hardware results come only from the author's RTX 3080 run.
JB2WIN commented 2026-11-30 17:49:35 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-30T17:49:35Z.


@lukaslw-lab thanks for the review. Addressed in 9917aa9c, then merged main (cf0f40be):

  • Miss counter and EXEC: the miss count and its branch now use ballot(active()) != 0, so a wave with no active lanes counts nothing. New rig control tex2d_execnone expects 0 misses; it fails without the fix.
  • Native-only route: a heaptok program on the native-only path now refuses with the named reason instead of an empty text (startup_compute_dispatch_native_check.py, heap_token_refusal).
  • Revision: native_compute_output.h and the doc now state why native_compute_output_revision moves, so refused requests are retried.
  • NIT (conservative SGPR reads): control-flow encodings, the default branch and the v_cndmask pair are handled; mask_pair covers the pair.

The main merge keeps both the heap token words and the sampler-heap cache fields; encode and decode are symmetric.
Tests: build clean, ctest filter native_|startup_compute|heap|manifest|direct_compute|sampler: 800/801 pass (WARP cases skip). The one failure, native_direct_mesh (too-many-primitives), fails the same way on main at 077bff3a, so it is not from this PR. Hardware checks ran on one GPU (RTX 3080) only.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7286902929 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3544#issuecomment-7286902929). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-11-30T17:49:35Z. --- @lukaslw-lab thanks for the review. Addressed in 9917aa9c, then merged main (cf0f40be): - **Miss counter and EXEC:** the miss count and its branch now use `ballot(active()) != 0`, so a wave with no active lanes counts nothing. New rig control `tex2d_execnone` expects 0 misses; it fails without the fix. - **Native-only route:** a heaptok program on the native-only path now refuses with the named reason instead of an empty text (`startup_compute_dispatch_native_check.py`, `heap_token_refusal`). - **Revision:** `native_compute_output.h` and the doc now state why `native_compute_output_revision` moves, so refused requests are retried. - **NIT (conservative SGPR reads):** control-flow encodings, the default branch and the `v_cndmask` pair are handled; `mask_pair` covers the pair. The main merge keeps both the heap token words and the sampler-heap cache fields; encode and decode are symmetric. Tests: build clean, ctest filter `native_|startup_compute|heap|manifest|direct_compute|sampler`: 800/801 pass (WARP cases skip). The one failure, `native_direct_mesh` (`too-many-primitives`), fails the same way on main at 077bff3a, so it is not from this PR. Hardware checks ran on one GPU (RTX 3080) only. AI-assisted.
lukaslw-lab commented 2026-11-30 18:06:33 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-30T18:06:33Z.

Review: APPROVED


Reviewed cf0f40be by reading the diff; not built or run.

Verdict: approve. Translator only, and both runtime routes still refuse these programs. 9917aa9c handles our three SHOULDs. No MUST, no SHOULD.

  • Checked, no finding:
    • Miss count (src/gfx1013_direct_compute.inl:1176-1178): the miss branch now also needs ballot(active()) != 0. Ballot component 0 is enough because the route needs 32-lane host waves, and a wave64 guest runs as two of them, each with its own active() half.
    • Native-only refusal (src/startup_stubs/d3d12_compute_dispatch.inl:557): the check comes after both the pack branch and the in-process branch. The pack decode restores heap_token_words (src/direct_compute_cache.cpp:162), so a packed program is refused with the same text. triage_run.py lists the reason.
    • conservative_sgpr_reads: an unknown encoding now reads s0..s105, so the check fails closed.
  • NIT The VOP3 carry-in of v_add_co_ci_u32, v_sub_co_ci_u32 and v_subrev_co_ci_u32 (src2) is still counted as one SGPR. A wave64 guest reads a pair there, the same case as the v_cndmask_b32 line added at src/gfx1013_compute_native.cpp:1891.
  • NIT For a wave64 guest, the miss counter adds one per 32-lane half that has an active lane. The doc says "one count per wave". The fixture runs wave32 only.

Tests: tex2d_execnone covers the EXEC case, and heap_token_refusal covers the native-only text with a control. No CI run exists at this head yet. The last run (ec7318d8) failed only startup_triage_run_check, on a reason from main that #3542 fixed, and the merged head includes that fix. The new hardware and controls tests are not in the pr filter, so the RTX 3080 run is still the only hardware evidence.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6117725255 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3544#pullrequestreview-6117725255). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-30T18:06:33Z. **Review:** APPROVED --- Reviewed `cf0f40be` by reading the diff; not built or run. **Verdict: approve.** Translator only, and both runtime routes still refuse these programs. `9917aa9c` handles our three SHOULDs. No MUST, no SHOULD. - Checked, no finding: - Miss count (`src/gfx1013_direct_compute.inl:1176-1178`): the miss branch now also needs `ballot(active()) != 0`. Ballot component 0 is enough because the route needs 32-lane host waves, and a wave64 guest runs as two of them, each with its own `active()` half. - Native-only refusal (`src/startup_stubs/d3d12_compute_dispatch.inl:557`): the check comes after both the pack branch and the in-process branch. The pack decode restores `heap_token_words` (`src/direct_compute_cache.cpp:162`), so a packed program is refused with the same text. `triage_run.py` lists the reason. - `conservative_sgpr_reads`: an unknown encoding now reads s0..s105, so the check fails closed. - **NIT** The VOP3 carry-in of `v_add_co_ci_u32`, `v_sub_co_ci_u32` and `v_subrev_co_ci_u32` (`src2`) is still counted as one SGPR. A wave64 guest reads a pair there, the same case as the `v_cndmask_b32` line added at `src/gfx1013_compute_native.cpp:1891`. - **NIT** For a wave64 guest, the miss counter adds one per 32-lane half that has an active lane. The doc says "one count per wave". The fixture runs wave32 only. Tests: `tex2d_execnone` covers the EXEC case, and `heap_token_refusal` covers the native-only text with a control. No CI run exists at this head yet. The last run (`ec7318d8`) failed only `startup_triage_run_check`, on a reason from `main` that #3542 fixed, and the merged head includes that fix. The new hardware and controls tests are not in the `pr` filter, so the RTX 3080 run is still the only hardware evidence.
Leyukaka commented 2026-12-02 07:13:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-12-02T07:13:27Z.


Friendly note: this is approved, but it currently conflicts with main after the recent merges; a rebase should be all it needs (and it unblocks #3631 on top of it).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7337923405 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3544#issuecomment-7337923405). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-12-02T07:13:27Z. --- Friendly note: this is approved, but it currently conflicts with `main` after the recent merges; a rebase should be all it needs (and it unblocks #3631 on top of it).
JB2WIN commented 2026-12-02 18:56:46 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-12-02T18:56:46Z.


@Leyukaka merged main 46d465d9 in 9af74535 (a merge, no rebase). heap_token_words joins main's cache visitor and round-trip fixture, the reader's view-kind bound now ends at heap_token_miss_uav, and the heap-token texture branch sits in front of main's bound-table waterfall branch. native_heap_token_texture is kept in the pr preset next to main's native_direct_cache_check.

Local, RTX 3080: ctest -R 'heap_token|manifest|direct_cache|native_compute|startup_compute|triage_run' gives 256/265, and the 9 failures are the same ones main 46d465d9 has on its own. #3631 is next.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7355390389 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3544#issuecomment-7355390389). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-12-02T18:56:46Z. --- @Leyukaka merged `main` 46d465d9 in 9af74535 (a merge, no rebase). `heap_token_words` joins main's cache visitor and round-trip fixture, the reader's view-kind bound now ends at `heap_token_miss_uav`, and the heap-token texture branch sits in front of main's bound-table waterfall branch. `native_heap_token_texture` is kept in the `pr` preset next to main's `native_direct_cache_check`. Local, RTX 3080: `ctest -R 'heap_token|manifest|direct_cache|native_compute|startup_compute|triage_run'` gives 256/265, and the 9 failures are the same ones `main` 46d465d9 has on its own. #3631 is next. AI-assisted.
R0Y00 commented 2026-12-02 19:32:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T19:32:13Z.

Review: COMMENTED


On bb37d7fe, independent MSVC Debug passed the heap-token controls, hardware readback, native cache round-trip and manifest controls (4 passes). WARP returned capability skip 77 for the wave32 fixture. Hardware was RTX 4060 Laptop, driver 32.0.16.1656, Windows 11 build 26300. After #3500 landed, the trial merge conflicts in the frontend cache visitor, NativeComputeShader, direct lowering, manifest-reason and round-trip fixtures. Please keep both image_fields and the heap-token fields in the visitor/round trip, retain each feature's runtime refusals, and rerun the two focused suites after rebasing.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6157509045 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3544#pullrequestreview-6157509045). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T19:32:13Z. **Review:** COMMENTED --- On bb37d7fe, independent MSVC Debug passed the heap-token controls, hardware readback, native cache round-trip and manifest controls (4 passes). WARP returned capability skip 77 for the wave32 fixture. Hardware was RTX 4060 Laptop, driver 32.0.16.1656, Windows 11 build 26300. After #3500 landed, the trial merge conflicts in the frontend cache visitor, NativeComputeShader, direct lowering, manifest-reason and round-trip fixtures. Please keep both `image_fields` and the heap-token fields in the visitor/round trip, retain each feature's runtime refusals, and rerun the two focused suites after rebasing.
JB2WIN commented 2026-12-02 19:37:46 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-12-02T19:37:46Z.


@Leyukaka main moved again, including #3500, which adds its image field words at the same places as the heap token words. Merged in f7a54aaa (this PR) and 26d1c531 (#3631). The b0 words are now root constants, stride words, image field words, then heap token words, in the translator, the manifest and the cache visitor. Both branches merge cleanly into main 23986134.

Local, RTX 3080: ctest -R 'heap_token|image_fields|manifest|direct_cache|native_compute|startup_compute|triage_run' gives 259/268 on both. The 9 failures are the same ones main has on its own.

If it conflicts again by the time you check, feel free to resolve it yourselves. We're fine with that, as you offered.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7356475146 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3544#issuecomment-7356475146). Originally posted by [JB2WIN](https://github.com/JB2WIN) on 2026-12-02T19:37:46Z. --- @Leyukaka main moved again, including #3500, which adds its image field words at the same places as the heap token words. Merged in f7a54aaa (this PR) and 26d1c531 (#3631). The b0 words are now root constants, stride words, image field words, then heap token words, in the translator, the manifest and the cache visitor. Both branches merge cleanly into `main` 23986134. Local, RTX 3080: `ctest -R 'heap_token|image_fields|manifest|direct_cache|native_compute|startup_compute|triage_run'` gives 259/268 on both. The 9 failures are the same ones `main` has on its own. If it conflicts again by the time you check, feel free to resolve it yourselves. We're fine with that, as you offered. AI-assisted.
R0Y00 commented 2026-12-02 19:44:38 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T19:44:38Z.

Review: APPROVED


Re-reviewed f7a54aaa, including the #3500 conflict resolution. The translator, manifest and cache visitor agree on root constants, stride, image fields, then heap-token words. The current runtime still refuses the token bindings as intended. Independent Windows 11 26300/MSVC Debug ctest --preset dev --no-tests=error -j 1 -V -R '^native_heap_token_texture_(controls|warp|hardware)$|^native_direct_cache_controls$|^native_compute_manifest_reasons$|^startup_compute_dispatch_image_fields_(controls|warp|hardware)$' gave 7 passes and one capability skip (wave32 heap-token WARP, code 77). The RTX 4060 Laptop ran heap-token readback and both adapters ran the #3500 regression. Linux reports the shared export-catalog mismatch addressed by #3885.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6157702738 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3544#pullrequestreview-6157702738). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T19:44:38Z. **Review:** APPROVED --- Re-reviewed f7a54aaa, including the #3500 conflict resolution. The translator, manifest and cache visitor agree on root constants, stride, image fields, then heap-token words. The current runtime still refuses the token bindings as intended. Independent Windows 11 26300/MSVC Debug `ctest --preset dev --no-tests=error -j 1 -V -R '^native_heap_token_texture_(controls|warp|hardware)$|^native_direct_cache_controls$|^native_compute_manifest_reasons$|^startup_compute_dispatch_image_fields_(controls|warp|hardware)$'` gave 7 passes and one capability skip (wave32 heap-token WARP, code 77). The RTX 4060 Laptop ran heap-token readback and both adapters ran the #3500 regression. Linux reports the shared export-catalog mismatch addressed by #3885.
R0Y00 commented 2026-12-02 20:07:11 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T20:07:11Z.

Review: APPROVED


Revalidated 539bd0e1 with the #3885 baseline. The files owned by this PR are unchanged. Independent MSVC Debug on Windows 11 build 26300 passed seven tests: the heap-token controls and RTX 4060 Laptop readback, cache and manifest checks, and all three #3500 image-field regressions. The WARP heap-token case returned capability skip 77 for wave32. python -B tests/standin_exports_check.py passed 476 checks including all six mutation controls.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6158056725 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3544#pullrequestreview-6158056725). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T20:07:11Z. **Review:** APPROVED --- Revalidated 539bd0e1 with the #3885 baseline. The files owned by this PR are unchanged. Independent MSVC Debug on Windows 11 build 26300 passed seven tests: the heap-token controls and RTX 4060 Laptop readback, cache and manifest checks, and all three #3500 image-field regressions. The WARP heap-token case returned capability skip 77 for wave32. `python -B tests/standin_exports_check.py` passed 476 checks including all six mutation controls.
Sign in to join this conversation.
No reviewers
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!3544
No description provided.