Shaders: lower binary64 class comparisons from their raw words #2313
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!2313
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2313/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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 10:25 UTC · original
andrewpozdnakov7-jpg:codex2/shader-f64-class→main· +143 −9 · 2 files · 1 commits · closed without mergingThe decoder knows
v_cmp_class_f64andv_cmpx_class_f64, but the lowering rejects both. Classify the two binary64 words with the existing class-mask path. The low word counts toward the mantissa, so it distinguishes a subnormal from zero and a signaling NaN from infinity. ABS and NEG act on the high word's sign bit.The regression covers all ten RDNA 2 classes, VGPR and SGPR pairs, literal and inline sources, sign modifiers, and execution masking through
v_cmpx. The emitted VGPR and SGPR comparison shaders leave the SFI0 INT64 feature bit clear.940d32frejects both synthetic shaders as unsupported.5e5727c, DXC 1.9.2609 validates both shaders and app-local Agility 1.620.2 / WARP 1.0.22 reads back the expected result in all 50 dispatch cases. All 30 VALU tests pass in that configuration.AMD RDNA 2 ISA guide · Coordination claim
AI-assisted with Codex. Synthetic shaders only.
@DesertGamer on GitHub · 2026-11-25 10:25 UTC · original
Not a request to change how this issue works, just a note for people who want a running build to try pull requests together, and for authors whose PRs may already be in it.
VIctory V2 is an integration fork: it merges community pull requests, keeps each author in the history, and runs
cargo test --workspaceplus one run of the title before each push. On our machine it reaches the first cutscene. It is not playable yet and it is not the official project or endorsed by its author. Three tests are red, listed in the issues there.What would help us:
help wanted(one, two, three), two of them look like stale tests.If you want your PR exercised together with others in a running build, tell us its number.
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 10:37 UTC · original
I checked this with the f64 arithmetic and conversions in #1262 at
70fa9b7. Git reported one conflict between test insertions invalu_tests.rs. The lowering merged cleanly, and both sets of tests are present in7db76c2, with the original commits and authors intact. All 40 VALU tests passed with DXIL validation and app-local WARP, including both class cases and the comparisons and conversions from #1262. Shader Clippy passed. The integration branch is available if either PR lands first and the other needs the test conflict resolved.@andrewpozdnakov7-jpg on GitHub · 2026-11-25 11:01 UTC · original
I missed the earlier #1469 when I opened this. It already implements both binary64 class comparisons. I rebased its production and test commits with the original Git author intact and verified both forms on WARP. The separate EXEC-mask test from this PR is available on that rebase. Closing this duplicate in favor of #1469. Rebase and test results
Pull request closed