shader: translate mesh image_load through a full table descriptor #3760

Open
github-bot wants to merge 4 commits from github-bot/gh-3758 into main AGit
Owner

@⁠lambirou on GitHub · 2026-12-01 16:26 UTC · original
lambirou:codex/mesh-image-load → main · +330 −10 · 4 files · 4 commits · open

The slot 57 capture req_72e1909e13df6f66.m57 contains
image_load v[19:21], v11, s[56:63] dmask:0x7 dim:SQ_RSRC_IMG_1D unorm at +0x700, fed by the eight-dword resource-heap fetch at +0x614. That is a complete guest V#, not a texture heap slot-map record, so the slot-map branch refuses it.

This adds a mesh image branch for the full-V# form when !layout.texture_heap_slot_map: op 0, 1D, dmask 0x7, UNORM, no LWE/TFE/R128/reserved bits, eight contiguous descriptor words sharing one fetch pc and a destination inside the VGPR range. The words stay symbolic; the fetch is identified by heap_fetches or heap_descriptor_slots. createHandleFromHeap(slot) is annotated Texture1D { 1, 1033 } and textureLoad.f32 reads mip 0 at the VGPR coordinate. Four channels, other dimensions, missing UNORM and an overwritten word keep refusing.

Boundary. On the real capture, #3756's corrected head refuses at +0x69c: unbound numeric SGPR s57: s_bfe_u32 s22, s57, 0x2001e reads descriptor word 1 to build the image coordinate. The full-V# branch is covered by source-built fixtures with a constant coordinate; reaching +0x700 needs a contract that supplies the real V# field bits. The earlier +0x7c0 observation belonged to the slot-materialising draft and no longer applies.

Tests: mesh-image-full-descriptor (root selector), mesh-image-full-descriptor-root, -gpu, mesh-image-four-channel-without-map and mesh-image-unsupported-dimension; the descriptor-word reads still refuse as unbound numeric SGPR s33 / s37.

Validation on b4c5697a (based on #3756 6102db88):

  • cmake --build --preset release --target compile_dxil
  • python -B tests/native_direct_mesh_check.py ... — pass.
  • ctest --preset release --no-tests=error -R '^native_direct' — 2/2 passed.
  • Real capture: +0x69c: unbound numeric SGPR s57.

Refs #3499

**@⁠lambirou** on GitHub · 2026-12-01 16:26 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3758) `lambirou:codex/mesh-image-load` → `main` · +330 −10 · 4 files · 4 commits · open The slot 57 capture `req_72e1909e13df6f66.m57` contains `image_load v[19:21], v11, s[56:63] dmask:0x7 dim:SQ_RSRC_IMG_1D unorm` at `+0x700`, fed by the eight-dword resource-heap fetch at `+0x614`. That is a complete guest V#, not a texture heap slot-map record, so the slot-map branch refuses it. This adds a mesh image branch for the full-V# form when `!layout.texture_heap_slot_map`: op 0, 1D, dmask 0x7, UNORM, no LWE/TFE/R128/reserved bits, eight contiguous descriptor words sharing one fetch pc and a destination inside the VGPR range. The words stay symbolic; the fetch is identified by `heap_fetches` or `heap_descriptor_slots`. `createHandleFromHeap(slot)` is annotated Texture1D `{ 1, 1033 }` and `textureLoad.f32` reads mip 0 at the VGPR coordinate. Four channels, other dimensions, missing UNORM and an overwritten word keep refusing. **Boundary.** On the real capture, #3756's corrected head refuses at `+0x69c: unbound numeric SGPR s57`: `s_bfe_u32 s22, s57, 0x2001e` reads descriptor word 1 to build the image coordinate. The full-V# branch is covered by source-built fixtures with a constant coordinate; reaching `+0x700` needs a contract that supplies the real V# field bits. The earlier `+0x7c0` observation belonged to the slot-materialising draft and no longer applies. Tests: `mesh-image-full-descriptor` (root selector), `mesh-image-full-descriptor-root`, `-gpu`, `mesh-image-four-channel-without-map` and `mesh-image-unsupported-dimension`; the descriptor-word reads still refuse as `unbound numeric SGPR s33` / `s37`. Validation on `b4c5697a` (based on #3756 `6102db88`): - `cmake --build --preset release --target compile_dxil` - `python -B tests/native_direct_mesh_check.py ...` — pass. - `ctest --preset release --no-tests=error -R '^native_direct'` — 2/2 passed. - Real capture: `+0x69c: unbound numeric SGPR s57`. Refs #3499
The title calls xmem.dll through a C ABI and does not catch C++ exceptions.
A failed allocation while recording a backing, a slab, the GPU mirror
vectors or a mapping batch unwound 0xe06d7363 into the title, ending the
run after 478 s.

