Repository navigation
Conversation
… expects Rows of one register were sorted by column; the validator expects them in element order, as the console containers list them. The rows are now sorted by register only (a stable sort), so no register or mask changes. 72 programs refused with Container part Program Input/Output Signature does not match now validate.
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.
What changed
R-7 (partial):
container::signaturesorted the rows of one register by column, while the DXIL validator expects them in element order, as the console's containers list them (for exampleTEXCOORD16in column 3 beforeTANGENT0in column 0). Rows are now sorted by register only, with a stable sort that keeps element order, so no register or mask changes. 72 programs refused with "Container part 'Program Input/Output Signature' does not match" (33 pixel, 26 vertex, 13 mesh) now validate; their pipelines were never created before, so their draws were lost.Not fixed here: 70 programs pack elements of different interpolation modes into one register. Moving an element in one program alone is not safe, because D3D12 links a stage's outputs to the next stage's inputs by register and mask too (the debug layer's
SHADER_LINKAGE_REGISTERINDEXandREGISTERMASKchecks), so both sides of a link would have to move the same way.How it was tested
Checks run on this branch:
cargo test --workspace --locked: no failure (leonida-shader218 passed, 3 ignored; run with-j 2 -- --test-threads=4)cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo xtask policyNew unit test:
rows_of_one_register_keep_element_order.leonida translate --list --validate --jobs 2with a release build, on the 216 programs the validator refused:A full census over every program was run on the previous base (
2f952dc) and showed no other change; it was not repeated after the rebase onf3c94ca, wherecontainer.rsandshader.rsdid not change.AI