shader: handle image_sample_c_lz mip filter bits 28-31 in gfx2hlsl (Part of #1723) #2029
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2036"
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 R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T23:32:02Z.
Part of #1723
What this unblocks: Run 20 census #7 (70 pairs),
image_sample_c_lzwith sampler word 2 bits 28-30 set.image_sample_c_lzwas refused for any comparison sampler with a non-zero word 2 bit in 28-31. The explicit level-zero form does not depend on bits 28-30: MIP_POINT_PRECLAMP only acts on mip selection, ANISO_OVERRIDE only on anisotropic filtering (already refused), and BLEND_ZERO_PRT only on partially resident textures.comparison_sampler_stateintools/pixel_aot.pygets alevel_zeroflag; the startup translator sets it forc_lzonly. Bit 31 (unnamed in the register database) is still refused. The implicitimage_sample_cform and the pixel AOT path keep the strict check.Verification:
python3 -B tests/startup_gfx2hlsl_sample_c_lz_mip_check.pyon this branch:PASS. It patches the sampler word 2 literal of the existinglzfixture to bit 28, 29, 30 and all three, and checks theSampleCmpLevelZerolowering and thesmpcmanifest line; bit 31 and the implicitcform must still be refused.tools/fromorigin/main: fails withimage_sample_c_lz sampler: Unsupported mip filter or word 2 bits 28-31.tests/startup_image_sample_c_check.py,tests/pixel_compare_check.pyand everytests/startup_gfx2hlsl_*check.py, run one by one: all exit 0.startup_gfx2hlsl_sample_c_lz_mipin CMakeLists.txt. Run on Linux, not on Win2025. No ctest run.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:32:15Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
94454f1ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.