startup: name ExecuteIndirect pipeline refusal causes per pipeline key #3411
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3411"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-28T23:11:04Z.
Summary
ExecuteIndirect refusals in the graphics-pipeline, compute-pipeline, and placeholder-signature buckets record a named cause and the bound pipeline key. Which calls are accepted does not change. The graphics matching refusal still uses one decision and one message:
indirect graphics requires a direct list with a matching desktop pipeline and root.known_pipeline_keydoes not write translation request files. It returns, in order, the mesh-cache key, the compute request key recorded for a slot 67 pipeline, an opt-in compute trace key, a console translation key, the stream-translation key recorded for a slot 86 pipeline, and otherwise the guest stream hash recorded at creation. That hash mixes the copied descriptor (pointer words cleared for slots 57 and 67) with the shader and state bytes copied at the same time. A slot 57 or 86 mesh pipeline with no translation or no profile, and a compute pipeline, therefore rank under the key recorded for that pipeline.A matching refusal with no recorded stream is stored as
no_pipeline_key. Every other code keeps its name when the lookup is 0. Key 0 is not a ranked pipeline. Those calls arex2w-d3d12 indirect-pipeline no-pipeline-key: calls N. The key-overflow call count does not include them.PerReasonRefusalCensusstill stores at most 128(key, reason)pairs. Per-key totals continue past that cap, up to 1024 non-zero keys. A report prints the 32 highest keys andkey-overflow: keys K calls C unstored-calls Ufor the rest.tools/startup/triage_run.pyaddsExecuteIndirectRefusal Causes from those lines.--shareablesums counts by bucket and reason and omits every pipeline key. The no-pipeline-key line is counts only in either mode.Reason codes
graphics/no_translation: the matching refusal when a guest stream key was recorded and none of the named clauses below applygraphics/no_pipeline_key: that same matching refusal when no guest stream was recordedgraphics/mesh_profile_missing: a slot 57 or 86 mesh pipeline with no reviewed.mesh57-stateprofile and no cached stagegraphics/translated_indirect_draw_off:X2W_TRANSLATED_INDIRECT_DRAWis offgraphics/guest_root_mismatch: the desktop pipeline root differs from the root bound on the listgraphics/non_direct_list: the call is on a compute listgraphics/pipeline_kind_mismatch: a mesh command is bound to a non-mesh pipeline, or the reversegraphics/cached_mesh_root: the cached mesh creation root or indexing mode differsgraphics/cached_mesh_constants: cached mesh root constants are incompletegraphics/translated_draw_record: recording a translated draw failedgraphics/mesh_xmem_read: a mesh indirect read from copied memory failedgraphics/mesh_bind: binding the mesh shader resources for the indirect draw failedcompute/no_compute_pipeline: a dispatch has no desktop compute pipelinecompute/builder_gate: the compute builder gate refused the dispatchcompute/translated_dispatch_shape: translated Dispatch requires one rootless command and no count buffercompute/translated_dispatch_record: recording a translated dispatch failedplaceholder/placeholder_signature: the command signature is a placeholderunknown: a refusal site passed no code; the bucket is still graphics, compute, or placeholderTests
On the Windows test PC (MSVC, WARP) at head
e799c4e134347bb41b6def5fe7aed1c47ff492ab,ctest --preset dev -j 1 --no-tests=error -R '^startup_per_reason_refusal_census(_keep-(last|first)_control)?$|^startup_triage_run$|^runtime_startup_triage_run_cli_check$|^startup_indirect_(bucket_.+|translated_refusal_census(_control)?|other_refusal_census(_control)?)_warp$' -E 'startup_audio_(output|pacing|provider)' --output-on-failure:cmake --build --preset devexit 0, 27/27 passed, ctest exit 0. None skipped. The branch is 10 commits behind current mainc04e0dd6and still merges cleanly.startup_indirect_bucket_mesh-profile_warpandstartup_indirect_bucket_no-translation_warprequire a non-zero pipeline key.startup_indirect_bucket_no-translation_control_warpstill reaches the target refusal and must not recordno_translation. A control with no pipeline recordsgraphics/no_pipeline_keyand must not rank a key. Mesh cases return 77 when mesh shaders or a dispatch-mesh signature are unavailable.Linux, head
633f3784:g++andclang++with-std=c++17 -Wall -Wextra -Werror -Werror=narrowingontests/startup_per_reason_refusal_census_check.cppexit 0. The-DX2W_CENSUS_KEEP_LASTand-DX2W_CENSUS_KEEP_FIRSTcontrols exit 1. The python-linux check list, 259 checks, exits 0.tests/startup_triage_run_check.pyandtests/startup_triage_run_cli_check.pyexit 0.Docs
docs/startup-runtime.mdlists every reason code above, the guest stream hash, and the no-pipeline-key line.docs/wine.mdshowstriage_run.py --shareable.Refs #3405
AI-assisted (Cursor)
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T23:53:30Z.
Reviewed
633f3784by its diff. Which calls are refused does not change (all 11 refuse sites differ only in the code they pass), the codes are static strings and the per-call logs stay bounded (16 plus the first 8 pairs). Points:indirect-drawandindirect-otherreports gainkey-total,key-overflowandno-pipeline-keylines; andknown_pipeline_keynow also returnscompute_request_key(ahead ofcompute_trace_key) and falls back to the new creation-timeguest_stream_keyhash for any pipeline recorded bynote_pipeline(slots 55/57/62/67/86), which changes theindirect-othercensus key and theindirect-recordedtrace key. Pointer words are cleared only for slots 57 and 67, so the slot 55/62/86 hashes include raw pointer words. The body still names head0e864258and does not mentionno_pipeline_keyor the hash key.reason=graphics/<code>carries no draw / drawindexed / dispatchmesh kind, so mesh and draw refusals mix; on a run of main0614f68c,DispatchMeshalone accounts for 1,923,473 refused commands. Past 128 pairs, calls are counted only inoverflow callsand the key totals, with no cause. Suggest the kind in the reason and a per-code-and-kind counter without the cap.known_pipeline_key(up to two shared SRW locks), the matching refusal adds apipeline_infolookup, then the census mutex, a linear scan of up to 1024 keys (skipped for key 0) and a scan of up to 128 pairs. The header still says "not a per-draw hot path"; that run had about 2.8 million refused calls in these buckets.builder_gate,translated_dispatch_shape/translated_dispatch_record,cached_mesh_root/cached_mesh_constants,translated_draw_record, the pipeline variant ofmesh_xmem_read,mesh_bind(unknownis unreachable, every site passes a code). No test covers: ind3d12_xs_device.cpp,indirect_pipeline_refusal_code::cached_mesh_rootchanged tocached_mesh_constants;(info->path == 57 || info->path == 86)cut toinfo->path == 57; intriage_run.py,max(pipeline_keys.get(key, 0), calls)replaced bycalls.Minor:
no_translationstill mixes an untranslated console pipeline and a desktop pipeline with no recorded indirect root, andno_pipeline_keymixes no pipeline bound and a pipeline with no recorded stream; inindirect_graphics_match_codetheenv_onand!cached_meshtests are redundant. On a placeholder refusal with no pass yet, the lambda'spass_of(self)now allocates aPass.Comment, not a change request: the PR is diagnostic only and refuses the same calls.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-29T11:23:43Z.
Review: COMMENTED
Reviewed
633f3784by reading the diff; not built or run. One issue before merge: the cost per refused call (point 3 above), with numbers.known_pipeline_key, ansnprintfof the reason (d3d12_xs_device.cpp:3826), the census mutex and the key/pair scans (per_reason_refusal_census.h:39-42). In a 360 s startup run from a save on main46226004, the existingx2w-render indirect:line ends at draw 1,451,072, drawindexed 301,750, dispatchmesh 15,874,353, compute dispatch 4,853,572, placeholder 252,513: about 22.7 million refused calls, roughly 3,000 per frame. That run is CPU-bound (about 5.4 cores busy, GPU 3D about 18 %).Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-29T12:52:25Z.
I reviewed
e799c4e1(rebased onmain77d1ba4d, 0 behind) by reading it. I also ran benchmarks and the platform-independent checks on Linux. I did no Windows or WARP run.The per-call cost is fixed by
e799c4e1. This is the point lukaslw-lab and Leyukaka raised. On633f3784I timednote()plus thesnprintffrom that head'sper_reason_refusal_census.h(g++ -O2, 4 M calls): 117–300 ns per call on one thread and 270–817 ns on four, for 16 to 1024 keys. That was all under one mutex. In the new path each refused call doespipeline_refusal_index, an interlocked add and a sample check. A copy of that path takes 9.6 ns (no_translation, the first name) to 44.6 ns (placeholder_signature, a late one) per call on one thread, and 20.7–25.5 ns on four, with no lock. At the ~63,000 refused calls per second in lukaslw-lab's run, that's under 3 ms per second.At this head,
python3 -B tests/startup_triage_run_check.pyreportsstartup triage_run checks: 0 failed.tests/startup_per_reason_refusal_census_check.cpp(g++-Wall -Wextra -Werror) printsPASS, and theX2W_CENSUS_KEEP_LASTandX2W_CENSUS_KEEP_FIRSTcontrols fail it with 7 and 6 checks.MUST
e799c4e1changes the refuse path ind3d12_xs_device.cpp, andstartup_indirect_draw_indexed.cppnow expects ax2w-d3d12 indirect-pipeline count <kind> <bucket>/<code> 1line from it. Theprpreset doesn't include those tests: the Windows CI log at this head has100% tests passed out of 81, andgrep -c 'startup_indirect_bucket'on it gives0. The receipts in the body are for633f3784. Please post the samectest --preset devWARP run ate799c4e1, with the bucket tests and their controls.SHOULD
2. Nothing tests the new sample window or the opt-in. Every bucket fixture refuses one call per cell, so two mutants pass all tests:
seen >= pipeline_key_sample_limit→false(key every call, which brings the old cost back), andpipeline_keys_opt_in()→false. No test setsX2W_INDIRECT_PIPELINE_KEYS. Two checks would pin them: a case with 9 or more refusals in one cell that expects exactly 8 keyed calls and the full count, and an opt-in run that keys all of them.3.
triage_run.pystill prints pipeline keys by default (shareable: bool = False). With the sample, the first 8 keys per cell show up in every default report. The module docstring still says the report "is built only from allowlisted structured values" and lists which ones, and the opening sentence of thetriage_run.pyparagraph indocs/startup-runtime.mddescribes an "allowlist-only Markdown report" with the same list. Onlydocs/wine.mdtells people to pass--shareable, and the PR's own test treats a key in shareable output as a failure. Either make keys opt-in so the default matches the documented contract, or update those two places to say the report includes keys.NIT
4. Two counts depend on the sample window:
count <kind> graphics/no_pipeline_keyandcount <kind> graphics/no_translation. A bound pipeline whose key is 0 is moved tono_pipeline_keyonly when it falls in the first 8 calls of itsno_translationcell. After that it stays inno_translation. The code comment says so, but the per-kind counts paragraph indocs/startup-runtime.mddoesn't.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T13:16:35Z.
Review: COMMENTED
Reviewed
e799c4e1by its diff, code reading only; nothing built or run. Only points not already raised above, all about the fallback key (guest_stream_key).MUST
src/startup_stubs/d3d12_capture.inl:381— the slot 57 hash still contains addresses, so the key does not "follow the stream" as the comment at:372,docs/startup-runtime.md:657-658and the body say.hash_guest_streamclears words 0, 1, 3, 5, 7, 9, 10, 13. For the 0x300-byte fixed mesh descriptor,normalize_mesh57_descriptor(src/startup_stubs/mesh57_profile.h:43-60) treats0x78, 0x120, 0x128, 0x168, 0x178, 0x198, 0x1d8, 0x280, 0x288, 0x2c8, 0x2d8, 0x2f8as pointers,0x110/0x270as 32-bit addresses, and0x160/0x2c0as an allocation address that "varies independently". None of those are cleared here. Scenario: a slot 57 mesh pipeline with no profile (graphics/mesh_profile_missing, the case the body names) has nomesh86_keyand no translation, soknown_pipeline_key(d3d12_draw.inl:1246) returns this hash; the same stream created at another address, or in another run, gets another key, splits acrosskey-totalrows and cannot be compared between two reports. Either hashnormalize_mesh57_descriptor(info.desc)for slot 57, or state in the docs and body that the slot 57 key is per allocation like slots 55/62/86. The slot 57 fixture (tests/startup_indirect_draw_indexed.cpp:1998) uses a zero-filled descriptor with only word 0 set, so it cannot see this.SHOULD
d3d12_capture.inl:438/:395-396— shader bytes are in the hash only for a fixed mesh slot 57 pipeline.fixed_ms/fixed_psare copied only when!words[9] && !words[10] && words[14]. For a slot 57 pipeline with a vertex stage (words 9/10 set) no shader bytes are copied, and word 10, cleared as a "pointer word", is the vertex stage length (d3d12_draw.inl:1187,b_bytes = words[10]). Scenario: two such pipelines with the same fixed state and the same pixel stage length but different shader code get one key and onekey-totalrow undergraphics/no_translationorgraphics/translated_indirect_draw_off. For slot 67 neither code, data nor state blocks are copied (:444ispath == 57only), so whencompute_request_keyis 0 (publishing disabled or the description refused) the key is the description fields alone, and it covers up to 0x300 bytes wherepublish_compute_requestreads 12 words. The sentence "mixes the copied descriptor with the shader and state bytes" in the body and atdocs/startup-runtime.md:657should say which slots it holds for.d3d12_xs_device.cpp:3838-3850,tools/startup/triage_run.py:714,:731— the sample window is per code and kind, not per key. WithoutX2W_INDIRECT_PIPELINE_KEYS=1the keyed census receives at most 8 calls per cell, sokey-totaland the pair rows hold the first 8 calls of each cell, not the pipelines with the most refusals. Scenario: a default run with millions ofdispatchmesh graphics/mesh_profile_missingrefusals over many pipelines reports at most 8 keys for that cell, with calls summing to 8, under the headings "Top pipeline keys by refusal calls" and "Latest cumulative count per pipeline key and cause". Suggest the headings say "sampled" unless the opt-in was set, or sample the first N calls per key.NIT
633f3784: it does not mention thecount <kind> <bucket>/<code>lines, the 8-call window orX2W_INDIRECT_PIPELINE_KEYS, and "Per-key totals continue past that cap" and "A matching refusal with no recorded stream is stored asno_pipeline_key" now hold only inside the window or with the opt-in.Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-29T13:18:47Z.
Windows test PC (MSVC, WARP,
--preset dev,-j 1), ate799c4e134347bb41b6def5fe7aed1c47ff492ab.cmake --build --preset devexit 0.27/27 passed, ctest exit 0. None skipped.
startup_indirect_translated_refusal_census_warp:x2w-d3d12 indirect-draw refusals: total 6; distinct keys 3, distinct pairs 4 (overflow calls 0). A valid draw did not increment refusals (8/8 non-clear pixels).startup_indirect_translated_refusal_census_control_warp: required mismatch. Got total 5, distinct keys 3, distinct pairs 3.startup_indirect_other_refusal_census_warp:x2w-d3d12 indirect-other refusals: total 4; distinct keys 2, distinct pairs 3 (overflow calls 0).startup_indirect_other_refusal_census_control_warp: required mismatch. Got total 3, distinct keys 2, distinct pairs 2.Bucket cases and their controls, from the test's own success line. None returned 77.
no-translation:graphics/no_translation. Control must not record that code and must reach the target refusal.mesh-profile:graphics/mesh_profile_missing. Control:graphics/no_pipeline_key.mesh-profile-86:graphics/mesh_profile_missing. Control:graphics/no_translation.translated-draw-off:graphics/translated_indirect_draw_off. Control must not record that code.guest-root:graphics/guest_root_mismatch. Control must not record that code.non-direct:graphics/non_direct_list. Control:graphics/no_pipeline_key.pipeline-kind:graphics/pipeline_kind_mismatch. Control must not record that code.placeholder:placeholder/placeholder_signature. Control:graphics/no_pipeline_key.compute-pipeline:compute/no_compute_pipeline. Control:graphics/no_pipeline_key.Each case with an expected reason also requires
x2w-d3d12 indirect-pipeline count <kind> <reason> 1in the census report. None of those checks failed. The success stdout does not print that line, so this comment does not quote one.startup_per_reason_refusal_census: PASS (distinct keys=2, pairs=4, detail=8, max=128).startup_per_reason_refusal_census_keep-last_control(WILL_FAIL): FAIL (7 checks).startup_per_reason_refusal_census_keep-first_control(WILL_FAIL): FAIL (6 checks).startup_triage_run: startup triage_run checks: 0 failed.runtime_startup_triage_run_cli_checkpassed.The branch is 10 commits behind current main
c04e0dd6and still merges cleanly. This run does not cover the sample window orX2W_INDIRECT_PIPELINE_KEYS, and it does not change thetriage_run.pydefault keys.AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-29T13:24:15Z.
Thanks for the WARP run at
e799c4e1: 27/27 passed, and the census and control counts match what the tests expect. That settles my MUST 1, so my own review has nothing blocking left.I'm still not merging, because Leyukaka's MUST 1 (13:16 review) checks out when I read this head:
note_pipeline(static_cast<Wrapper*>(*out), N, nullptr, desc, 0x300);ind3d12_xs_device.cpp.hash_guest_streamclears onlypointer_words[] = {0, 1, 3, 5, 7, 9, 10, 13}, so it clears nothing past byte0x6f.normalize_mesh57_descriptorinmesh57_profile.htreats0x78,0x120,0x128,0x168,0x178,0x198,0x1d8,0x280,0x288,0x2c8,0x2d8and0x2f8as section pointers and0x110/0x270as 32-bit addresses. It also says the allocation address at+0x160/+0x2c0"varies independently".So when the same fixed-mesh descriptor is created at another address, it gets a different fallback key. The comment above
hash_guest_streamand the docs say the opposite: the key "follows the stream, not the addresses in it". One fix would be to hash the output ofnormalize_mesh57_descriptorfor slot 57. That helper already exists, and the Mesh57 capture path ind3d12_draw.inluses it. A fixture could then create one descriptor twice, with all of its pointers shifted by the same offset, and expect a single key.My SHOULD 2 (sample window and
X2W_INDIRECT_PIPELINE_KEYSuntested) and SHOULD 3 (triage_run.pyprints keys by default) are still open. Your comment says this run doesn't cover them. The branch still merges cleanly into currentmain(17b662a2).AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-29T18:14:33Z.
Windows test PC (MSVC, WARP,
--preset dev,-j 1), ata2fae7adba04499247803d2690f8d1421b63822c. That head is a merge of origin/main77d63db8b63348d4081716a10b3e2e4c74bd338fintoe799c4e134347bb41b6def5fe7aed1c47ff492ab(fast-forward of the PR branch, no force-push).cmake --preset devandcmake --build --preset devexit 0.The only conflict was
tools/startup/triage_run.py, one hunk. The merge keeps both theExecuteIndirectpipeline-refusal section from this PR and the compute Dispatch refusal section from #3384. Other files auto-merged. Against main this is still the same 11 files.27/27 passed, ctest exit 0. The log lists every test as Passed. No Failed, Skipped, or Not Run.
startup_indirect_translated_refusal_census_warp:x2w-d3d12 indirect-draw refusals: total 6; distinct keys 3, distinct pairs 4 (overflow calls 0).census valid draw does not increment refusals: 8/8 non-clear pixels, argument guards intact.startup_indirect_translated_refusal_census_control_warp:indirect-draw refusal census mismatch:got total 5, distinct keys 3, distinct pairs 3. Required regular expression found. ctest Passed.startup_indirect_other_refusal_census_warp:x2w-d3d12 indirect-other refusals: total 4; distinct keys 2, distinct pairs 3 (overflow calls 0).startup_indirect_other_refusal_census_control_warp:indirect-other refusal census mismatch:got total 3, distinct keys 2, distinct pairs 2. Required regular expression found. ctest Passed.Bucket success lines from LastTest (the control line is what that control test printed):
no-translation:graphics/no_translation. Control:graphics/no_translation.mesh-profile:graphics/mesh_profile_missing. Control:graphics/no_pipeline_key.mesh-profile-86:graphics/mesh_profile_missing. Control:graphics/no_translation.translated-draw-off:graphics/translated_indirect_draw_off. Control:graphics/translated_indirect_draw_off.guest-root:graphics/guest_root_mismatch. Control:graphics/guest_root_mismatch.non-direct:graphics/non_direct_list. Control:graphics/no_pipeline_key.pipeline-kind:graphics/pipeline_kind_mismatch. Control:graphics/pipeline_kind_mismatch.placeholder:placeholder/placeholder_signature. Control:graphics/no_pipeline_key.compute-pipeline:compute/no_compute_pipeline. Control:graphics/no_pipeline_key.startup_per_reason_refusal_census: PASS (distinct keys=2, pairs=4, detail=8, max=128).startup_per_reason_refusal_census_keep-last_control(WILL_FAIL): binary printed FAIL (7 checks). ctest Passed.startup_per_reason_refusal_census_keep-first_control(WILL_FAIL): binary printed FAIL (6 checks). ctest Passed.startup_triage_run:startup triage_run checks: 0 failed.runtime_startup_triage_run_cli_check:Ran 8 tests in 1.503s/OK.This does not address Leyukaka MUST 1 (slot 57 guest stream key still hashing addresses). It also does not cover the sample window or
X2W_INDIRECT_PIPELINE_KEYS.AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-29T18:33:58Z.
Windows test PC (MSVC, WARP,
--preset dev,-j 1), at6f748bfdbe399743d72b35edf3a6a607cfa6ce39. That head is one commit on top of the mergea2fae7adba04499247803d2690f8d1421b63822c(fast-forward, no force-push).cmake --preset devandcmake --build --preset devexit 0.This commit is Leyukaka MUST 1. For a slot 57 record,
hash_guest_streamnow hashes the output ofnormalize_mesh57_descriptor. Slot 67 is unchanged and still clears only the early pointer words, so a slot 67 fallback hash can still contain later addresses.28/28 passed, ctest exit 0. The log lists every test as Passed. No Failed, Skipped, or Not Run.
New
startup_indirect_mesh57_stream_key_warp(warp mesh57-stream-key): creates one extended 0x300 slot 57 descriptor twice, with every address fieldnormalize_mesh57_descriptortreats as an address shifted by0x3FE3000, and expects one non-zerographics/mesh_profile_missingkey withcalls=2. A third copy with byte0x207set must produce a different non-zero key withcalls=1. LastTest:mesh57 stream key: shared d9c0489e17cbf29a, content bc89ce6ec1c2fbe1. No mesh / dispatch-mesh capability skip. Test Passed.The previous 27 still passed at this head. Census totals match the merge run:
startup_indirect_translated_refusal_census_warp:x2w-d3d12 indirect-draw refusals: total 6; distinct keys 3, distinct pairs 4 (overflow calls 0).startup_indirect_translated_refusal_census_control_warp: got total 5, distinct keys 3, distinct pairs 3. Required regular expression found. ctest Passed.startup_indirect_other_refusal_census_warp:x2w-d3d12 indirect-other refusals: total 4; distinct keys 2, distinct pairs 3 (overflow calls 0).startup_indirect_other_refusal_census_control_warp: got total 3, distinct keys 2, distinct pairs 2. Required regular expression found. ctest Passed.startup_per_reason_refusal_census: PASS (distinct keys=2, pairs=4, detail=8, max=128).startup_per_reason_refusal_census_keep-last_control(WILL_FAIL): binary printed FAIL (7 checks). ctest Passed.startup_per_reason_refusal_census_keep-first_control(WILL_FAIL): binary printed FAIL (6 checks). ctest Passed.startup_triage_run:startup triage_run checks: 0 failed.runtime_startup_triage_run_cli_checkpassed.This does not address Leyukaka SHOULD 2 or SHOULD 3, the sample window, or
X2W_INDIRECT_PIPELINE_KEYS.AI-Assisted
Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-29T18:41:02Z.
Re-review at
6f748bfd(delta frome799c4e1: mergea2fae7ad+ one commit). No blocking issues left, so I'm merging.Slot 57 fallback key (earlier MUST): fixed for the recognized layout. For path 57,
hash_guest_streamnow hashes whatnormalize_mesh57_descriptorreturns. When the extended 0x300 guard passes, that output has the 13 section pointers (0x38…0x2f8) made relative, 0x110/0x270 made relative and 0x160/0x2c0 cleared. The descriptor is always 0x300 here (note_pipeline(..., N, nullptr, desc, 0x300)). The newstartup_indirect_mesh57_stream_key_warpshifts every one of those fields by 0x3FE3000 and gets one key withcalls=2. It also gets a different key for the copy with byte 0x207 changed. Reverting the hash would give three keys, so the old bug fails this test. The author's WARP run at this head shows 28/28 passed.SHOULD, not blocking. The fallback now hashes three words it used to clear. If the extended guard fails,
normalize_mesh57_descriptorclears only words {0, 1, 3, 5, 13}. Ate799c4e1the path-57 branch also cleared words 7, 9 and 10 (0x38, 0x48, 0x50), and 0x38 is the section pointer. So for an unrecognized 0x300 slot-57 record the key now includes one more address than before. Fix: run the oldpointer_wordsclear after normalization in both cases. For a recognized record it changes nothing: relative 0x38 is 0, and the guard requires 0x48 and 0x50 to be 0.Still open from earlier, not blocking: the 8-call sample window and
X2W_INDIRECT_PIPELINE_KEYS=1are still unpinned (SHOULD 2), and triage keys are still printed by default (SHOULD 3). The author's comment says the same. Both can be follow-ups.State: MERGEABLE/CLEAN. CI: Windows, Linux Python and gfx1013 jobs pass. No change requests are standing; both earlier reviews are COMMENTED.
AI-assisted