dxil: keep the LOD clamp of image_sample_*_cl on cubes #1929
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by mastrr9 on 2026-11-24T23:43:54Z.
In 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
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T23:49:53Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T02:41:10Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:01:23Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:08:09Z.
Triage (#1607) – head
8eef6e4#3408 makes the same change in
gpu/dxil/lower_image.rs: it passesclinstead ofif dim == 3 { None } else { cl }tosample_cmp,sample_biasandsample. #3408 also has a validator test and a GPU test. It merges into main, its CI is green, and it was run on a GPU. This PR was opened first, but it is a draft whose head was never built, and it conflicts with main.One thing #3408 lacks is this PR's
TRANSLATOR_VERSIONbump ingpu/dxil/kernel.rs(main is at 12 now, so 8 is stale). Without it, cached direct translations of cube_clsamples stay wrong. That belongs in #3408.Recommendation: close (duplicate of #3408).
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T15:58:05Z.
Closing as superseded: the same change is in #3408 (open, mergeable, required checks green). From Foniass's rechecked close list on #1607, checked again by script just now. If something here is still missing, say so and reopen it, or ask and I will.
AI use: Claude Code (Claude Opus 5.5).
Pull request closed