Skip to content

Improve PSV0 index sequence collection#8525

Draft
tex3d wants to merge 3 commits into
microsoft:mainfrom
tex3d:psv-prefix-index0
Draft

Improve PSV0 index sequence collection#8525
tex3d wants to merge 3 commits into
microsoft:mainfrom
tex3d:psv-prefix-index0

Conversation

@tex3d
Copy link
Copy Markdown
Contributor

@tex3d tex3d commented Jun 5, 2026

  • Refactor out of SetPSVSigElement
  • match end-of-buffer suffix with array prefix to extend buffer instead of rewriting a new sequence, for better reuse efficiency.
  • start with 0 index for RDAT sized-prefix array compatibility (using index 0 to clearly indicates an empty array), and to make the most common semantic index of 0 friendlier by making its index always 0.
  • predicate changes on Val Ver 1.10
  • Update validator to handle this change and allow for an "unused" zero index.

Draft because:

tex3d added 3 commits June 4, 2026 15:16
Use fixed -validator-version 1.8 in ValidationTest::WrongPSVVersion test for the SM 6.8 compilation to avoid having to update the test any time the latest in-development PSV is updated.
- Refactor out of SetPSVSigElement
- match end-of-buffer suffix with array prefix to extend buffer instead of rewriting a new sequence.
- start with 0 index for RDAT array compatibility (starts with size, index 0 clearly indicates empty array), and to make the most common semantic index of 0 friendlier by making its index always 0.
- predicate changes on Val Ver 1.10
New 0 prefix added to semantic indices for compatibility with size-prefixed array format which can now use index zero for zero-length arrays. This index may be unused, which is allowed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

1 participant