shader: accept the slot 57 heap descriptor load form #3754

Merged
lambirou merged 3 commits from upstream-pr/3754 into main 2026-12-02 15:45:41 +00:00
lambirou commented 2026-12-01 16:00:53 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-01T16:00:53Z.


The fixed slot 57 mesh shader for req_72e1909e13df6f66 loads a 32-byte
texture descriptor with s_load_dwordx8 s[56:63], s[12:13], s22 (SMEM op 3)
from a resource-heap table and then reads s57, s58 and s59 as numeric
descriptor fields. The mesh frontend only accepted the four-dword op 2 form, so
the request stopped at +0x614: unsupported mesh heap descriptor address;
after op 3 alone, it stopped at +0x69c: unbound numeric SGPR s57 because the
eight words stayed indexed descriptors.

The heap descriptor branch now accepts op 3 with the same checks (zero
immediate offset, constant high word, destination bounds, proven 32-byte
selector). A GPU-proven selector materializes all eight words as the heap slot
(bytes >> 5) with projected_numeric, so a guest numeric read sees a
defined value; the texture slot map keeps priority and keeps words 1..3 as the
guest descriptor metadata. Consumers still require heap_fetches,
token_fetches or texture_heap_fetches.

Validation (Windows, Release):

  • The real MS with the v5 profile layout now reaches
    +0x700: unsupported mesh instruction or EXEC state: image_load; the next
    chain is the texture heap slot map, not the descriptor address.
  • python -B tests/native_direct_mesh_check.py out\\build\\release\\compile_dxil.exe "<DXC dir>"
    — pass, including the x8 fetch, x16 refusal and unaligned-offset control.
  • ctest --preset release --no-tests=error -R '^native_direct' — 2/2 pass.
  • ctest --preset release --no-tests=error -R '^native_fixed_mesh57_warp$'
    — pass.

Refs #3497

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5589433911 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3754). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-01T16:00:53Z. --- The fixed slot 57 mesh shader for `req_72e1909e13df6f66` loads a 32-byte texture descriptor with `s_load_dwordx8 s[56:63], s[12:13], s22` (SMEM op 3) from a resource-heap table and then reads `s57`, `s58` and `s59` as numeric descriptor fields. The mesh frontend only accepted the four-dword op 2 form, so the request stopped at `+0x614: unsupported mesh heap descriptor address`; after op 3 alone, it stopped at `+0x69c: unbound numeric SGPR s57` because the eight words stayed indexed descriptors. The heap descriptor branch now accepts op 3 with the same checks (zero immediate offset, constant high word, destination bounds, proven 32-byte selector). A GPU-proven selector materializes all eight words as the heap slot (`bytes >> 5`) with `projected_numeric`, so a guest numeric read sees a defined value; the texture slot map keeps priority and keeps words 1..3 as the guest descriptor metadata. Consumers still require `heap_fetches`, `token_fetches` or `texture_heap_fetches`. Validation (Windows, Release): - The real MS with the v5 profile layout now reaches `+0x700: unsupported mesh instruction or EXEC state: image_load`; the next chain is the texture heap slot map, not the descriptor address. - `python -B tests/native_direct_mesh_check.py out\\build\\release\\compile_dxil.exe "<DXC dir>"` — pass, including the x8 fetch, x16 refusal and unaligned-offset control. - `ctest --preset release --no-tests=error -R '^native_direct'` — 2/2 pass. - `ctest --preset release --no-tests=error -R '^native_fixed_mesh57_warp$'` — pass. Refs #3497
R0Y00 commented 2026-12-01 17:05:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-01T17:05:16Z.


