Shaders: pass undef for array slices in calculateLOD #156
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/156"
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 Zettrox/ztrx. Originally posted by IAmTheSween on 2026-11-25T15:37:47Z.
Fixes
validator: Function: main: error: out of bound coord must be undef.onimage_get_lodagainst array textures (e.g.SQ_RSRC_IMG_2D_ARRAY).What is in it
crates/victory-shader/src/emit/lower.rs,dx.op.calculateLOD.f32only accepts spatial coordinates (1for 1D / 1DArray,2for 2D / 2DArray,3for 3D) and requires unused coordinate slots to beundef, whereascs[spatial]holds the array slice forkind6 and 7. Passfu(undef) for slots beyondspatial.image_get_lod_array_leaves_slice_undefincrates/victory-shader/src/emit/mod.rscoveringdim=4(SQ_RSRC_IMG_1D_ARRAY) anddim=5(SQ_RSRC_IMG_2D_ARRAY) withdxil.dllvalidation.Tested
dxil.dll10.0.26100.0:cargo test -p victory-shader --locked --lib image_get_lod_array: 1 passed, 0 failed.cargo clippy --workspace --all-targets --locked -- -D warnings: 0 warnings.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: 0 warnings.cargo test --workspace --locked -- --test-threads=1(--test-threads=1due to WARP contention documented invalu_tests.rs:198): 497 passed, 0 failed, 7 ignored (4 invictory_formats, 1 invictory_gpu, 2 invictory_shader).victory --release translate --validateonshaders.rpf: 0 remainingout of bound coord must be undef.errors (cleared all 3 affected pixel programs ->14048 validatedof14156emitted VP programs, up from14045onmain; also verified D3D12 PSO creation on#cc182397d5d326f9and#d52fbc5975d0fa65).AI use
Written with Antigravity.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.