Repository navigation
runtime: read declared CBV and past-table slots in slot 57 meshes - #3565
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_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.