Shaders: lower image_get_lod on cube textures #1004
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1004"
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 Marvisak/VIctory. Originally posted by tarcisioads on 2026-11-24T14:53:44Z.
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)Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-24T15:06:26Z.
Windows validation on
cbc8c33. I extended the existing cube LOD fixture to pass its emitted DXIL through Microsoft’s validator, then created a pixel PSO with the fixture shader and the test vertex stub. Both checks passed, and validation kept the emitted container hash.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.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T15:12:53Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
cbc8c33:cargo test -p victory-shaderpasses, 121 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Imported from Marvisak/VIctory. Originally posted by MamaLeVrai on 2026-11-24T17:23:53Z.
Heads-up: this PR and #563 both edit the cube-sample refusal in
emit/lower.rsand conflict with each other. Merged together only texel coordinates are still refused; that resolution is in the bundle #1319 (clippy and tests pass). AI-assisted (Claude Code); no game data.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:25:46Z.
Automated triage for the maintainers.
Needs rebase. This PR no longer merges cleanly into
main:mainhas moved since the last triage, and the branch now conflicts incrates/victory-shader/src/emit/lower.rs. It will be reviewed again once it is rebased onto currentmain.Previous verdict for this head: merge candidate.
Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T03:56:33Z.
Review: CHANGES_REQUESTED
Merge with current main (
940d32f69b) breaks compilation — verified locally aftergit merge origin/main:Main added
view_markstoPartsafter 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.Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T11:54:20Z.
Review: APPROVED
Verified against
origin/main(940d32f) on Windows 11 + NVIDIA GeForce RTX 5090 and WARP: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).
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.