Review blocker in lower_mesh: the new descriptor_words[j] read runs for all SMEM table-load paths with i.op < 8. memory_count(i) is 1u << (i.op & 7), so a valid non-global 16-dword table load (op == 4) can read beyond the eight-element array. The new x16 refusal covers only the validated global heap branch. Please bound the lookup by descriptor_words.size() and add a source-built non-global wide table control. Also please identify which descriptor bits are actually consumed numerically in the unmapped path so the synthetic slot value does not silently stand in for unrelated guest metadata.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7318731528 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3754#issuecomment-7318731528). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-01T17:05:16Z. --- Review blocker in `lower_mesh`: the new `descriptor_words[j]` read runs for all SMEM table-load paths with `i.op < 8`. `memory_count(i)` is `1u << (i.op & 7)`, so a valid non-global 16-dword table load (`op == 4`) can read beyond the eight-element array. The new x16 refusal covers only the validated global heap branch. Please bound the lookup by `descriptor_words.size()` and add a source-built non-global wide table control. Also please identify which descriptor bits are actually consumed numerically in the unmapped path so the synthetic slot value does not silently stand in for unrelated guest metadata.
Leyukaka commented 2026-12-01 18:09:45 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-12-01T18:09:45Z.

Review: COMMENTED


Accepting s_load_dwordx8 (op 3) on the validated heap branch with the same address checks looks right, and the x16 and unaligned refusals are useful. The problem is the second half of the change: it turns the descriptor words into numeric values that the guest never wrote.

MUST: the eight words get a made-up numeric value (src/gfx1013_direct_mesh.inl:1475-1485, 1505)

For every op 3 fetch on this branch, whether the selector comes from the root or from the GPU, all eight destination words are written as bytes >> 5 and marked projected_numeric. require_numeric (src/gfx1013_compute_native.cpp:1382-1384) checks only Symbol::numeric(), so any later numeric read of s[dst+0..7] now compiles to the heap slot index. On hardware these words hold the image base address, width/height, mip and format fields, and words 4..7 hold depth/pitch/array state. No mapping supplies those values here. The slot-map branch (:1424-1449) is the only place on main that sets projected_numeric on heap words, and it sets it only on words 1..3, which it loads from the remap record. The pixel/compute heap path keeps the slot as the register's identity, but numeric() stays false there ("Numeric consumption still requires real bits", src/gfx1013_compute_native.cpp:730-731). So the code comment's and doc's "as the pixel heap path does" does not match the code on main.

This is the same concern as the last point of the maintainer's comment above. The first option below also removes descriptor_words, and with it the out-of-bounds read reported there.

In the slot 57 MS this is hidden only because the image_load at +0x700 still refuses. A shader that uses s57..s59 (or any of words 0..7) for an address, a bound or a branch, without reaching a refusing consumer, would now produce valid DXIL with wrong values instead of refusing at unbound numeric SGPR. Two options:

  • Accept op 3 but leave the words unmaterialised, so the refusal stays at +0x69c: unbound numeric SGPR s57. That refusal is accurate: the next requirement is the slot map either way.
  • Or materialise them only when a contract supplies the actual field values.

MUST: no fixture covers the new GPU-selected branch (src/gfx1013_direct_mesh.inl:1468-1472, tests/native_direct_mesh_check.py:728)

The real MS takes i.op==3 && heap_entry_offsets.count(bytes) with heap_tokens off. No test reaches that branch:

  • typed-heap-descriptor-x8 (:659) uses typed[:5], a masked root selector, so it records heap_fetches.
  • typed-heap-descriptor-unproven (:664) shifts by 4, so it never enters heap_entry_offsets.
  • mesh-texture-heap-without-map would reach this branch through its former unmasked s21 << 5. The new mask at :728 moves it onto the root branch.

As a result, deleting lines 1468-1472 or changing it to accept any offset would probably still pass. Please add GPU-selected op 3 cases in the style of token-no-contract (gpu_layout, selector from table 16 1, no heap_tokens):

  1. A buffer_load_format through the eight words must still refuse with formatted mesh load lacks an R32_UINT resource heap contract.
  2. The image_load must still refuse without the slot map.
  3. A numeric read of a descriptor word must refuse, for example s_bfe_u32 on word 1 and on word 5 feeding an export (assuming the first finding is fixed).

Keep one unmasked texture fixture so the old path stays covered.

SHOULD: alignment proof and scope of the opaque branch (:1468)

