Integration stack: native PRs on current main #3250

Closed
github-bot wants to merge 140 commits from github-bot/gh-3248 into main AGit
Owner

@⁠lambirou on GitHub · 2026-11-28 01:44 UTC · original
lambirou:local/pr-stack → main · +443 −59 · 13 files · 140 commits · closed without merging

This is a draft integration stack, not a merge candidate. It combines the open native PRs on top of current main so they can be built and tested together; the individual PRs remain the review units. Included open PRs: - #3139 native/stale-manifest-mtime (base codex/native-shader-modules) - #3141 native/graphics-pso-fallback (base codex/native-graphics-integration) - #3243 merge/native-shader-main-current (base codex/native-shader-modules) - #3091/#3094 are reached through the bases of #3139/#3139. Integration work in this branch: - merged current main through da968a50 (28 commits across the last two syncs) and resolved the native, draw and compute conflicts; - kept the compute token UAV description in the merged View union (a285b490); - restored packed_state and validate_compute_request_shape after the automatic merges (cf0b7072); - combined the slot 67 indirect/pixel test changes with the token and scalar-window cases; - allowed view-token compute inputs in non-aliased placed buffers (dc76ca16), after which the compute dispatches stopped being refused; - preferred a published graphics pair over native compilation on the first draw (bb5ee4c9), and aligned the snapshot/alignment call sites (2dff32de);\n- restored bounded unplaced native scalar windows after the integration merge (c6c7688b), with the 288-word readback control;\n- merged current main 3926a289 (3273b757) and reconciled shared request keys, the heap_srvs/input-assembler root parameters, view-heap entry tracking, rekey usage and the scalar-window/typed-output test modes. Current head: 808bc79a, 136 commits ahead of origin/main, 0 behind. Validation: - Release build: 0 errors (322 targets for the main sync, 110 for the last five commits). - native_dpp8_hardware, native_sdwa_f16_{ir,hardware}, native_f16_alu_{ir,hardware}, native_slot67_wave_size_hardware, native_frozen_request: 7/7 passed. - native_rcp_iflag_*, native_round_f16_*, native_smem_vcc_wave64_*: 8/8 passed after the last sync. - startup_compute_dispatch_input_{warp,hardware}, startup_native_graphics_draw_{warp,hardware}, startup_map_drive(_overlap), startup_image_cube_{warp,hardware}, startup_slot67_indirect_dispatch_{warp,hardware}: passed. - native_compute_implicit_lod_hardware is the one known failure: on the RX 9060 XT, the (8,4,1) case reads 0x3f948000 instead of 0x3f800000. The same AMD result is documented in #3257 and reproduced on unmodified main; it is not caused by this stack. WARP skips that path. - A diagnostic startup run rendered the publisher intro card at about 103 s, with 1,365 textures and 11 pipelines / 0 missing. It then stopped at an access violation at game+0x6eb3f2. This is an integration milestone, not a playability claim. Please use the individual PRs for review; this draft is only for combined integration testing.

