Repository navigation
Read coordinates after bias in clamped texture samples - #1
Open
MichaelSmithAI wants to merge 7 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
LAKSHYA-cmd-tech
force-pushed
the
fix/image-sample-d-cl-and-gather4-l
branch
from
November 24, 2026 08:01
c169328 to
88f55ef
Compare
LAKSHYA-cmd-tech
force-pushed
the
fix/image-sample-d-cl-and-gather4-l
branch
from
November 24, 2026 08:36
88f55ef to
0beec4d
Compare
LAKSHYA-cmd-tech
force-pushed
the
fix/image-sample-d-cl-and-gather4-l
branch
from
November 24, 2026 16:51
0beec4d to
efd02d5
Compare
LAKSHYA-cmd-tech
pushed a commit
that referenced
this pull request
Nov 25, 2026
Exercise the descriptor cursor regression on the actual heap capacity
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.
On the branch for Marvisak#694,
image_sample_b_clreads the bias again as the first texture coordinate. For a 2D sample with UV (0.5, 0.75), bias 0.25 and minimum LOD 2, the emitted call samples at (0.25, 0.5) with minimum LOD 0.75. Both biased forms use DXIL opcode 61, so this change advances past the bias for both.The regression builds an original pixel shader that exports the sample and checks the four arguments on its emitted
dx.op.sampleBias.f32call. The expected operands match DXC's output for the equivalent HLSL. The test fails on c169328. With the change, all 58 Linux shader library tests pass (cargo +stable test --locked --offline -p victory-shader --lib) and the repository asset check passes.On an RTX 4090 under Wine and vkd3d-proton we rendered the same synthetic texture with the parent shader, the corrected shader, and an independent HLSL reference compiled by DXC. The texture encodes its mip and coordinates in the sampled red value. All 64 pixels from the parent returned 142 (mip 1, x=2, y=4). All 64 from the corrected shader and all 64 from the reference returned 232 (mip 2, x=2, y=3). The effect on GTA VI remains unmeasured. AI-assisted implementation and review.