heap_entry_offsets gets an entry from any s_lshl_b32 by an immediate of 5 or more (:2070-2071), so it does prove that the offset is a multiple of 32. The branch records nothing: no heap_fetches, no token_fetches, no mesh_heap_reads. Its only effect is to let the destination words exist. That holds only while no consumer accepts an indexed_descriptor without a fetch record. Please say this in the comment at :1469-1471, so that a later consumer change cannot pick up these words by accident. As written, the comment says the words feed only a descriptor consumer, and the numeric marking makes that untrue.

Note: interaction with #3712

#3712 changes lower_mesh near line 1295 and the test file near line 439. Those are different hunks from this PR, so I expect no textual conflict. Its new image path requires Symbol::Type::descriptor (table words). Heap words here are indexed_descriptor, so mesh-texture-heap-without-map should keep its unsupported mesh instruction or EXEC state: image_load refusal after both PRs merge. Whichever PR merges second should rerun native_direct_mesh on the combined tree.

The doc (docs/experiments/native-mesh-heap-descriptor.md:31-33) repeats the "as the pixel heap path already does" claim. It needs updating together with the first finding.

Verdict: changes requested (the two MUST items).

Reviewed 4dd116c42 by reading the diff; not built or run.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6137174813 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3754#pullrequestreview-6137174813). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-12-01T18:09:45Z. **Review:** COMMENTED --- Accepting `s_load_dwordx8` (op 3) on the validated heap branch with the same address checks looks right, and the x16 and unaligned refusals are useful. The problem is the second half of the change: it turns the descriptor words into numeric values that the guest never wrote. **MUST: the eight words get a made-up numeric value** (`src/gfx1013_direct_mesh.inl:1475-1485`, `1505`) For every op 3 fetch on this branch, whether the selector comes from the root or from the GPU, all eight destination words are written as `bytes >> 5` and marked `projected_numeric`. `require_numeric` (`src/gfx1013_compute_native.cpp:1382-1384`) checks only `Symbol::numeric()`, so any later numeric read of s[dst+0..7] now compiles to the heap slot index. On hardware these words hold the image base address, width/height, mip and format fields, and words 4..7 hold depth/pitch/array state. No mapping supplies those values here. The slot-map branch (`:1424-1449`) is the only place on main that sets `projected_numeric` on heap words, and it sets it only on words 1..3, which it loads from the remap record. The pixel/compute heap path keeps the slot as the register's identity, but `numeric()` stays false there ("Numeric consumption still requires real bits", `src/gfx1013_compute_native.cpp:730-731`). So the code comment's and doc's "as the pixel heap path does" does not match the code on main. This is the same concern as the last point of the maintainer's comment above. The first option below also removes `descriptor_words`, and with it the out-of-bounds read reported there. In the slot 57 MS this is hidden only because the `image_load` at `+0x700` still refuses. A shader that uses s57..s59 (or any of words 0..7) for an address, a bound or a branch, without reaching a refusing consumer, would now produce valid DXIL with wrong values instead of refusing at `unbound numeric SGPR`. Two options: - Accept op 3 but leave the words unmaterialised, so the refusal stays at `+0x69c: unbound numeric SGPR s57`. That refusal is accurate: the next requirement is the slot map either way. - Or materialise them only when a contract supplies the actual field values. **MUST: no fixture covers the new GPU-selected branch** (`src/gfx1013_direct_mesh.inl:1468-1472`, `tests/native_direct_mesh_check.py:728`) The real MS takes `i.op==3 && heap_entry_offsets.count(bytes)` with `heap_tokens` off. No test reaches that branch: - `typed-heap-descriptor-x8` (`:659`) uses `typed[:5]`, a masked root selector, so it records `heap_fetches`. - `typed-heap-descriptor-unproven` (`:664`) shifts by 4, so it never enters `heap_entry_offsets`. - `mesh-texture-heap-without-map` would reach this branch through its former unmasked `s21 << 5`. The new mask at `:728` moves it onto the root branch. As a result, deleting lines 1468-1472 or changing it to accept any offset would probably still pass. Please add GPU-selected op 3 cases in the style of `token-no-contract` (`gpu_layout`, selector from `table 16 1`, no `heap_tokens`): 1. A `buffer_load_format` through the eight words must still refuse with `formatted mesh load lacks an R32_UINT resource heap contract`. 2. The `image_load` must still refuse without the slot map. 3. A numeric read of a descriptor word must refuse, for example `s_bfe_u32` on word 1 and on word 5 feeding an export (assuming the first finding is fixed). Keep one unmasked texture fixture so the old path stays covered. **SHOULD: alignment proof and scope of the opaque branch** (`:1468`) `heap_entry_offsets` gets an entry from any `s_lshl_b32` by an immediate of 5 or more (`:2070-2071`), so it does prove that the offset is a multiple of 32. The branch records nothing: no `heap_fetches`, no `token_fetches`, no `mesh_heap_reads`. Its only effect is to let the destination words exist. That holds only while no consumer accepts an `indexed_descriptor` without a fetch record. Please say this in the comment at `:1469-1471`, so that a later consumer change cannot pick up these words by accident. As written, the comment says the words feed only a descriptor consumer, and the numeric marking makes that untrue. **Note: interaction with #3712** #3712 changes `lower_mesh` near line 1295 and the test file near line 439. Those are different hunks from this PR, so I expect no textual conflict. Its new image path requires `Symbol::Type::descriptor` (table words). Heap words here are `indexed_descriptor`, so `mesh-texture-heap-without-map` should keep its `unsupported mesh instruction or EXEC state: image_load` refusal after both PRs merge. Whichever PR merges second should rerun `native_direct_mesh` on the combined tree. The doc (`docs/experiments/native-mesh-heap-descriptor.md:31-33`) repeats the "as the pixel heap path already does" claim. It needs updating together with the first finding. Verdict: changes requested (the two MUST items). Reviewed 4dd116c42 by reading the diff; not built or run.
lambirou commented 2026-12-01 22:36:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-01T22:36:16Z.


