Shaders: lower image_get_lod on cube textures #1004
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1004
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@tarcisioads on GitHub · 2026-11-24 14:53 UTC · original
tarcisioads:shader/cube-image-get-lod→main· +85 −3 · 1 files · 1 commits · openSupport
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)@andrewpozdnakov7-jpg on GitHub · 2026-11-24 15:06 UTC · original
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.
@Zipettte on GitHub · 2026-11-24 15:12 UTC · original
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).
@MamaLeVrai on GitHub · 2026-11-24 17:23 UTC · original
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.@Marvisak on GitHub · 2026-11-25 01:25 UTC · original · edited 2026-11-25 22:28 UTC
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
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.