Skip to content

runtime: read declared CBV and past-table slots in slot 57 meshes - #3565

Merged
tedin7 merged 1 commit into
R0Y00:mainfrom
lambirou:runtime/mesh57-cbv
Nov 30, 2026
Merged

tedin7 merged 1 commit into
R0Y00:mainfrom
lambirou:runtime/mesh57-cbv

Conversation

@lambirou

Copy link
Copy Markdown
Contributor

Split from #3537 as requested in review #3537 (review).

A captured depth-only slot 57 request reads constant data through a CBV range of its creation root, and through one descriptor past the last declared range. A table is only a heap region on the console, so both reads are valid there; the native loader refused them.

Read a slot a CBV range declares, and a slot past the last declared range, as a byte window: s_buffer_load carries no format, filtering or typed element, so the descriptor's memory read as raw dwords is the same value. The submission still resolves each table slot's token and refuses anything that is not a buffer SRV or a CBV, so an undeclared slot with a wrong view class fails before its descriptor table is bound.

Tests

native_fixed_mesh57_cbv_*: the same MS reads the same dword through a table slot declared as a CBV (PSO created, pixels match the SRV variant) and through one declared as a UAV (still refused as a buffer window). The source branch also passed the full native_fixed_mesh57_* set 26/26 on WARP and hardware.

This branch is a clean cherry-pick of f3590da0, based on 44a3ad5a; CI is the first build of the extracted branch.

AI-assisted.

A captured depth-only slot 57 request reads constant data through a CBV
range of its creation root and through one descriptor past the last
declared range. A table is only a heap region on the console, so both
reads are valid there; the native loader refused them.

Read a slot a CBV range declares, and a slot past the last declared range,
as a byte window: s_buffer_load carries no format, filtering or typed
element, so the descriptor's memory read as raw dwords is the same value.
The submission still resolves each table slot's token and refuses anything
that is not a buffer SRV or a CBV, so an undeclared slot with a wrong view
class fails before its descriptor table is bound.

Add native_fixed_mesh57_cbv_*: the same MS reads the same dword through a
table slot declared as a CBV (PSO created, pixels match the SRV variant)
and through one declared as a UAV (still refused as a buffer window).

Validation:
- native_fixed_mesh57_* warp+hardware: 26/26.
- Captured key 3e82436207e34109 outside the repository: the raw MS still
  translates to 12 680 bytes with the partial-EXEC opt-in.

Refs R0Y00#2413
@tedin7
tedin7 merged commit a7e8298 into R0Y00:main Nov 30, 2026
5 checks passed
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