Thanks — both MUSTs are addressed in 6102db88.

The eight words are no longer materialised. An op 3 fetch records only bytes >> 5 by its pc; the destination words stay indexed_descriptor with no projected_numeric flag. A numeric read now keeps the accurate refusal (unbound numeric SGPR s33 for word 1, s37 for word 5). The slot-map branch is unchanged and still fills words 1..3 from the remap record.

The write loop no longer indexes a fixed array: it writes only texture_metadata, so a 16-dword load (op 4) cannot run past the eight-word record. mesh-table-wide-load covers a non-global table x16 and mesh-heap-wide-load covers a heap x16 that reaches the write loop.

GPU-selected op 3 is now covered in the gpu_layout/token-no-contract style:

  • gpu-heap-descriptor-x8-typed refuses formatted mesh load lacks an R32_UINT resource heap contract;
  • gpu-heap-descriptor-x8-image refuses unsupported mesh instruction or EXEC state: image_load;
  • gpu-heap-descriptor-word-1 and -word-5 refuse unbound numeric SGPR s33 / s37.

The texture fixture keeps both a masked and an unmasked selector; only the slot-map form reads descriptor word 1 numerically. The alignment/opaque comment now says the fetch records only the slot and adds no heap_fetches, token_fetches or mesh_heap_reads entry.

Mutation check: restoring 4dd116c4:src/gfx1013_direct_mesh.inl makes mesh-descriptor-word-1 fail.

Validation on the pushed head:

  • python -B tests/native_direct_mesh_check.py ... — pass.
  • ctest --preset release --no-tests=error -R '^native_direct' — 2/2 passed.
  • git diff --check clean.