Report the failure instead. section_for and SlabSlots::take_fresh return
false with ERROR_NOT_ENOUGH_MEMORY, the GPU mirror stays best-effort and
logs the skipped batch, and XMemMapPhysicalPages, its scatter form and
XMemFreePhysicalPages convert std::exception into a failed call. The
test-controls build injects the failure at both allocation sites; the new
xmem_mapped_pages_allocation test checks the error and the control mapping.
Removing the boundary catch makes the same test terminate with 0xe06d7363.

Tests: ctest --test-dir out/build/release -R '^xmem': 73 tests, 0 failed
(3 placeholder skips). Long runs on main: 29 fps, 1 446 textures, 341
.s57 mesh captures, past the previous 478 s crash point; the remaining
mesh refusal is the missing reviewed .mesh57-state profile, not an XMem
allocation.
Slot 57 and slot 86 mesh pipeline creations wrote each new key's request
parts (a probe, a temporary file and a rename each) under one lock before
they answered. A title that creates thousands of mesh pipelines then
waits on that file work one creation at a time.

Creations now copy the parts into a bounded queue and return; one thread
writes them in order (request_publisher.h). A key is queued once per
process and at most 64 MiB wait. X2W_SYNC_MESH_REQUESTS=1 restores the
inline writes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The unload drain writes with its own writer (a temporary name of its
own, a rename, no cache index) from a directory read when the publisher
is made, and only once the writer thread has ended; while it still runs
the drain waits for it. Nothing is made at unload when no request was
queued. stop() ends and joins the thread (the destructor calls it), and
a request that could not be written forgets its key so it is accepted
again. The check covers the retry, the unload writer, a drain while the
thread runs and stop.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Another MSVC version resolves std::begin({...}) to the array overload and
rejects it (C2664), which failed the Windows build on CI.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
enqueue recorded the key before pushing the request. If the push threw, the key
stayed recorded, so a retry of the same key was counted as repeated and never
written. The catch now erases the key under the same lock.

The publisher test fails each allocation of an enqueue in turn and checks that
the drop is counted and that a retry of the same key is queued and written.
Without the rollback that case fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The request fixture enumerated the shader cache right after its dispatches.
With the background publisher a request can still be in flight then, so the
exact count of two requests and six files failed intermittently
(startup_mesh57_runtime_warp). It now waits, for at most 10 s, until both
.m57 ready markers exist and no part is still under its temporary name, then
runs the same byte and count checks. The async default is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adopt the existing committed desktop backing for a placed material view, refresh it from title memory at submit, and copy only changed runs. Keep the existing backing and its fences; a submitted GPU write stops refreshes. Add a source-built two-SRV fixture with range, token, stale, budget and mutant controls.

Refs #3640, #3638, #3545.
The mesh frontend narrowed EXEC only for v_cmpx_eq_u32, ne_u32 and lt_u32,
and for v_cmpx_gt_u32 only in the lane-linear count form. Mesh86 programs
also use v_cmpx_lg_f32, v_cmpx_gt_f32 and a per-lane v_cmpx_gt_u32.

