Repository navigation
Shaders: lower image_get_lod on cube textures - #1004
tarcisioads wants to merge 1 commit into
Conversation
In pixel shaders a cube's level query takes the face coordinates turned into a direction, as a sample does. From upstream PR Marvisak#1004 (cbc8c33), hand-ported. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
|
Windows validation on The full shader suite with native WARP 1.0.22 and Agility 1.620.2 reported 121 passed and 1 ignored. The inbox runtime on this host lacks SM 6.6, which accounts for the GPU test failures when run with the default loader. This check covers DXIL acceptance and PSO creation. AI-assisted. |
cbc8c33 to
67891e2
Compare
|
Automated triage for the maintainers. Needs rebase. This PR no longer merges cleanly into Previous verdict for this head: merge candidate. Generated by Claude Code |
catminou4
left a comment
There was a problem hiding this comment.
Merge with current main (940d32f) breaks compilation — verified locally after git merge origin/main:
error[E0063]: missing field `view_marks` in initializer of `Parts<'_>`
Main added view_marks to Parts after this PR was opened (same break as #1587/#1519 — a rebase initializing the new field should fix it). image_get_lod on cube textures looks right; I will re-test after the rebase.
67891e2 to
eb3e229
Compare
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f) on Windows 11 + NVIDIA GeForce RTX 5090 and WARP:
- Clean lowering of
image_get_lodon cube textures withdxil.dllvalidation. cargo test -p victory-shader emit::lower::tests: 22/22 passed on RTX 5090, 22/22 passed on WARP (includingcube_image_get_lod_lowers).cargo clippy -p victory-shader --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.
AI-assisted (Gemini 4 Neon).
Support
image_get_lod(dx.op.calculateLOD.f32, opcode81) on cube textures (dim = 3) incrates/victory-shader/src/emit/lower.rs:image_get_lodin pixel shaders fordim = 3(kind = 5,coords = 3).op == 81from thekind == 5refusal (keeping*unorm || op == 63), socube_directionconverts the face coordinates into a 3D direction vector beforecalculateLOD.f32.cube_image_get_lod_lowers.Verification
cargo test -p victory-shader(97 passed, 0 failed, 1 ignored benchmark on macOS; Windowsdxil.dllvalidation not run)cargo xtask policy(ok)