The image consumer is the separate #3758 stack; I'll rebase it to use the recorded slot and drop its projected_numeric requirement. The observed refusal for this PR alone is +0x69c: unbound numeric SGPR s57, which is the intended boundary.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7328084148 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3754#issuecomment-7328084148). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-01T22:36:16Z. --- Thanks — both MUSTs are addressed in `6102db88`. The eight words are no longer materialised. An op 3 fetch records only `bytes >> 5` by its pc; the destination words stay `indexed_descriptor` with no `projected_numeric` flag. A numeric read now keeps the accurate refusal (`unbound numeric SGPR s33` for word 1, `s37` for word 5). The slot-map branch is unchanged and still fills words 1..3 from the remap record. The write loop no longer indexes a fixed array: it writes only `texture_metadata`, so a 16-dword load (op 4) cannot run past the eight-word record. `mesh-table-wide-load` covers a non-global table x16 and `mesh-heap-wide-load` covers a heap x16 that reaches the write loop. GPU-selected op 3 is now covered in the `gpu_layout`/`token-no-contract` style: - `gpu-heap-descriptor-x8-typed` refuses `formatted mesh load lacks an R32_UINT resource heap contract`; - `gpu-heap-descriptor-x8-image` refuses `unsupported mesh instruction or EXEC state: image_load`; - `gpu-heap-descriptor-word-1` and `-word-5` refuse `unbound numeric SGPR s33` / `s37`. The texture fixture keeps both a masked and an unmasked selector; only the slot-map form reads descriptor word 1 numerically. The alignment/opaque comment now says the fetch records only the slot and adds no `heap_fetches`, `token_fetches` or `mesh_heap_reads` entry. Mutation check: restoring `4dd116c4:src/gfx1013_direct_mesh.inl` makes `mesh-descriptor-word-1` fail. Validation on the pushed head: - `python -B tests/native_direct_mesh_check.py ...` — pass. - `ctest --preset release --no-tests=error -R '^native_direct'` — 2/2 passed. - `git diff --check` clean. The image consumer is the separate #3758 stack; I'll rebase it to use the recorded slot and drop its `projected_numeric` requirement. The observed refusal for this PR alone is `+0x69c: unbound numeric SGPR s57`, which is the intended boundary. AI-assisted.
Leyukaka commented 2026-12-02 07:02:31 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Re-review of 6102db88. Read the diff; not built or run.

Both MUST items from my earlier review are addressed:

  • Descriptor words. The op 3 heap branch no longer sets projected_numeric, and descriptor_words is gone. The write loop now fills only words 1..3 from texture_metadata, which stays empty outside the slot-map branch. A numeric read of any of the eight words therefore still refuses at unbound numeric SGPR, and a 16-dword load can no longer index past the record (the maintainer's bounds point). mesh-descriptor-word-1 / -word-5 cover the root-selected case, and the doc no longer claims parity with the pixel heap path.
  • GPU-selected branch coverage. gpu-heap-descriptor-x8-typed, -x8-image, -word-1 and -word-5 reach i.op==3 && heap_entry_offsets.count(bytes) without heap_tokens. Removing that branch would change all four refusals to mesh heap slot lacks masked root constant provenance. Accepting any offset would make typed-heap-descriptor-unproven translate. Both mutations are now caught. mesh-texture-heap-gpu-without-map / -gpu-slot-map keep the unmasked texture path covered.

The SHOULD item is handled too. The comment at the opaque branch now says it adds no heap_fetches, token_fetches or mesh_heap_reads entry.

Two small points:

  1. heap_descriptor_slots (src/gfx1013_direct_mesh.inl:100, written at :1482) is never read in this PR, so each accepted op 3 fetch emits an unused lshr. That is harmless. If #3758 is the consumer, keeping it is fine; otherwise the map could be dropped until something reads it.
  2. The branch now conflicts with main in src/gfx1013_direct_mesh.inl and tests/native_direct_mesh_check.py. Please rebase it, rerun native_direct_mesh and native_direct_container, and check that the GPU-selected cases still produce the same refusals.

I'll approve once the rebased head is up.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6146133894 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3754#pullrequestreview-6146133894). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-12-02T07:02:31Z. **Review:** COMMENTED --- Re-review of `6102db88`. Read the diff; not built or run. Both MUST items from my earlier review are addressed: - **Descriptor words.** The op 3 heap branch no longer sets `projected_numeric`, and `descriptor_words` is gone. The write loop now fills only words 1..3 from `texture_metadata`, which stays empty outside the slot-map branch. A numeric read of any of the eight words therefore still refuses at `unbound numeric SGPR`, and a 16-dword load can no longer index past the record (the maintainer's bounds point). `mesh-descriptor-word-1` / `-word-5` cover the root-selected case, and the doc no longer claims parity with the pixel heap path. - **GPU-selected branch coverage.** `gpu-heap-descriptor-x8-typed`, `-x8-image`, `-word-1` and `-word-5` reach `i.op==3 && heap_entry_offsets.count(bytes)` without `heap_tokens`. Removing that branch would change all four refusals to `mesh heap slot lacks masked root constant provenance`. Accepting any offset would make `typed-heap-descriptor-unproven` translate. Both mutations are now caught. `mesh-texture-heap-gpu-without-map` / `-gpu-slot-map` keep the unmasked texture path covered. The SHOULD item is handled too. The comment at the opaque branch now says it adds no `heap_fetches`, `token_fetches` or `mesh_heap_reads` entry. Two small points: 1. `heap_descriptor_slots` (`src/gfx1013_direct_mesh.inl:100`, written at `:1482`) is never read in this PR, so each accepted op 3 fetch emits an unused `lshr`. That is harmless. If #3758 is the consumer, keeping it is fine; otherwise the map could be dropped until something reads it. 2. The branch now conflicts with main in `src/gfx1013_direct_mesh.inl` and `tests/native_direct_mesh_check.py`. Please rebase it, rerun `native_direct_mesh` and `native_direct_container`, and check that the GPU-selected cases still produce the same refusals. I'll approve once the rebased head is up.
lambirou commented 2026-12-02 14:47:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-02T14:47:13Z.