They now get the same EXEC-only narrowing through the shared compare: lg is
an ordered fcmp one and gt_f32 an ordered ogt, so a NaN lane leaves EXEC,
and gt_u32 is icmp ugt. The count form of v_cmpx_gt_u32 is still matched
first. Float abs/neg, SDWA, DPP, clamp and omod stay refused.

Part of #3703.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The console builder fills 32-byte records through the pointer command-list slot 148
returns and does not check it. A recording's first request creates a desktop upload page;
when CreateCommittedResource returned E_OUTOFMEMORY under memory pressure, the arena
returned an empty allocation and the builder's first store faulted at address 0.

A request that no page can back is now served from a bounded, process-wide CPU reserve:
the store lands in zeroed writable memory, the slice carries no desktop address, range and
translate keep refusing it, and slot 148 logs which case it took. The reserve is created
while an upload page still succeeds, so it cannot hide an out-of-memory run.

Refs #870
# Conflicts:
#	CMakePresets.json
Refs #3497

Refs #3724
The forced slot 86 mesh path refused 2 873 real title requests. The census
ordered the refusals s_bfe_i32 (458), s_not_b32 (433), v_rcp_iflag_f32 (145)
and s_brev_b32 (107).

- s_not_b32 (SOP1 0x07) and s_bfe_i32 (SOP2 0x28) join the mesh scalar
  branches and reuse the compute arithmetic(): D = ~S0, and the sign-extended
  field with the offset in S1[4:0] and the width in S1[22:16], zero for a zero
  width and the arithmetic shift kept at a width of 32 or more. Both write
  SCC = (D != 0).
- s_brev_b32 (SOP1 0x0B) lowers through the shared unary.i32 reverse and leaves
  SCC unchanged, as the compute frontend and the gfx2hlsl.py SOP1 table do.
- v_rcp_iflag_f32 (VOP1 0x2B) joins the vector list that already handles
  v_rcp_f32, so it takes the same 1.0 / x alu_rules entry.
- All three scalar forms refuse an EXEC or VCC destination.

tests/native_direct_mesh_check.py adds one source-built program per form that
exports the result through POS0.x and, for s_not_b32 and s_bfe_i32, the SCC
through POS0.y; s_brev_b32 is bracketed by a compare in both SCC states to show
the flag survives. Controls reject EXEC/VCC destinations and unbound sources.

Verified:
- cmake --preset release; cmake --build --preset release --target compile_dxil
  (17/17 steps, compile_dxil.exe linked)
- python -B tests/native_direct_mesh_check.py <compile_dxil.exe> <dxc dir>:
  exit 0, "mesh allocation, indexed outputs, group exchange and negative
  controls passed"
- ctest --preset release --no-tests=error -R '^native_direct'
  2/2 passed: native_direct_container 15.04 s, native_direct_mesh 11.75 s

Refs #3703
After the scalar bit operations, the forced slot 86 mesh path refused
v_cvt_f16_f32 in 357 requests and v_and_or_b32 in 331, ahead of the
control-flow, heap-provenance and pixel blocks.

- v_and_or_b32 (VOP3 0x371) joins the mesh vector list that already handles
  v_or3_b32 and v_add3_u32, so it takes the three-source alu_rules entry and
  lowers to (S0 & S1) | S2. The shared operand gate still refuses abs, neg,
  clamp and omod.
- v_cvt_f16_f32 (VOP1 0x0A) joins the same list and reuses the compute
  frontend's integer round-to-nearest-even narrowing: the sign comes from bit
  31, binary32 subnormals become signed zeros, binary16 subnormals are kept,
  overflow including the 65520 tie gives 0x7c00, and a NaN keeps its quiet bit.
  The encoding goes into the low half and the reaching destination value keeps
  the high half, as the compute frontend does, so an unproven destination still
  refuses and the merged word is not treated as uniform.

