Skip to content

runtime: bind whole dwords for byte Mesh86 material descriptors - #3810

Open
lambirou wants to merge 7 commits into
R0Y00:mainfrom
lambirou:codex/mesh86-material-dwords
Open

lambirou wants to merge 7 commits into
R0Y00:mainfrom
lambirou:codex/mesh86-material-dwords

Conversation

@lambirou

@lambirou lambirou commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Problem

A Mesh86 material descriptor can name a byte view (stride=1, NumElements=18) while the material path builds a raw dword SRV. indirect_table_buffer refused bytes % 4 before resolving the backing, so the prologue's DispatchMesh stopped at graphics/mesh_bind with material buffer size is not a whole number of dwords (key 13c660ac281d07d5, t0, needed 8 bytes, 18-byte descriptor).

Change

For mesh86_material, floor the descriptor byte range to whole dwords before the raw SRV and backing checks. A range smaller than one dword is refused with material buffer range has no whole dwords. The input-buffer zero-record path is unchanged.

Tests

  • ctest --preset release --no-tests=error -R '^startup_mesh86_material_backing_(warp|hardware)$' --output-on-failure — 2/2 pass (WARP and RX 9060 XT, driver 32.0.32029.2010). New controls: an 18-byte descriptor resolves to 16 bytes/four dwords; a 3-byte descriptor is refused.

Stack

Stacked on #3725 (715b84f0), not #3803. The material commit is 617b5d1f; review that commit. #3803 remains the PS-less profile PR used in the matching title run.

Limits

Source-built control only; it does not claim full-game startup. The focus run still needs the input zero-record fix for key 062d66b9e013f28e and the t1 root=3 128-byte root SRV.

AI-assisted.

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 R0Y00#3640, R0Y00#3638, R0Y00#3545.
@lambirou
lambirou force-pushed the codex/mesh86-material-dwords branch from 6655a0a to 617b5d1 Compare December 2, 2026 01:33

@R0Y00 R0Y00 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the merge against main 20def93d. The merge tree conflicts in CMakePresets.json and tests/standin_exports_check.py; the Mesh86 implementation files merge textually. Please carry forward both the existing main checks and the new Mesh86 material-backing registration/contract on the rebased head. Please then rerun the material-backing WARP and hardware cases and the stand-in source check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants