Repository navigation
Conversation
s3rius
marked this pull request as draft
November 26, 2026 17:05
s3rius
force-pushed
the
xshader/cube-sample-lod-clamp
branch
from
November 26, 2026 19:28
561e834 to
8425b58
Compare
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
s3rius
force-pushed
the
xshader/cube-sample-lod-clamp
branch
from
November 26, 2026 19:29
8425b58 to
03cd9ff
Compare
s3rius
marked this pull request as ready for review
November 26, 2026 19:32
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.
Summary
This PR lets the translator lower a cube image sample with an explicit LOD clamp (image_sample_cl / image_sample_b_cl) instead of refusing it, using TextureCube::Sample/SampleBias with a trailing clamp. SampleGrad on a cube with a clamp remains refused because no such TextureCube overload exists; the refusal reason is unchanged. Regression tests in the translator cover the lowered plain and derivative cases.
Verified on Lanes
A pull request is not merged until Lanes passes on a GPU. Run:
python tuxbox.py checkpassed on this branchGPU, driver and backend:
Paste the summary printed at the end:
Checks
CI runs the Python unit tests, the shader compiler, DXBC, and XG layout tests, and a Windows typecheck of
tuxbox-d3d12.If this pull request changes evidence JSON, regenerate the results table and the progress map and include both files:
python tuxbox.py status > docs/RESULTS.md python tuxbox.py status --svg docs/progress.svg