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

Manually merged
github merged 1 commit from github-bot/gh-3565 into gh-pr/3565/base 2026-11-30 09:02:57 +00:00 AGit
Owner

@⁠lambirou on GitHub · 2026-11-30 08:41 UTC · original
lambirou:runtime/mesh57-cbv → main · +65 −4 · 3 files · 1 commits · merged 2026-11-30 08:58 UTC

Split from #3539 as requested in review #3539.

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.

**@⁠lambirou** on GitHub · 2026-11-30 08:41 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3565) `lambirou:runtime/mesh57-cbv` → `main` · +65 −4 · 3 files · 1 commits · merged 2026-11-30 08:58 UTC Split from #3539 as requested in review https://git.gtahub.st/github/R0Y00--Xbox2Windows/pulls/3539. 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 #2413
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 08:44:21 +00:00
github-bot changed target branch from main to gh-pr/3565/base 2026-11-30 09:02:55 +00:00
github manually merged commit d0af26b598 into gh-pr/3565/base 2026-11-30 09:02:57 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.