runtime: read declared CBV and past-table slots in slot 57 meshes #3565
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3565"
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 lambirou on 2026-11-30T08:41:49Z.
Split from #3537 as requested in review https://github.com/R0Y00/Xbox2Windows/pull/3537#pullrequestreview-6108358331.
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_loadcarries 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 fullnative_fixed_mesh57_*set 26/26 on WARP and hardware.This branch is a clean cherry-pick of
f3590da0, based on44a3ad5a; CI is the first build of the extracted branch.AI-assisted.