startup: draw a per-lane sample_b bias past a divergent EXEC #2758
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2758
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2758/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@tedin7 on GitHub · 2026-11-26 06:22 UTC · original
tedin7:x2w-texflow-bias→main· +854 −8 · 7 files · 26 commits · closed without mergingPart 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 #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.
@tedin7 on GitHub · 2026-11-26 06:35 UTC · original
Added in
8b66e9375(c18 and RonLogic class): two draw fixtures where the bias is written INSIDE the divergent EXEC block.bias_in_block: the drawn lane writes +1 inside the block (LOD 1 + 1 = 2, mip 2). Wrong-value control: the block write dropped (bias -1, mip 0) must fail the draw.bias_in_block_helper: only the helper column writes +1; the drawn lane keeps -1 (mip 0). Wrong-value control: every lane writes (mip 2) must fail the draw.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.
@tedin7 on GitHub · 2026-11-26 10:12 UTC · original
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.
Pull request closed