**@⁠lambirou** on GitHub · 2026-11-28 01:44 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3248) `lambirou:local/pr-stack` → `main` · +443 −59 · 13 files · 140 commits · closed without merging This is a draft integration stack, not a merge candidate. It combines the open native PRs on top of current `main` so they can be built and tested together; the individual PRs remain the review units. Included open PRs: - #3139 `native/stale-manifest-mtime` (base `codex/native-shader-modules`) - #3141 `native/graphics-pso-fallback` (base `codex/native-graphics-integration`) - #3243 `merge/native-shader-main-current` (base `codex/native-shader-modules`) - #3091/#3094 are reached through the bases of #3139/#3139. Integration work in this branch: - merged current `main` through `da968a50` (28 commits across the last two syncs) and resolved the native, draw and compute conflicts; - kept the compute token UAV description in the merged `View` union (`a285b490`); - restored `packed_state` and `validate_compute_request_shape` after the automatic merges (`cf0b7072`); - combined the slot 67 indirect/pixel test changes with the token and scalar-window cases; - allowed view-token compute inputs in non-aliased placed buffers (`dc76ca16`), after which the compute dispatches stopped being refused; - preferred a published graphics pair over native compilation on the first draw (`bb5ee4c9`), and aligned the snapshot/alignment call sites (`2dff32de`);\n- restored bounded unplaced native scalar windows after the integration merge (`c6c7688b`), with the 288-word readback control;\n- merged current `main` `3926a289` (`3273b757`) and reconciled shared request keys, the heap_srvs/input-assembler root parameters, view-heap entry tracking, rekey usage and the scalar-window/typed-output test modes. Current head: `808bc79a`, 136 commits ahead of `origin/main`, 0 behind. Validation: - Release build: 0 errors (322 targets for the main sync, 110 for the last five commits). - `native_dpp8_hardware`, `native_sdwa_f16_{ir,hardware}`, `native_f16_alu_{ir,hardware}`, `native_slot67_wave_size_hardware`, `native_frozen_request`: 7/7 passed. - `native_rcp_iflag_*`, `native_round_f16_*`, `native_smem_vcc_wave64_*`: 8/8 passed after the last sync. - `startup_compute_dispatch_input_{warp,hardware}`, `startup_native_graphics_draw_{warp,hardware}`, `startup_map_drive(_overlap)`, `startup_image_cube_{warp,hardware}`, `startup_slot67_indirect_dispatch_{warp,hardware}`: passed. - `native_compute_implicit_lod_hardware` is the one known failure: on the RX 9060 XT, the (8,4,1) case reads `0x3f948000` instead of `0x3f800000`. The same AMD result is documented in #3257 and reproduced on unmodified `main`; it is not caused by this stack. WARP skips that path. - A diagnostic startup run rendered the publisher intro card at about 103 s, with 1,365 textures and 11 pipelines / 0 missing. It then stopped at an access violation at `game+0x6eb3f2`. This is an integration milestone, not a playability claim. Please use the individual PRs for review; this draft is only for combined integration testing.
Adopt the FP32 BVH descriptor unit decode, 48-bit end-exclusive bound, positional unsorted results and positive-infinity miss keys for both box kinds. Binary16 fixtures are packed as half values and share the independent model; dev and release WARP and RX 9060 XT dispatch pass 21 cases plus six mutants.
Accept the 64-byte triangle node forms (kinds 0..3), decode their four ID maps and base vertex triples, and emit a watertight ray/triangle helper for return mode 1. The helper returns {t, det, v, w} and keeps the 48-bit descriptor rules. 119 CPU witnesses pass bit-for-bit on WARP and the RX 9060 XT in dev and release, with four negative mutations; the existing box tests remain green.
Size 0 is a one-unit span, so a binary16 node at offset zero accepts it and an FP32 node needs size 1 at offset zero. Use the decoded extent in the Python guard and both HLSL helpers, with exact-fit, too-short, upper-bound and boundary-dispatch controls.
Size is a count minus one in 64-byte units: size 0 covers a triangle at offset zero, while a triangle in the next unit needs size 1. Cover exact fits, a too-short neighbor, the 4 GiB upper bound and the HLSL boundary dispatch on WARP and hardware.
shader: preserve helper-lane inputs and texture dimensions on native pipelines
The watcher treated a pixel-input sidecar as current whenever its timestamp
was not newer than the manifest, so a content change with a preserved or
older mtime kept a stale accepted manifest. Publish an FNV-1a digest of the
.psin/.ps57in bytes next to the manifest and compare it before a cache hit;
the batch graphics path writes the same digest.

Regression: native_startup_request_cache_check.py now covers an unchanged
cache hit, a contradictory .ps57in both older and newer than the manifest,
and a changed .psin with a preserved mtime.

Refs #3133. Refs #3091.
A native graphics candidate reports ready=1 before pipeline_for creates its
desktop PSO. When CreateGraphicsPipelineState failed, the draw returned null
and cached that result, so the target stayed clear even when a valid published
pair existed in the shader cache.

Reload that pair for the same render-target key, bump a translation revision
so earlier native PSOs are not reused, and refuse the draw with a diagnostic
when the pair is missing or invalid. Native-only mode keeps its explicit
refusal. The published manifest and stage files are read, never rewritten.

Refs #3134
The indexed rectangle stage found the right-angle corner by testing whether a
corner shares an x or a y with each of its neighbours. A rotated rectangle has
no axis-aligned edge, so no corner matched, the stage returned without emitting
either triangle, and the region the rectangle covered stayed unpainted with the
rectangle diagonal as its boundary. The vertex-stage rectangle expansion has no
such restriction (it uses v0 + v2 - v1 directly), so the two implementations of
the same rule disagreed.

The corner is now also identified from the shape: the right-angle corner is the
vertex opposite the diagonal, the longest of the three edges, and the two sides
must meet at a right angle so a shape that is not a rectangle stays undrawn. The
axis test keeps precedence, so every input it accepted is unchanged. Both
startup_stubs/indexed_rect_geometry.h and the native rule of
gfx1013_rect_geometry.cpp use it.

tests/startup_rect_geometry.cpp draws one rectangle named by three corners with
back-face culling on: the axis order and the swung order (rejected by winding)
keep their previous result, and the same square turned by 15 degrees covers 0 of
32 differing pixels instead of 32.

