gpu: normalize extended slot 57 descriptors without a pixel stage #3859
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!3859
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3857"
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?
@Not-Saii on GitHub · 2026-12-02 13:56 UTC · original
Not-Saii:mesh57/zero-section-descriptor→main· +134 −23 · 5 files · 2 commits · merged 2026-12-02 23:53 UTCFollow-up to R0Y00/Xbox2Windows#3730 (merged), answering the review question there about extended descriptors whose section pointer at +0x38 is zero.
Extended slot 57 fixed descriptors (0x300 bytes, both
0x04010000metadata words) without a pixel stage have +0x30 and the section pointer at +0x38 zero.normalize_mesh57_descriptorreturned them raw, so their variant changed between runs andtools/startup/mesh57_profile.pyrefused their archives. This is the "Not covered" limit #3732 left indocs/experiments/native-fixed-mesh57.md.Change
src/startup_stubs/mesh57_profile.h: when +0x30 and +0x38 are both zero, use +0x78 as the base. The same record, optional and second-base slots and the +0x110/+0x270 low words are made relative; +0x38, +0x160 and +0x2c0 are cleared; the presence word at +0x160 carries layout 3. A zero +0x38 with a pixel stage, or a nonzero one without, stays raw. A layout 2 result is not normalized again as layout 3.tools/startup/mesh57_profile.py:normalized_extendedkeeps #3732's exact-shape rule and ties the layout to the pixel stage: layout 2 with one, layout 3 without one and then +0x78 zero as well. A raw allocation address that reads as 2 or 3 is still refused.mesh57_descriptor_relocations(relocated pair, changed distance, both mismatched pixel/section forms, layout 2 result whose offsets read as pointers from +0x78) andtests/mesh57_profile_draft_check.py(accepted layout 3 archive; raw, layout 3 with a pixel stage, layout 2 without one, and a kept +0x78 base within 2 GiB are refused).Evidence
X2W_MESH57_CAPTURE_STATE=1, same scripted input: 84 and 81 layout 3 archives. All 81 names from the second run were also written by the first; the first run's other 3 belong to pipelines the second run did not create.read_creationand the draft accept all 81.mesh57_descriptor_relocations; removing the +0x78 condition or the layout/pixel-stage pairing in the writer failstests/mesh57_profile_draft_check.py.Tests
20/20 passed on
c42b7ce3+ this change (WARP, Windows 11 build 26300).startup_indirect_mesh_cache_heap_wide_warpandnative_direct_mesh, which failed in this PR's first CI run on the older base, also pass locally on the new base.Both pass.
🤖 Generated with Claude Code
1a4275201ato14e2669a75@R0Y00 on GitHub · 2026-12-02 23:53 UTC · original · approved these changes
Reviewed
14e2669a. The runtime uses +0x78 as the base only for the mesh-only extended shape. The offline parser ties layout 3 to that shape and rejects a nonzero normalized base. Independent Windows 11 build 26300 / MSVC Debug passed the Python profile-draft test and all seven selected native slot-57 tests (startup_indirect_mesh57_stream_key,startup_indirect_mesh_create_result,native_fixed_mesh57and its MRT case). Inbox WARP10.0.26100.9818and RTX 4060 Laptop32.0.16.1656ran with the debug layer enabled. Removing only the +0x78 zero check allowed the raw mesh-only input and failed the fixture's expected refusal. Restoring it passed. Required PR CI is green.