Shader tests: run v_bfm_b32, v_bcnt_u32_b32, v_ffbl_b32, and v_cvt_pk_u8_f32 on the GPU #1804
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!1804
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1804/head"
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?
@n-romanovich on GitHub · 2026-11-24 22:50 UTC · original
n-romanovich:test/valu-bit-and-pack-ops→main· +68 −0 · 1 files · 1 commits · closed without mergingAdds a synthetic GPU/WARP execution test (
valu_bit_and_pack_ops_match_rdna2) incrates/victory-shader/src/emit/valu_tests.rscovering four previously untested RDNA2 VALU ops:v_bfm_b32(0x363), including 5-bit operand masking (32 -> 0,33 -> 1).v_bcnt_u32_b32(0x364), including 32-bit accumulator wrap-around.v_ffbl_b32(0x03a), including0 -> u32::MAX(-1).v_cvt_pk_u8_f32(0x15e), including round-to-nearest-even,[0, 255]clamping, 2-bit byte-index masking, and preservation of other bytes insrc2.AI-assisted; verified with
cargo test -p victory-shader --locked -- valu_bit_and_pack_ops_match_rdna2andcargo clippy -p victory-shader --all-targets --lockedon Windows 11 / RTX 5060 Ti + WARP, plus independent subagent review.@DesertGamer on GitHub · 2026-11-24 22:56 UTC · original
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
@upipibi on GitHub · 2026-11-24 23:04 UTC · original
NVIDIA run: RTX 3070 8 GB, driver 616.56, Windows 11, debug,
3b3c1f5(onmain70564ae).valu_bit_and_pack_ops_match_rdna2passes, 2 of 2 runs.For
v_cvt_pk_u8_f32, one more case could be added. AnyPS5 measured it on RDNA2 hardware (theirdocs/dev/debt/shader.md): it rounds in theFLOAT_MODEf32 round mode (ties to even by default, as tested here), clamps to 0..255, and gives 0 for a NaN source.AI-assisted (Claude Code). Synthetic tests only.
@Headache3318 on GitHub · 2026-11-25 01:56 UTC · original
Tested on Linux (Arch, kernel 7.3.5, 3× RTX 4090 driver 620.73.04), Rust 1.98.1 (pinned). PR head
61fb2bcapplied cleanly onto currentmainccfb029.cargo test -p victory-shader --locked: 144 passed, 0 failed, 2 ignored. All tests pass. The newvalu_bit_and_pack_ops_match_rdna2test is GPU-specific (requires dxil.dll/WARP) and is skipped on Linux.cargo clippy -p victory-shader --all-targets -- -D warnings: 4 pre-existing errors in test code (fail identically on mainccfb029). The PR introduces no new clippy warnings.Not tested: Windows MSVC build, the title itself. AI-assisted.
@Marvisak on GitHub · 2026-11-25 06:27 UTC · original
Automated triage for the maintainers.
Merge candidate.
valu_bit_and_pack_ops_match_rdna2incrates/victory-shader/src/emit/valu_tests.rsrunsv_bfm_b32,v_bcnt_u32_b32,v_ffbl_b32andv_cvt_pk_u8_f32on the host GPU and WARP. No existing test covers these ops. I checked the opcodes againstgfx10/opcodes.rs(0x363, 0x364, 0x03a, 0x15e) and the expected values against the RDNA2 ISA definitions: the 5-bit masks ofv_bfm, the wrapping add ofv_bcnt,v_ffbl(0) = -1, and round-to-nearest-even, the clamp and theS1[1:0]byte select ofv_cvt_pk_u8_f32. The expectations come from the ISA, not from our lowering.Note: #1810, #1811 and #1812 append to the end of the same file, so whichever merges second will need a trivial rebase.
CI:
checkpassing.Generated by Claude Code
@Marvisak on GitHub · 2026-11-25 22:02 UTC · original
Automated triage for the maintainers, second look (a review against current
main, with builds and tests where they could change the verdict).Closing because
mainalready tests these with more inputs. Inemit/semantics_tests.rs,integers_match_the_hardwarerunsv_bfm_b32over 13x13 shift/width pairs andv_bcnt_u32_b32andv_ffbl_b32over the edge values, andbyte_packing_matches_the_hardwarerunsv_cvt_pk_u8_f32over float edges, ties, NaN and every byte select, on hardware and WARP against a CPU model. Every case here is a subset of those. The expected values in this PR are right.If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.
Pull request closed