Repository navigation
Conversation
Flyander
marked this pull request as ready for review
November 24, 2026 20:35
Author
|
Closing this as a duplicate of #1806, which now implements static-sampler support for IMAGE_GET_LOD and includes the full-pack sweep. The distinct addition here is a runtime GPU regression checking clamped and unclamped LOD with a static sampler; I have mentioned that coverage on #1806 as a possible focused follow-up. |
Contributor
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
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.
Adds direct DXIL lowering for pixel
IMAGE_GET_LODinstructions whose sampler is static. The direct backend now binds and reuses that root-signature sampler instead of refusing the instruction. This complements the HLSL-path coverage in #1562. Part of #1269.What is in it
lower_image.rs: calculate clamped and unclamped LOD with the discovered static sampler.kernel.rs: increment the direct translator cache version.runner.rsandtests.rs: draw with a graphics root signature containing static samplers and verify the direct pixel result on the GPU.Tested
scripts/test.ps1: 890 passed, 0 failed, 42 ignored; GPU skips: 2no wave64, 1no heap windows.cargo test -p xcl --lib gpu_direct_image_get_lod_static_sampler -- --nocapture: 1 passed on the RTX 5070 Ti.xcl shaders shaders.rpf --direct --sample 0 --threads 8 --timeout 30 --validate --top 50on the same local retail 1.0.2.1 pack at base and head: translated programs rose from 22,029/22,445 to 22,055/22,445. Pixel shaders rose from 9,485/9,511 to 9,511/9,511. The 26 static-sampler LOD refusals are gone; validator errors, panics, and timeouts were 0. 4,253 records over the 16,384-byte default cap were skipped; 390 geometry-mode GS programs remain unsupported.xcl shaders shaders.rpf --direct --sample 0 --max-bytes 1048576 --threads 8 --timeout 120 --validate --top 50: all 26,698 programs from 26,503 records validated in 406.8 s; no records over 1,048,576 bytes were skipped. CS 2,689/2,689, MS 9,282/9,282, PS 12,101/12,101, VS 2,236/2,236. Only the 390 geometry-mode GS programs remain unsupported; validator errors, panics, and timeouts were 0.XCL_DIRECT_DXIL=allfor 60 seconds; see the blocks below.Regression run
main:
PR:
Not tested
AI use