dxil: keep the LOD clamp of image_sample_*_cl on cubes #1939
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1939
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1939"
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?
@mastrr9 on GitHub · 2026-11-24 23:43 UTC · original
mastrr9:fix/dxil-image-sample-cl-cube→main· +88 −4 · 3 files · 1 commits · draftIn a pixel shader the direct translator dropped the clamp operand of
image_sample_cl/_b_cl/_c_clwhen the T# is a cube, so it sampled below the clamp. The HLSL path passes it for cubes like any other dimension.TRANSLATOR_VERSIONgoes from 7 to 8. #1793 and other changes to the direct translator also set 8; identical edits merge silently, so whichever lands later should take the next free number.Draft: the head commit has not been built or tested yet.
What is in it
gpu/dxil/lower_image.rs: keep the clamp for cubesgpu/dxil/kernel.rs:TRANSLATOR_VERSION8gpu/recomp/tests.rs:gpu_ps_image_sample_cl_cube_on_both_backendsTested
These runs are from before the final rebase, on a combined branch (
376f968, based on main689f2db; it holds this change, both halves of the differential mode and five other direct-translator parity fixes; this change's code is the same there), not on this PR's head commit.cargo testdebug build. Driver, CPU and Rust versions were not recorded.cargo test -p xcl --lib gpu_ps_image_sample_cl_cube_on_both_backends -- --nocapture --test-threads=1: passed.Regression run
Not run: there are no
xcl-smokeblocks for this change.Not tested
f5136a6) has not been built or tested: it was rebased on macOS, with no Rust toolchain.cargo test --workspacewas not run for this change on its own._b_cland_c_clcube forms are built on both backends by the test but not drawn.lower_image.rs(MSAA loads) since the tested base; it merged without conflict.AI use
@upipibi on GitHub · 2026-11-24 23:49 UTC · original
NVIDIA run: RTX 3070 8 GB, driver 616.56, Windows 11, debug,
8eef6e4merged ontomain20cf130.gpu_ps_image_sample_cl_cube_on_both_backendspasses, with and withoutXCL_DIRECT_DXIL=1.AI-assisted (Claude Code). Synthetic tests only.
@DavidM1911 on GitHub · 2026-11-25 02:41 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.