Review: COMMENTED


Re-reviewed 6102db88 after the two MUST fixes.

Verdict: approve the code; rebase required before merge. The op-3 heap branch no longer sets projected_numeric and no longer fills descriptor words with the slot index, so a numeric read still refuses at unbound numeric SGPR. The GPU-selected cases now cover the typed/image and word reads, and the opaque branch comment states that it records no fetch.

  • NIT heap_descriptor_slots is written but only read by the later #3758 consumer; keeping it is fine, but a comment at the write would explain why it is not dead.
  • Checked, no finding: the four GPU-selected controls reach the new branch; removing it or accepting any offset changes their refusals; the root-selected and unmapped texture paths stay covered; the 16-dword over-read is gone with descriptor_words.
  • The branch still conflicts with main in src/gfx1013_direct_mesh.inl and tests/native_direct_mesh_check.py; rebase and rerun native_direct_mesh and native_direct_container before merge.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6153097840 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3754#pullrequestreview-6153097840). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-02T14:47:13Z. **Review:** COMMENTED --- Re-reviewed `6102db88` after the two MUST fixes. **Verdict: approve the code; rebase required before merge.** The op-3 heap branch no longer sets `projected_numeric` and no longer fills descriptor words with the slot index, so a numeric read still refuses at `unbound numeric SGPR`. The GPU-selected cases now cover the typed/image and word reads, and the opaque branch comment states that it records no fetch. - **NIT** `heap_descriptor_slots` is written but only read by the later #3758 consumer; keeping it is fine, but a comment at the write would explain why it is not dead. - Checked, no finding: the four GPU-selected controls reach the new branch; removing it or accepting any offset changes their refusals; the root-selected and unmapped texture paths stay covered; the 16-dword over-read is gone with `descriptor_words`. - The branch still conflicts with main in `src/gfx1013_direct_mesh.inl` and `tests/native_direct_mesh_check.py`; rebase and rerun `native_direct_mesh` and `native_direct_container` before merge.
R0Y00 commented 2026-12-02 15:40:38 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed f0bc8402 on updated main. The recognized heap form preserves symbolic descriptor identity and still refuses a numeric read of an unbound word. The source-built controls exercise the root and GPU-selected forms, plus the malformed or wider cases. Independent Windows/MSVC Debug ctest --preset dev --no-tests=error -j 1 -R '^native_direct_mesh$' --output-on-failure passed 1/1.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6154088210 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3754#pullrequestreview-6154088210). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T15:40:38Z. **Review:** APPROVED --- Reviewed f0bc8402 on updated main. The recognized heap form preserves symbolic descriptor identity and still refuses a numeric read of an unbound word. The source-built controls exercise the root and GPU-selected forms, plus the malformed or wider cases. Independent Windows/MSVC Debug `ctest --preset dev --no-tests=error -j 1 -R '^native_direct_mesh$' --output-on-failure` passed 1/1.
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!3754
No description provided.