Repository navigation
Conversation
…ector-only blocks
… of the sample_b flow check
- a voted block may hold only instructions whose destinations are VGPRs (no carry-out, compare, readlane); - s_endpgm in a voted block only when no EXEC write follows the branch; - a scalar EXEC write from a non-mask source (s_mov exec, 1) records a lane-exec break. Three refused fixtures with recorded words; each fails on the previous head.
Collaborator
Author
|
Added in 8b66e93 (c18 and RonLogic class): two draw fixtures where the bias is written INSIDE the divergent EXEC block.
Linux: sample_b flow check rc=0, get_lod flow check rc=0, binary check passes. Win2025 WARP and hardware: pending Stage-2. AI-assisted; commands listed were executed locally. |
5 tasks done
Collaborator
Author
|
Withdrawn: shader translation is moving to the native C++ frontend (see #870), so we are not continuing this change to the Python translator. The branch stays available if any part is useful later. Thank you to everyone who reviewed and tested it. |
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.
Part of #1723
What this unblocks:
image_sample_bpast a divergent EXEC when the bias differs per lane (a join of two bias values), which #2736 refused by name until it had a draw.Source: AMD "RDNA 2" Instruction Set Architecture reference guide, MIMG instruction IMAGE_SAMPLE_B (per-lane bias) and the EXEC mask rules; Microsoft DirectX-Specs, D3D11 functional specification,
sample_b.Stacked on #2747 and #2736 (this branch contains their commits until they merge; the new work is the last three commits). Builds on #2659.
What changed
SampleBiastakes its bias per pixel, as the guest takes it per lane, so nothing in the lowering needed to change; the refusal only existed because no draw covered the form.bias_laneinstartup_image_sample_b_flow_check.py: the drawn lane (x = 0) takes bias -2 and its helper column keeps -1, then an EXEC branch and a join before the op. LOD 2 - 2 = 0 reads mip 0; the helper's bias would read mip 1, and an ignored bias mip 2. Two mutants (helper column bias, bias ignored) must fail the draw.bias_per_laneof startup: keep sample_b and get_lod past a divergent EXEC with a per-quad vote #2736 became this accepted fixture.scalar_in_blockandbias_per_lanerefused entries that its own edit had dropped by mistake (the check passed without them); they are present again.Verification (Linux only):
Win2025 WARP dev+release: pending Stage-2.
AI-assisted; commands listed were executed locally.