tests/startup_rect_gap.cpp and tests/startup_rect_gap_check.py add the reported
synthetic draw: eight 12-byte records (mask at +0, XY at +4), two vertex-buffer
views over the same records, an R16 indexed triangle list and a six-vertex
rectangle list of the same quad and edge ring, a mask-controlled pixel shader and
a constant-colour control, an RGBA8 target, and back-face culling. The bound
vertex and index bytes, the translated fetch and the pre/post-draw pixels match
the model in every mode, on WARP and through the hardware backend; the reported
diagonal gap does not reproduce for that input
(docs/experiments/startup-rect-gap.md).

Refs #3131
- assert the origin, direction and inverse-direction operands of the translated call
- ignore the triangle return mode bit for box nodes in the translator guard and helper
- add the triangle check to the Linux CI fragment
- correct the BVH experiment notes and link both notes from experiments.md
pipeline_for may replace the native candidate with the published disk
translation. Create the PSO before preparing the D16, formatted-buffer and
fixed-vertex bindings so they come from the final translation, and recompute
indexed-rectangle geometry when the fallback changes the fixed stream.

Add the RTV variant fallback and invalid pixel-blob cases.
Keep main's newer direct-compute lowerings alongside the native mesh and pixel-heap paths.
Keep the PSO recipe replay and the native candidate fallback together, with the fixed-rectangle geometry paths.
The DXIL assembler rejects the non-representable decimal literal; native_rectangle_pso_warp failed until the constant was built from 0x358637bd.
Bring in #3153 menu sampler/BC7 uploads, #3140 sampler heap, #3141 XG mip footprints, #3169 byte-window atomics, #3032 BVH box16 and the newer tooling tests. Keep the branch's triangle BVH and native mesh paths on top.
Bring in packed binary16 direct DXIL lowering (#3151), wave32 s_mov_b32 exec_hi (#3192), SCC liveness through neutral SOP1 operations (#3189) and the merged #3175 tooling. Keep the native saveexec variant alongside them.
Bring in #3105 triangle BVH, packed f16 min/max (#3144), descriptor lane spills (#3161), raw buffer scalar offsets (#3172) and live-view path aliases (#3204). Adapt the native mesh path to the new transfer signature and free constant32 helper.
Bring in Opus activation/trimming (#3084), shared raw UAVs (#3213), bitreplicate to EXEC (#3179), SMEM vcc operands (#3180), multi-DWORD GLOBAL loads (#3164), wave-reduce pixel lowering (#3191), hook-window stepping (#1408) and inline descriptor routing (#3211). Keep the branch's Opus counters and native mesh paths.
Bring in the merged UI/input/exit tooling PRs, typed 2D image atomics (#3162), permlane lowering (#3022), f16 FMA (#3187), DPP16 f16 arithmetic (#3188), slot 70 exact-start uploads (#2841), missing-shader draw diagnostics (#3218), runtime target (#2827), MONITORX/RDPRU AOT (#2430) and the new UI regression/exit/input tests.
Bring in numeric M0 support (#3205), native raw pixel buffer UAV binding (#3215), permlane (#3022), typed image atomics (#3162), f16 FMA/DPP16 (#3187/#3188), exact-start slot 70 uploads (#2841), missing-shader diagnostics (#3218), runtime target (#2827), MONITORX/RDPRU AOT (#2430) and the merged UI/input/exit tooling.
Bring in the shader-cache revision warning (#2820), numeric M0 (#3205), native raw pixel UAV binding (#3215), permlane (#3022), typed image atomics (#3162), f16 FMA/DPP16 (#3187/#3188), exact-start slot 70 uploads (#2841), missing-shader diagnostics (#3218), runtime target (#2827), MONITORX/RDPRU AOT (#2430) and the merged UI/input/exit tooling. Keep the mesh57 capture-state path on the new stage-copy keying.
Bring in the upload-ring/null-cause stats (#2864) and keep the branch's graphics guest-upload trace.
Bring in the merged #3142 rectangle review version (hex double tolerance and extra cases) now that main contains it.
# Conflicts:
#	src/gfx1013_direct_graphics.inl
# Conflicts:
#	docs/experiments/startup-opus-completion-count.md
#	src/startup_stubs/d3d12_draw.inl
#	src/startup_stubs/xapu.cpp
#	tests/startup_stream_consumer.cpp
#	tests/startup_xapu_opus_count_check.cpp
# Conflicts:
#	CMakeLists.txt
#	src/direct_compute_cache.cpp
#	src/gfx1013_direct_compute.inl
- Updated various tests to correctly set the wave size and thread group parameters in the structured data for compute requests.
- Introduced a new test for comparing wave64 and wave32 lane counts in `native_slot67_wave_size_check.py`.
- Enhanced checks in `native_startup_request_cache_check.py` to ensure no stale native output manifests exist.
- Improved output validation in `startup_compute_dispatch_output_check.py` to ensure proper reasons are logged for refused dispatches.
- Added checks for output descriptor conditions in `startup_compute_root_srv_dispatch_check.py`.
- Updated the DXIL compilation process to handle native compute output more robustly, ensuring Python translations are correctly managed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:49:50 +00:00
# Conflicts:
#	CMakeLists.txt
#	src/gfx1013_compute_native.h
#	src/gfx1013_direct_compute.inl
#	src/startup_stubs/d3d12_compute_dispatch.inl
#	src/startup_stubs/d3d12_draw.inl
#	src/startup_stubs/d3d12_xs_device.cpp
#	tests/startup_native_graphics_draw_check.py
# Conflicts:
#	src/gfx1013_compute_native.cpp
#	src/gfx1013_direct_compute.inl
#	src/startup_stubs/d3d12_compute_dispatch.inl
#	src/startup_stubs/d3d12_draw.inl
The GXDK 261000 ID3D12GraphicsCommandList8 table confirms the command-list order: Reset and ClearState at 10-11, the query methods at 28-30, SetPredication at 31, the desktop marker methods at 56-58, ExecuteIndirect at 61 and the console reset at 139. It also confirms AllocateFromCommandAllocatorX at 148.

Name the confirmed public methods and fix the query comments. The console-only rows stay outside the repository. Tests: startup_command_list_slot_names, startup_list_queries_warp and startup_list_queries_default_warp_control.
The GDK 261000 XALLOC_ATTRIBUTES layout has objectType:14, pageSize:2, allocatorId:8, alignment:5, memoryType:4, an address-below-4-GiB bit at 33 and 30 reserved bits above it. Page size 2 is 2 MiB, not 4 MiB.

Separate the address bit from the reserved field and refuse a below-4-GiB request explicitly until the allocator can honor it. Tests: era_heap_decode_fields, era_heap_failure and the other era_heap scenarios (10/10).
The query comment still cited ID3D12GraphicsCommandList6; the extracted 261000 table is GraphicsCommandList8.
Keep the pixel heap texture path from the stack and the typed 2D image atomic binops from main.
Record the 2 MiB page-size value, the address-below-4-GiB bit at 33 and the 30 reserved bits at 34-63. Scope the older observed words to the zeros they measured and note that a below-4-GiB request still returns null.
Keep the query bindings diagnostic while naming the confirmed methods. Leave the allocator page-size note to the xmem change.
Page size 2 is 2 MiB. This comment belongs with the XALLOC_ATTRIBUTES change rather than the command-list slot names.
Author
Owner

@⁠wish131400 on GitHub · 2026-11-28 10:24 UTC · original

I reproduced a native scalar-input regression on the unmodified public head 7f97cb5ba467d16019dfd3ecdc86cf09c6dbcf09, using the existing source-built startup_compute_dispatch_native_hardware check.

The compiler succeeds, but the first scalar-window positive is refused at table 1 byte 64 with an input is in title memory outside any placed buffer. All 288 result words remain 0xc5c5c5c5 instead of 0x400. Slot::scalar_window is still populated, but never consumed in this head. The bounded unplaced-window fallback is present in the public #3094 head 97cde4d5 and absent here.

An isolated restoration, based on this integration head, is available as c6c7688b. It restores normal range resolution first, then the existing native-scalar-only fallback for readable, whole-dword unplaced windows covering the compiler's required bytes and no larger than 64 KiB. It retains the current input-source counters and does not change the policy for non-aliased placed buffers. Successful GPU-backed resolution and view tokens never take this fallback. The commit contains only this runtime change and a source-built reproduction note; it is intended for the integration stack rather than a main PR containing the stack's other commits.

Validation: Windows 10 Pro build 19045, RTX 4070 Ti SUPER, driver 32.0.15.7270, Release /O2, MSVC 19.43.34810, DXC 1.9.2609, Agility 620, D3D12 debug layer enabled.

cmake --build --preset runtime
$env:PYTHONUTF8 = '0'
ctest --preset release --no-tests=error -j 1 -V -R '^(native_fixed_mesh57_(varying|buffers)?_?hardware|startup_native_graphics_draw_hardware|startup_compute_dispatch_(native|input)_hardware|startup_slot67_indirect_dispatch_hardware)$'
ctest --preset release --no-tests=error -j 1 -V -R '^(startup_compute_dispatch_(native|input)|startup_slot67_indirect_dispatch)_warp$'

After restoration: hardware 7 passed, 0 failed, 0 skipped (24.09 s). Both scalar values (0x400, 0x45678) produce all 288 expected words with 32 guards unchanged. The short two-record window stays refused with the entire output untouched. Existing Mesh pixel, indirect Dispatch, input-refusal/snapshot and shared UAV cases also pass without modifying their assertions. Local WARP: 2 passed, 0 failed, 1 capability skip (7.24 s); native compute reports no 32-lane waves, and runs its published-fallback controls before skipping.

The PYTHONUTF8=0 setting is a separate local harness workaround: Python 3.14's UTF-8 default cannot decode the localized Windows missing-DXC error used by the graphics negative control. No graphics/test source change was needed.

This descriptor shape is relevant to #3312, but the fixture does not prove the cause of its 48 zero records or meet its matched integration acceptance.

**@⁠wish131400** on GitHub · 2026-11-28 10:24 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3248#issuecomment-7237877916) I reproduced a native scalar-input regression on the unmodified public head `7f97cb5ba467d16019dfd3ecdc86cf09c6dbcf09`, using the existing source-built `startup_compute_dispatch_native_hardware` check. The compiler succeeds, but the first scalar-window positive is refused at table 1 byte 64 with `an input is in title memory outside any placed buffer`. All 288 result words remain `0xc5c5c5c5` instead of `0x400`. `Slot::scalar_window` is still populated, but never consumed in this head. The bounded unplaced-window fallback is present in the public #3094 head `97cde4d5` and absent here. An isolated restoration, based on this integration head, is available as [c6c7688b](https://github.com/wish131400/Xbox2Windows/commit/c6c7688b). It restores normal range resolution first, then the existing native-scalar-only fallback for readable, whole-dword unplaced windows covering the compiler's required bytes and no larger than 64 KiB. It retains the current input-source counters and does not change the policy for non-aliased placed buffers. Successful GPU-backed resolution and view tokens never take this fallback. The commit contains only this runtime change and a source-built reproduction note; it is intended for the integration stack rather than a main PR containing the stack's other commits. Validation: Windows 10 Pro build 19045, RTX 4070 Ti SUPER, driver `32.0.15.7270`, Release `/O2`, MSVC `19.43.34810`, DXC `1.9.2609`, Agility 620, D3D12 debug layer enabled. ```powershell cmake --build --preset runtime $env:PYTHONUTF8 = '0' ctest --preset release --no-tests=error -j 1 -V -R '^(native_fixed_mesh57_(varying|buffers)?_?hardware|startup_native_graphics_draw_hardware|startup_compute_dispatch_(native|input)_hardware|startup_slot67_indirect_dispatch_hardware)$' ctest --preset release --no-tests=error -j 1 -V -R '^(startup_compute_dispatch_(native|input)|startup_slot67_indirect_dispatch)_warp$' ``` After restoration: hardware **7 passed, 0 failed, 0 skipped (24.09 s)**. Both scalar values (`0x400`, `0x45678`) produce all 288 expected words with 32 guards unchanged. The short two-record window stays refused with the entire output untouched. Existing Mesh pixel, indirect Dispatch, input-refusal/snapshot and shared UAV cases also pass without modifying their assertions. Local WARP: **2 passed, 0 failed, 1 capability skip (7.24 s)**; native compute reports no 32-lane waves, and runs its published-fallback controls before skipping. The `PYTHONUTF8=0` setting is a separate local harness workaround: Python 3.14's UTF-8 default cannot decode the localized Windows missing-DXC error used by the graphics negative control. No graphics/test source change was needed. This descriptor shape is relevant to #3312, but the fixture does **not** prove the cause of its 48 zero records or meet its matched integration acceptance.
Author
Owner

@⁠lambirou on GitHub · 2026-11-28 10:34 UTC · original

Confirmed and pushed c6c7688b unchanged to the stack head.

On the parent 7f97cb5b, startup_compute_dispatch_native_hardware fails with the reported refusal: word=0 got=c5c5c5c5 expected=00000400 (288 words differ), and the log says an input is in title memory outside any placed buffer at table 1 byte 64.

On c6c7688b, the same RX 9060 XT run passes. The three hardware checks I ran all pass:

startup_slot67_indirect_dispatch_hardware
startup_compute_dispatch_input_hardware
startup_compute_dispatch_native_hardware

Release /O2, 3/3, about 12 s. The stack still conflicts with current main as a whole; this commit closes the scalar-window regression on its own.

**@⁠lambirou** on GitHub · 2026-11-28 10:34 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3248#issuecomment-7237985828) Confirmed and pushed `c6c7688b` unchanged to the stack head. On the parent `7f97cb5b`, `startup_compute_dispatch_native_hardware` fails with the reported refusal: `word=0 got=c5c5c5c5 expected=00000400 (288 words differ)`, and the log says `an input is in title memory outside any placed buffer` at table 1 byte 64. On `c6c7688b`, the same RX 9060 XT run passes. The three hardware checks I ran all pass: ``` startup_slot67_indirect_dispatch_hardware startup_compute_dispatch_input_hardware startup_compute_dispatch_native_hardware ``` Release `/O2`, 3/3, about 12 s. The stack still conflicts with current `main` as a whole; this commit closes the scalar-window regression on its own.
Keep the stack's scalar-window, token-UAV and mesh-heap paths while taking main's shared request keys, heap_srvs root parameter, view-heap entry tracking, rekey usage and WREXEC/BCNT64 compute additions. Apply the short-state validation order from the compiler refresh.
The merged graphics loader reads <key>.gs.cso for rectangle geometry, so .gs.cso is a valid but optional graphics translation file. Keep it out of the required set.
Author
Owner

@⁠lambirou on GitHub · 2026-11-28 10:54 UTC · original

Refreshed the stack onto current main 3926a289: head 3273b757, 135 commits ahead and 0 behind. The conflicts were reconciled in:

  • shared graphics_request_key/compute_request_key and the validated short-state read;
  • create_translated_root with both heap_srvs and input_assembler;
  • view-heap entry tracking plus the mesh heap-slot count;
  • the scalar-window and typed-output test modes;
  • --rekey and --prepare-compute-pack in the usage text;
  • BCNT64 plus the shared scalar-mask combiner in direct compute.

Release /O2 runtime checks on RX 9060 XT: 9/9.

startup_mrt_dxc_warp
startup_native_graphics_draw_warp
startup_native_graphics_draw_hardware
startup_slot67_indirect_dispatch_hardware
startup_compute_dispatch_input_hardware
startup_mrt_dxc_hardware
native_rtv_variant_warp
native_rtv_variant_hardware
startup_compute_dispatch_native_hardware

The PR is now MERGEABLE (still a draft integration stack, not a merge candidate).

**@⁠lambirou** on GitHub · 2026-11-28 10:54 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3248#issuecomment-7238204622) Refreshed the stack onto current `main` `3926a289`: head `3273b757`, 135 commits ahead and 0 behind. The conflicts were reconciled in: - shared `graphics_request_key`/`compute_request_key` and the validated short-state read; - `create_translated_root` with both `heap_srvs` and `input_assembler`; - view-heap entry tracking plus the mesh heap-slot count; - the scalar-window and typed-output test modes; - `--rekey` and `--prepare-compute-pack` in the usage text; - BCNT64 plus the shared scalar-mask combiner in direct compute. Release `/O2` runtime checks on RX 9060 XT: 9/9. ``` startup_mrt_dxc_warp startup_native_graphics_draw_warp startup_native_graphics_draw_hardware startup_slot67_indirect_dispatch_hardware startup_compute_dispatch_input_hardware startup_mrt_dxc_hardware native_rtv_variant_warp native_rtv_variant_hardware startup_compute_dispatch_native_hardware ``` The PR is now `MERGEABLE` (still a draft integration stack, not a merge candidate).
Author
Owner

@⁠lambirou on GitHub · 2026-11-28 11:03 UTC · original

CI is green on 808bc79a. The Linux failure was patch_manifest_check.py: the merged graphics loader reads <key>.gs.cso for rectangle geometry, while PIPELINES["graphics"] still listed only .txt/.vs.cso/.ps.cso. .gs.cso is now a valid optional graphics extension (not required), and the test passes again.

The stack is CLEAN/MERGEABLE at 808bc79a, 136 commits ahead of main and 0 behind. The 9/9 Release runtime set from 3273b757 is unchanged; this is a tooling-only fix.

**@⁠lambirou** on GitHub · 2026-11-28 11:03 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3248#issuecomment-7238297506) CI is green on `808bc79a`. The Linux failure was `patch_manifest_check.py`: the merged graphics loader reads `<key>.gs.cso` for rectangle geometry, while `PIPELINES["graphics"]` still listed only `.txt/.vs.cso/.ps.cso`. `.gs.cso` is now a valid optional graphics extension (not required), and the test passes again. The stack is `CLEAN/MERGEABLE` at `808bc79a`, 136 commits ahead of `main` and 0 behind. The 9/9 Release runtime set from `3273b757` is unchanged; this is a tooling-only fix.
# Conflicts:
#	docs/experiments/gdk-exports.md
#	src/gfx1013_compute_native.cpp
#	src/gfx1013_direct_compute.inl
#	src/shader_compute_request.cpp
#	src/startup_stubs/d3d12_draw.inl
#	src/startup_stubs/translated_sampler_bindings.h
#	tests/gdk_exports_check.py
#	tests/startup_stream_consumer.cpp
#	tools/gdk_exports.py
#	tools/gdk_shim_coverage.py
#	tools/startup/compile_dxil.cpp
# Conflicts:
#	CMakeLists.txt
#	docs/experiments.md
#	src/direct_compute_cache.cpp
#	src/gfx1013_compute_native.cpp
#	src/gfx1013_compute_native.h
#	src/gfx1013_direct_compute.inl
#	src/gfx1013_direct_mesh.inl
#	src/shader_compute_request.cpp
#	src/startup_stubs/d3d12_compute_dispatch.inl
#	src/startup_stubs/d3d12_draw.inl
#	src/startup_stubs/translated_sampler_bindings.h
#	tests/startup_native_graphics_draw_check.py
#	tools/patch_manifest.py
#	tools/startup/compile_dxil.cpp
# Conflicts:
#	src/shader_compute_request.cpp
#	src/startup_stubs/d3d12_compute_dispatch.inl
#	src/startup_stubs/d3d12_draw.inl
#	src/startup_stubs/translated_sampler_bindings.h
Author
Owner

@⁠lambirou on GitHub · 2026-11-30 00:31 UTC · original

Updated head: 015c98da.

  • merged current main 2ff74a6a into the stack; four conflicts resolved (direct_compute_cache.cpp, d3d12_draw.inl, gdk_exports_check.py, gdk_shim_coverage.py);
  • merged present/multplane-default (#3378) so a multi-plane present composites every drawable plane by default;
  • kept an explicit X2W_NATIVE_SHADERS_ONLY=0 across run.ps1 -Render, because the native graphics frontend still refuses fixed slot 57 entries with fixed graphics entry requires matching stage interfaces; the run then uses the published translations.

Release build: 511/511 targets, 0 errors. Targeted tests: 9/9 passed, 1 WARP skip; the four startup_present_* tests also pass.

Real-title run on the merged stack (Series S profile, 24 GiB, -Render -Translate, no title bytes in the repository): the output window shows the GTA VI MENTIONS LÉGALES screen with the default multi-plane composition, 1,393 textures uploaded, 45,735 translated draws and 17 pipelines. The title then crashes at 143 s on game+0x3d1e6a0 while loading; that is the remaining stability limit, after the display proof.

**@⁠lambirou** on GitHub · 2026-11-30 00:31 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3248#issuecomment-7265341667) Updated head: `015c98da`. - merged current `main` `2ff74a6a` into the stack; four conflicts resolved (`direct_compute_cache.cpp`, `d3d12_draw.inl`, `gdk_exports_check.py`, `gdk_shim_coverage.py`); - merged `present/multplane-default` (#3378) so a multi-plane present composites every drawable plane by default; - kept an explicit `X2W_NATIVE_SHADERS_ONLY=0` across `run.ps1 -Render`, because the native graphics frontend still refuses fixed slot 57 entries with `fixed graphics entry requires matching stage interfaces`; the run then uses the published translations. Release build: 511/511 targets, 0 errors. Targeted tests: 9/9 passed, 1 WARP skip; the four `startup_present_*` tests also pass. Real-title run on the merged stack (Series S profile, 24 GiB, `-Render -Translate`, no title bytes in the repository): the output window shows the GTA VI **MENTIONS LÉGALES** screen with the default multi-plane composition, 1,393 textures uploaded, 45,735 translated draws and 17 pipelines. The title then crashes at 143 s on `game+0x3d1e6a0` while loading; that is the remaining stability limit, after the display proof.
Author
Owner

@⁠lambirou on GitHub · 2026-11-30 00:33 UTC · original

Follow-up 153a003: -Translate now selects the published translations itself, so the display command no longer needs the environment override. The run above used the same setting explicitly.

**@⁠lambirou** on GitHub · 2026-11-30 00:33 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3248#issuecomment-7265374306) Follow-up 153a003: -Translate now selects the published translations itself, so the display command no longer needs the environment override. The run above used the same setting explicitly.
Author
Owner

@⁠lambirou on GitHub · 2026-11-30 00:49 UTC · original

Added a7217107: fixed slot 57 PSI1 entries without a .cdxil sidecar now derive the VS/PS interfaces from the raw programs. The compiler converts the 12-byte PSI1 record into the psin1 form the raw frontend already consumes, validates the two known address layouts (2, 0x8002) and the interpolant count, and refuses unsupported masks before publishing. The new native_fixed_graphics_psi1 test covers the centered case, a cache hit, packed position, unsupported addresses, control flags, too many interpolants and packed position without its address.

Census on the title cache: the 9 fixed graphics entry requires matching stage interfaces requests are gone. The remaining graphics refusal is 645 raw graphics requires a verified stage interface or wave state.

Stability note: with X2W_XMEM_SHARED_VIEWS=1 the title reaches the legal screen and crashes at 86–143 s in a slot allocator (game+0x3d1e6a0). With X2W_XMEM_SHARED_VIEWS=0 it reaches the brightness calibration screen (6,998 translated draws) but still crashes later at game+0x4f67dcf. The display path is stable; the title still has separate crashes.

Tests: native_fixed_graphics_psi1, native_direct_container and native_direct_mesh pass in Release.

**@⁠lambirou** on GitHub · 2026-11-30 00:49 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3248#issuecomment-7265603562) Added `a7217107`: fixed slot 57 `PSI1` entries without a `.cdxil` sidecar now derive the VS/PS interfaces from the raw programs. The compiler converts the 12-byte `PSI1` record into the `psin1` form the raw frontend already consumes, validates the two known address layouts (`2`, `0x8002`) and the interpolant count, and refuses unsupported masks before publishing. The new `native_fixed_graphics_psi1` test covers the centered case, a cache hit, packed position, unsupported addresses, control flags, too many interpolants and packed position without its address. Census on the title cache: the 9 `fixed graphics entry requires matching stage interfaces` requests are gone. The remaining graphics refusal is 645 `raw graphics requires a verified stage interface or wave state`. Stability note: with `X2W_XMEM_SHARED_VIEWS=1` the title reaches the legal screen and crashes at 86–143 s in a slot allocator (`game+0x3d1e6a0`). With `X2W_XMEM_SHARED_VIEWS=0` it reaches the brightness calibration screen (6,998 translated draws) but still crashes later at `game+0x4f67dcf`. The display path is stable; the title still has separate crashes. Tests: `native_fixed_graphics_psi1`, `native_direct_container` and `native_direct_mesh` pass in Release.
Author
Owner

@⁠lambirou on GitHub · 2026-11-30 00:59 UTC · original

Head 12a31aa6: merged main 47c30feb, the accepted opt-in version of #3378. The stack now keeps plane 0 alone by default and composites every plane only under X2W_PRESENT_COMPOSITE=1; the local "compose by default" merge was dropped in favour of the reviewed implementation. The PSI1 fix a7217107 is kept.

Validation: Release build clean; startup_present_planes, its control, startup_present_composite_warp, the overlay control, native_fixed_graphics_psi1, native_direct_container and native_direct_mesh all pass (7/7).

Display proof on the accepted version: X2W_PRESENT_COMPOSITE=1, X2W_XMEM_SHARED_VIEWS=0, 90 s run. At 61 s the window shows the merged Rockstar legal/privacy screen, with 25,864 translated draws and 1,382 textures; the run reached its timeout without crashing. The matched X2W_PRESENT_PLANE=0 control on the same build stayed black.

X2W_XMEM_SHARED_VIEWS=0 remains the stability setting: with shared views on, the same path crashes at 86–143 s in the title's slot allocator, and a second crash remains under shared views off after the brightness screen.

**@⁠lambirou** on GitHub · 2026-11-30 00:59 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3248#issuecomment-7265742100) Head `12a31aa6`: merged `main` `47c30feb`, the accepted opt-in version of #3378. The stack now keeps plane 0 alone by default and composites every plane only under `X2W_PRESENT_COMPOSITE=1`; the local "compose by default" merge was dropped in favour of the reviewed implementation. The PSI1 fix `a7217107` is kept. Validation: Release build clean; `startup_present_planes`, its control, `startup_present_composite_warp`, the overlay control, `native_fixed_graphics_psi1`, `native_direct_container` and `native_direct_mesh` all pass (7/7). Display proof on the accepted version: `X2W_PRESENT_COMPOSITE=1`, `X2W_XMEM_SHARED_VIEWS=0`, 90 s run. At 61 s the window shows the merged Rockstar legal/privacy screen, with 25,864 translated draws and 1,382 textures; the run reached its timeout without crashing. The matched `X2W_PRESENT_PLANE=0` control on the same build stayed black. `X2W_XMEM_SHARED_VIEWS=0` remains the stability setting: with shared views on, the same path crashes at 86–143 s in the title's slot allocator, and a second crash remains under shared views off after the brightness screen.
github-bot closed this pull request 2026-11-30 10:36:21 +00:00
Author
Owner

@⁠lambirou on GitHub · 2026-11-30 10:34 UTC · original

Closing this integration stack: its member PRs are now closed or merged (#3139 closed, #3141 and #3243 merged), and the branch conflicts with main. The individual PRs were the review units; nothing here needs to land.

**@⁠lambirou** on GitHub · 2026-11-30 10:34 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3248#issuecomment-7275779897) Closing this integration stack: its member PRs are now closed or merged (#3139 closed, #3141 and #3243 merged), and the branch conflicts with `main`. The individual PRs were the review units; nothing here needs to land.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.