tests/native_direct_mesh_check.py adds source-built programs with the run
helper: v_and_or_b32 with s20 = 0x0000ffff and s21 = 0x00ff0000 exports
(and v0, 65535) | 0x00ff0000, and v_cvt_f16_f32 exports the narrowed word for
1.0f, 0.0f and -2.0f. Controls reject an unbound third source and an unproven
conversion source or destination.

Observed IR:
- %t8 = and i32 %v0, 65535 ; %t9 = or i32 %t8, 16711680
- v_cvt_f16_f32: lshr <bits>, 16 / and ... 32768 for the sign,
  and <bits>, 2147483647, lshr ... 23, and ... 8388607, the nearest-even
  narrowing with icmp ugt %exp, 142 -> 31744 and icmp ugt %mag, 2139095040 ->
  32256 | quiet bits, then or %narrow, %sign, and %destination, -65536 and the
  final or.

Verified:
- cmake --build --preset release --target compile_dxil (7/7 steps,
  compile_dxil.exe linked)
- python -B tests/native_direct_mesh_check.py <compile_dxil.exe> <dxc dir>:
  exit 0, "mesh allocation, indexed outputs, group exchange and negative
  controls passed"
- ctest --preset release --no-tests=error -R '^native_direct'
  2/2 passed: native_direct_container 15.04 s, native_direct_mesh 13.78 s
- python -B tests/docs_links_check.py: 210 files, 807 links

Refs #3703
Refs #3497

Refs #3724
# Conflicts:
#	docs/startup-runtime.md
#	tests/startup_indirect_draw_indexed.cpp
The stable slot 57 profile 9482ea4411e1e03f reaches the mesh frontend with
req_72e1909e13df6f66.m57 and refused at +0x614. The decoded instruction there
is s_load_dwordx8 s[56:63], s[12:13], s22: SMEM op 3, immediate offset 0, an
SGPR offset proven as a multiple of 32, and the base copied from heap SGPR 23
with a constant zero high word. It feeds image_load v[19:21], v11, s[56:63]
at +0x700.

- The mesh heap branch behind validate_uint_heap_reads accepted only op 2
  (s_load_dwordx4); it now also accepts op 3 (s_load_dwordx8) with the same
  immediate-offset, high-word, destination-range and provenance rules.
- A root-provided selector still records heap_fetches. A GPU-selected selector
  that is a proven multiple of 32 keeps the fetch opaque, and the eight
  destination words are materialised as the heap slot (bytes >> 5) and marked
  projected_numeric, matching the pixel heap path, so a guest numeric read of a
  descriptor field lowers. With texture_heap_slot_map the texture branch keeps
  priority and words 1..3 remain the guest descriptor metadata.
- The consumers keep their own proofs: an unmapped selection still refuses.

Observed on the captured MS with the exact profile layout:
- before: native compute +0x614: unsupported mesh heap descriptor address
- then:   native compute +0x69c: unbound numeric SGPR s57
- now:    native compute +0x700: unsupported mesh instruction or EXEC state: image_load

The image still needs the texture heap slot map, which slot 57 v5 profiles do
not enable.

tests/native_direct_mesh_check.py adds the eight-dword heap fetch feeding a
typed load, a sixteen-dword refusal and an unaligned-offset refusal; the texture
fixture now masks its selector and reads descriptor word 1 (s33) numerically.

Verified:
- cmake --build --preset release --target compile_dxil d3d12_xs_shim (linked)
- python -B tests/native_direct_mesh_check.py <compile_dxil.exe> <dxc dir>:
  exit 0, "mesh allocation, indexed outputs, group exchange and negative
  controls passed"
- ctest --preset release --no-tests=error -R '^native_direct': 2/2 passed
  (native_direct_container 15.50 s, native_direct_mesh 13.44 s)
- ctest --preset release --no-tests=error -R '^native_fixed_mesh57_warp$':
  1/1 passed (1.55 s)
- python -B tests/docs_links_check.py: 211 files, 809 links

