Integration stack: native PRs on current main #3250
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3250
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3248"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@lambirou on GitHub · 2026-11-28 01:44 UTC · original
lambirou:local/pr-stack→main· +443 −59 · 13 files · 140 commits · closed without mergingThis is a draft integration stack, not a merge candidate. It combines the open native PRs on top of current
mainso they can be built and tested together; the individual PRs remain the review units. Included open PRs: - #3139native/stale-manifest-mtime(basecodex/native-shader-modules) - #3141native/graphics-pso-fallback(basecodex/native-graphics-integration) - #3243merge/native-shader-main-current(basecodex/native-shader-modules) - #3091/#3094 are reached through the bases of #3139/#3139. Integration work in this branch: - merged currentmainthroughda968a50(28 commits across the last two syncs) and resolved the native, draw and compute conflicts; - kept the compute token UAV description in the mergedViewunion (a285b490); - restoredpacked_stateandvalidate_compute_request_shapeafter 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 currentmain3926a289(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 oforigin/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_hardwareis the one known failure: on the RX 9060 XT, the (8,4,1) case reads0x3f948000instead of0x3f800000. The same AMD result is documented in #3257 and reproduced on unmodifiedmain; 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 atgame+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.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.@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-builtstartup_compute_dispatch_native_hardwarecheck.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 remain0xc5c5c5c5instead of0x400.Slot::scalar_windowis still populated, but never consumed in this head. The bounded unplaced-window fallback is present in the public #3094 head97cde4d5and 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, MSVC19.43.34810, DXC1.9.2609, Agility 620, D3D12 debug layer enabled.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=0setting 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.
@lambirou on GitHub · 2026-11-28 10:34 UTC · original
Confirmed and pushed
c6c7688bunchanged to the stack head.On the parent
7f97cb5b,startup_compute_dispatch_native_hardwarefails with the reported refusal:word=0 got=c5c5c5c5 expected=00000400 (288 words differ), and the log saysan input is in title memory outside any placed bufferat table 1 byte 64.On
c6c7688b, the same RX 9060 XT run passes. The three hardware checks I ran all pass:Release
/O2, 3/3, about 12 s. The stack still conflicts with currentmainas a whole; this commit closes the scalar-window regression on its own.3926a289into the integration stack 3273b75706@lambirou on GitHub · 2026-11-28 10:54 UTC · original
Refreshed the stack onto current
main3926a289: head3273b757, 135 commits ahead and 0 behind. The conflicts were reconciled in:graphics_request_key/compute_request_keyand the validated short-state read;create_translated_rootwith bothheap_srvsandinput_assembler;--rekeyand--prepare-compute-packin the usage text;Release
/O2runtime checks on RX 9060 XT: 9/9.The PR is now
MERGEABLE(still a draft integration stack, not a merge candidate).@lambirou on GitHub · 2026-11-28 11:03 UTC · original
CI is green on
808bc79a. The Linux failure waspatch_manifest_check.py: the merged graphics loader reads<key>.gs.csofor rectangle geometry, whilePIPELINES["graphics"]still listed only.txt/.vs.cso/.ps.cso..gs.csois now a valid optional graphics extension (not required), and the test passes again.The stack is
CLEAN/MERGEABLEat808bc79a, 136 commits ahead ofmainand 0 behind. The 9/9 Release runtime set from3273b757is unchanged; this is a tooling-only fix.2ff74a6ainto local/pr-stack dd82af5a96@lambirou on GitHub · 2026-11-30 00:31 UTC · original
Updated head:
015c98da.main2ff74a6ainto the stack; four conflicts resolved (direct_compute_cache.cpp,d3d12_draw.inl,gdk_exports_check.py,gdk_shim_coverage.py);present/multplane-default(#3378) so a multi-plane present composites every drawable plane by default;X2W_NATIVE_SHADERS_ONLY=0acrossrun.ps1 -Render, because the native graphics frontend still refuses fixed slot 57 entries withfixed 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 ongame+0x3d1e6a0while loading; that is the remaining stability limit, after the display proof.@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:49 UTC · original
Added
a7217107: fixed slot 57PSI1entries without a.cdxilsidecar now derive the VS/PS interfaces from the raw programs. The compiler converts the 12-bytePSI1record into thepsin1form the raw frontend already consumes, validates the two known address layouts (2,0x8002) and the interpolant count, and refuses unsupported masks before publishing. The newnative_fixed_graphics_psi1test 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 interfacesrequests are gone. The remaining graphics refusal is 645raw graphics requires a verified stage interface or wave state.Stability note: with
X2W_XMEM_SHARED_VIEWS=1the title reaches the legal screen and crashes at 86–143 s in a slot allocator (game+0x3d1e6a0). WithX2W_XMEM_SHARED_VIEWS=0it reaches the brightness calibration screen (6,998 translated draws) but still crashes later atgame+0x4f67dcf. The display path is stable; the title still has separate crashes.Tests:
native_fixed_graphics_psi1,native_direct_containerandnative_direct_meshpass in Release.47c30febinto local/pr-stack 12a31aa644@lambirou on GitHub · 2026-11-30 00:59 UTC · original
Head
12a31aa6: mergedmain47c30feb, the accepted opt-in version of #3378. The stack now keeps plane 0 alone by default and composites every plane only underX2W_PRESENT_COMPOSITE=1; the local "compose by default" merge was dropped in favour of the reviewed implementation. The PSI1 fixa7217107is kept.Validation: Release build clean;
startup_present_planes, its control,startup_present_composite_warp, the overlay control,native_fixed_graphics_psi1,native_direct_containerandnative_direct_meshall 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 matchedX2W_PRESENT_PLANE=0control on the same build stayed black.X2W_XMEM_SHARED_VIEWS=0remains 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 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.Pull request closed