Repository navigation
Conversation
…he mask copied A 64-bit mask parked in VGPR lanes and read back with two s_mov_b32 (ir::unspill) was an opaque atom. Structurisation now follows such a pair to the mask it copies when both halves come from adjacent halves of one pair. CS_TransmissionVolumetrics, CS_TransmissionVolumetricsSubmerged and PS_VoxelizeVisiblity translate and validate.
Contributor
|
Looks good to me. Heads up: this and #56 both add their section at the top of "Newest" in |
6 tasks done
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): the 3 programs that failed on lane masks now translate:
CS_TransmissionVolumetricsandCS_TransmissionVolumetricsSubmerged("emit: a lane mask holding lanes elsewhere read as data") andPS_VoxelizeVisiblity("emit: an opaque lane mask"). They park a 64-bit lane mask in VGPR lanes and read it back one half at a time (ir::unspillturns the twov_readlane_b32into twos_mov_b32). Structurisation now takes a pair whose halves are copied froms[n]ands[n+1]of one pair as the mask of that pair. Exact, noshortcut:.How it was tested
Checks run on this branch:
cargo test --workspace --locked: 656 passed, 0 failed, 18 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:
structure::tests::a_mask_copied_one_half_at_a_time_is_the_mask_copied(vcccopied half by half intos[2:3]is the comparison's mask; withs_mov_b32 s3, 0it is not).Full
leonida translate --list --validate --jobs 2with a release build, compared program by program with the census of the base tree (together with the POPS fix sent as a separate PR):No program that translated before fails now, and none changed its cause. The 216 DXIL validator failures are the same 216 programs, with the same messages, on the base commit; none of the 3 fixed programs is among them.
AI