Shaders: hardware probe for s_flbit_i32 #1361
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!1361
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1361"
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?
@LouisRiverstone on GitHub · 2026-11-24 17:36 UTC · original
LouisRiverstone:shaders/s-bit-scan-test→main· +5 −0 · 1 files · 2 commits · openAdds
sop1_probe(0x17, ...)fors_flbit_i32(first bit that differs from the sign bit, -1 for 0 and -1) toscalar_probes. Reduced after triage: the other scalar bit-scan ops are already covered on main.@matheusfermiano-source on GitHub · 2026-11-24 18:08 UTC · original
First GPU run of this PR's test that I could find, on an AMD GPU under Proton on Linux:
s_bit_scan_and_reverse_ops_match_rdna2: pass on a Radeon 660M (RDNA2).8d6d06c. Built on Linux with llvm-mingw forx86_64-pc-windows-gnullvm(Rust 1.98.1) and run under Proton Experimental (11.0-20261027b) with its vkd3d-proton 3.1.0, one GPU at a time;dxil.dllfrom DXC 1.9.2609 was loaded, so the test modules were validated.victory-shadersuite 120 passed, 1 failed, 1 ignored. Nothing fails that passes onmain(ffe310e). The one failure,emit::tests::stub_pipeline_is_created, fails onmainhere too: vkd3d-proton accepts the zeroed DXIL hash that the Windows runtime refuses (one of the Wine failures listed in #1218).This is RADV, not AMD's Windows driver, so it adds to a Windows run rather than replacing it. Synthetic tests only, no game files. AI-assisted (Claude Code, Opus 5.5); every run was on this machine.
@wwwwwwww3333333 on GitHub · 2026-11-24 19:12 UTC · original
Native Windows run on AMD RDNA2: RX 6750 XT (RDNA2, gfx1031), AMD driver 32.0.21045.29003, i5-13400F, Windows 11, Rust 1.98.1 MSVC. Head 8d6d06c on main
ffe310e(clean merge).cargo test -p victory-shader --lib -- --test-threads=1: 121 passed, 0 failed, 1 ignored (main alone: 120 passed).s_bit_scan_and_reverse_ops_match_rdna2ran on the hardware adapter and then on WARP, and passed on both. The earlier RDNA2 runs on this PR went through vkd3d-proton on Linux; this one is AMD's own D3D12 driver.Synthetic tests only, no game files. AI-assisted (Claude picked the PRs and wrote the batch script; I ran it on my machine).
@Marvisak on GitHub · 2026-11-25 02:36 UTC · original · edited 2026-11-26 02:17 UTC
Automated triage for the maintainers.
Merge candidate (recommending a look, not an approval). Reviewed at
d3b7805, which merges cleanly intomain. The unrelated reformatting is gone: the PR is now only the five lines inscalar_probes(crates/victory-shader/src/emit/semantics_tests.rs).It adds a probe for
s_flbit_i32(SOP1 0x17), whichmainlowers in the"s_flbit_i32_b32" | "s_flbit_i32"arm ofemit/lower.rsbut no probe covered. The expected value (leading zeros of the value, or of its complement when negative, and -1 for 0 and -1) matches the RDNA2 definition of the first bit that differs from the sign bit. CI:checkpassing.Generated by Claude Code
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.