Refs #3497
The slot 57 capture req_72e1909e13df6f66.m57 reaches
  image_load v[19:21], v11, s[56:63] dmask:0x7 dim:SQ_RSRC_IMG_1D unorm
at +0x700. The descriptor is a complete guest V# read from the resource heap
by the eight-dword load at +0x614, not a texture heap slot-map record, so the
slot-map branch refused it.

- A mesh image branch now handles the full-V# form when
  !layout.texture_heap_slot_map: image_load (op 0), dim 1D, dmask 0x7, UNORM,
  no LWE/TFE/R128/reserved bits, eight contiguous descriptor words carrying
  projected_numeric and a destination inside the VGPR range.
- The slot comes from the fetch: a root-proven selector reuses the typed path's
  heap_fetches guard, records mesh_heap_reads and takes and(root, mask); a
  GPU-selected fetch uses the bytes >> 5 slot recorded by the eight-dword load.
- createHandleFromHeap(slot) is annotated Texture1D { 1, 1033 } and
  textureLoad.f32 reads mip 0 at the VGPR coordinate, writing the three
  integer channels.
- Four-channel loads, other dimensions, missing UNORM or an unmatched
  descriptor keep refusing.

Observed on the captured MS with the exact profile layout:
- before: native compute +0x700: unsupported mesh instruction or EXEC state: image_load
- now:    native compute +0x7c0: unproven mesh entry register 287
The next refusal is v_fma_mixlo_f16 reading its own destination to keep the
high half; that mixed-precision form stays outside this change.

tests/native_direct_mesh_check.py adds mesh-image-full-descriptor (x8 heap
fetch, masked root selector, 1D UNORM load, IR checks for
createHandleFromHeap, textureLoad.f32 and the three channels) and
mesh-image-unsupported-dimension (2D refused). The dmask-15 without-map fixture
now doubles as the four-channel control.

Verified:
- cmake --build --preset release --target compile_dxil d3d12_xs_shim
  startup_indirect_draw_indexed (linked)
- python -B tests/native_direct_mesh_check.py <compile_dxil.exe> <dxc dir>:
  exit 0, "mesh allocation, indexed outputs, group exchange and negative
  controls passed"
- ctest --preset release --no-tests=error -R '^native_direct': 2/2 passed
  (native_direct_container 14.92 s, native_direct_mesh 13.52 s)
- ctest --preset release --no-tests=error -R '^native_fixed_mesh57_warp$':
  1/1 passed (1.41 s)

Refs #3497
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 16:30:04 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-01 17:05 UTC · original

The current head's Windows build/test job failed in Configure, build and run PC tests, while both Linux jobs passed. This also depends on #3756. Please refresh the branch after the descriptor-load change is resolved and rerun Windows CI.

**@⁠R0Y00** on GitHub · 2026-12-01 17:05 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3758#issuecomment-7318733177) The current head's Windows build/test job failed in `Configure, build and run PC tests`, while both Linux jobs passed. This also depends on #3756. Please refresh the branch after the descriptor-load change is resolved and rerun Windows CI.
github-bot force-pushed github-bot/gh-3758 from 964d3121c4 to b4c5697aa1 2026-12-01 22:49:23 +00:00 Compare
Author
Owner

@⁠lambirou on GitHub · 2026-12-01 22:44 UTC · original

Rebased onto #3756's corrected head 6102db88.

The descriptor words stay symbolic: #3756 records only bytes >> 5 for an op 3 fetch, and this branch identifies the fetch through heap_fetches (root-proven) or heap_descriptor_slots (GPU-selected). The image branch no longer requires projected_numeric, and the eight-word equality check keeps offsets 0, 4, ..., 28 without inventing field bits.

The dmask-0x7 root and GPU-selected forms now lower (mesh-image-full-descriptor, -root, -gpu); four channels, 2D and an overwritten word keep refusing. Descriptor-word reads still refuse as unbound numeric SGPR s33 / s37.

