Repository navigation
Conversation
DXIL's CalculateLOD takes three coordinates and the validator wants those past the image's spatial dimensions undef: the layer of a 2D array image is not one. Three pixel programs that read barycentrics directly (PS_DeferredTextured_AlphaClip and two others) stopped validation with 'out of bound coord must be undef'. (cherry picked from commit 6e248e45342a3b7d1556298c6a72ab9881128b1d)
|
Offline check on the retail shader pack: this PR, merged onto current Setup: RTX 5090, Windows 11.
Duplicate closed: I had opened #720 for the same thing without seeing this PR; it emits byte-identical DXIL for all programs, and I closed it. It has a small synthetic test ( AI use: Claude Code with Claude Opus 5.5 ran the pack and wrote this. Nothing from the title is in it. |
|
Independent RTX 5080 result on NVIDIA fork I adapted ZTRX PR 103's synthetic fixture to require validation and pipeline creation on both the hardware adapter and WARP. The parent failed on the 1D array case with Testing and reporting assisted by OpenAI Codex. |
A pixel program with image_get_lod of a 2D array is emitted, validated and
made into a pipeline on each device there is. It fails without the fix in
this branch ("out of bound coord must be undef").
Test taken from JRamos1993's lod-array-coords (970bc3d),
offered in review of fxceless#260; its lowering change is left out, since this
branch already has an equivalent one.
Port note: the program's image word is a parameter and a second test runs
the same program on a 1D array, the case iGoldenNinja reported on fxceless#260
(there the slice is the second coordinate). Both tests fail without the fix.
Co-authored-by: Ortomanic <360474481+Ortomanic@users.noreply.github.com>
|
Thanks @JRamos1993 and @iGoldenNinja, and thanks for closing the duplicate.
The tests are AI-assisted (Claude Code); built and tested locally. |
A pixel program with image_get_lod of a 2D array is emitted, validated and
made into a pipeline on each device there is. It fails without the fix in
this branch ("out of bound coord must be undef").
Test taken from JRamos1993's lod-array-coords (970bc3d),
offered in review of fxceless#260; its lowering change is left out, since this
branch already has an equivalent one.
Port note: the program's image word is a parameter and a second test runs
the same program on a 1D array, the case iGoldenNinja reported on fxceless#260
(there the slice is the second coordinate). Both tests fail without the fix.
Co-authored-by: Ortomanic <360474481+Ortomanic@users.noreply.github.com>
A pixel program with image_get_lod of a 2D array is emitted, validated and
made into a pipeline on each device there is. It fails without the fix in
this branch ("out of bound coord must be undef").
Test taken from JRamos1993's lod-array-coords (970bc3d),
offered in review of fxceless#260; its lowering change is left out, since this
branch already has an equivalent one.
Port note: the program's image word is a parameter and a second test runs
the same program on a 1D array, the case iGoldenNinja reported on fxceless#260
(there the slice is the second coordinate). Both tests fail without the fix.
Co-authored-by: Ortomanic <360474481+Ortomanic@users.noreply.github.com>
|
RX 7900 XTX (RDNA3), Windows 10 + #402 for SM 6.6, main |
Changes
CalculateLODwas passed every coordinate component of the sample it was derived from. The DXIL validator wants the components beyond the texture's spatial dimensions to beundef(out of bound coord must be undef). The level-of-detail query now passes only the spatial coordinates.Validation
34e55a0e,cc182397,d52fbc59). Only those three programs' DXIL changes; none is lost and there are no new dxv or dxil-spirv failures.cargo clippy --workspace --all-targets --locked -- -D warningsfor the Windows target, with and without--all-features, andcargo test -p victory-shader -p xtaskpass on this branch (cross-compiled from Linux with the pinned toolchain).AI-assisted patch with local build and offline validation.