Validation on 92b0a153:

  • python -B tests/native_direct_mesh_check.py ... — pass.
  • ctest --preset release --no-tests=error -R '^native_direct' — 2/2 passed.
  • The head is based on 6102db88, not the old 4dd116c4.

The Windows job should now run against the corrected stack; I'll check the result.

AI-assisted.

**@⁠lambirou** on GitHub · 2026-12-01 22:44 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3758#issuecomment-7328269695) Rebased onto #3756's corrected head `6102db88`. The descriptor words stay symbolic: #3756 records only `bytes >> 5` for an op 3 fetch, and this branch identifies the fetch through `heap_fetches` (root-proven) or `heap_descriptor_slots` (GPU-selected). The image branch no longer requires `projected_numeric`, and the eight-word equality check keeps offsets 0, 4, ..., 28 without inventing field bits. The dmask-0x7 root and GPU-selected forms now lower (`mesh-image-full-descriptor`, `-root`, `-gpu`); four channels, 2D and an overwritten word keep refusing. Descriptor-word reads still refuse as `unbound numeric SGPR s33` / `s37`. Validation on `92b0a153`: - `python -B tests/native_direct_mesh_check.py ...` — pass. - `ctest --preset release --no-tests=error -R '^native_direct'` — 2/2 passed. - The head is based on `6102db88`, not the old `4dd116c4`. The Windows job should now run against the corrected stack; I'll check the result. AI-assisted.
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-02 01:51 UTC · original

Current CI is green. Before merging this stack, please add a runtime binding control for the unmapped createHandleFromHeap path. The GPU-derived selector path records no mesh_heap_reads; slot 57's direct-heap path currently requires a nonempty guard list. The root-derived path records a slot guard, but the fixture needs to establish that the runtime supplies a compatible Texture1D descriptor rather than only validating offline DXIL.

**@⁠R0Y00** on GitHub · 2026-12-02 01:51 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3758#issuecomment-7332181115) Current CI is green. Before merging this stack, please add a runtime binding control for the unmapped `createHandleFromHeap` path. The GPU-derived selector path records no `mesh_heap_reads`; slot 57's direct-heap path currently requires a nonempty guard list. The root-derived path records a slot guard, but the fixture needs to establish that the runtime supplies a compatible Texture1D descriptor rather than only validating offline DXIL.
Author
Owner

@⁠lambirou on GitHub · 2026-12-02 14:45 UTC · original · reviewed

Reviewed b4c5697a against #3756; read the mesh image branch and its source-built controls, not built here.

Verdict: approve. The full-V# branch is deliberately narrow: 1D, UNORM, dmask 0x7, no modifiers, eight contiguous symbolic descriptor words from one fetch, a destination inside the VGPR range, and either a root-proven or GPU-selected heap slot. The four-channel and 2D controls still refuse, and the symbolic descriptor-word refusals are preserved.

  • SHOULD The emitted handle is annotated Texture1D { 1, 1033 } without inspecting the guest V# format words. The branch accepts any symbolic eight-word descriptor with the right fetch shape, so a different UNORM 1D format would get the wrong DXIL annotation. Either check the descriptor format words once the contract supplies them, or name the exact format as a precondition of this profile and refuse the rest.
  • NIT The branch requires a destination i.dst <= 252 for three channels, which is correct; make the comment say three destination VGPRs so a later four-channel extension does not copy the wrong bound.
  • Checked, no finding: the eight words must be the same symbol with offsets 0..28 and no overwrite; the fetch must be recorded in heap_fetches or heap_descriptor_slots; a root selector requires an unmasked root value and a GPU selector uses the stored slot; textureLoad.f32 reads mip 0 at the coordinate and writes three integer channels. The controls cover root, GPU-selected, four-channel and 2D refusals.

The PR is stacked on #3756 and currently conflicts with main; the translation itself remains a slice with the stated descriptor-contract limit.

**@⁠lambirou** on GitHub · 2026-12-02 14:45 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3758#pullrequestreview-6153060686) · **reviewed** Reviewed `b4c5697a` against #3756; read the mesh image branch and its source-built controls, not built here. **Verdict: approve.** The full-V# branch is deliberately narrow: 1D, UNORM, dmask 0x7, no modifiers, eight contiguous symbolic descriptor words from one fetch, a destination inside the VGPR range, and either a root-proven or GPU-selected heap slot. The four-channel and 2D controls still refuse, and the symbolic descriptor-word refusals are preserved. - **SHOULD** The emitted handle is annotated `Texture1D { 1, 1033 }` without inspecting the guest V# format words. The branch accepts any symbolic eight-word descriptor with the right fetch shape, so a different UNORM 1D format would get the wrong DXIL annotation. Either check the descriptor format words once the contract supplies them, or name the exact format as a precondition of this profile and refuse the rest. - **NIT** The branch requires a destination `i.dst <= 252` for three channels, which is correct; make the comment say three destination VGPRs so a later four-channel extension does not copy the wrong bound. - Checked, no finding: the eight words must be the same symbol with offsets 0..28 and no overwrite; the fetch must be recorded in `heap_fetches` or `heap_descriptor_slots`; a root selector requires an unmasked root value and a GPU selector uses the stored slot; `textureLoad.f32` reads mip 0 at the coordinate and writes three integer channels. The controls cover root, GPU-selected, four-channel and 2D refusals. The PR is stacked on #3756 and currently conflicts with main; the translation itself remains a slice with the stated descriptor-contract limit.
github-bot force-pushed github-bot/gh-3758 from b4c5697aa1 to ab48e1cfe0 2026-12-02 14:58:34 +00:00 Compare
github-bot force-pushed github-bot/gh-3758 from ab48e1cfe0 to 1e9872ad2b 2026-12-02 15:10:56 +00:00 Compare
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-02 15:49 UTC · original · reviewed

#3756 has landed. Merging the current stacked branch into main conflicts in tests/native_direct_mesh_check.py. I applied only the #3760 delta (3fc816da..1587d78a) to f09547cd in an isolated checkout. It applied cleanly across the three owned files and ctest --preset dev --no-tests=error -j 1 -R '^native_direct_mesh$' --output-on-failure passed 1/1 on MSVC Debug. Please update this PR with only the two #3760 commits on current main and remove the extra blank line at the end of docs/experiments/native-mesh-image-load.md. The tested tree was local; the PR branch is unchanged.

**@⁠R0Y00** on GitHub · 2026-12-02 15:49 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3758#pullrequestreview-6154243936) · **reviewed** #3756 has landed. Merging the current stacked branch into main conflicts in `tests/native_direct_mesh_check.py`. I applied only the #3760 delta (`3fc816da..1587d78a`) to `f09547cd` in an isolated checkout. It applied cleanly across the three owned files and `ctest --preset dev --no-tests=error -j 1 -R '^native_direct_mesh$' --output-on-failure` passed 1/1 on MSVC Debug. Please update this PR with only the two #3760 commits on current main and remove the extra blank line at the end of `docs/experiments/native-mesh-image-load.md`. The tested tree was local; the PR branch is unchanged.
This pull request has changes conflicting with the target branch.
  • docs/experiments/native-mesh-heap-descriptor.md
  • docs/experiments/native-mesh-image-load.md
  • src/gfx1013_direct_mesh.inl
  • tests/native_direct_mesh_check.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3760/head:github-bot/gh-3758'
git switch 'github-bot/gh-3758'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3758'
git switch 'github-bot/gh-3758'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3758'
git switch 'github-bot/gh-3758'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3758'
git switch 'main'
git merge --squash 'github-bot/gh-3758'
git switch 'main'
git merge --ff-only 'github-bot/gh-3758'
git switch 'main'
git merge 'github-bot/gh-3758'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.