Shader tests: keep dot4 test operands runtime for RDNA1 #1879
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!1879
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1879"
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 23:59 UTC · original
n-romanovich:test/valu-dot4-runtime-operands→main· +1 −1 · 1 files · 2 commits · openFixes #1782.
Summary
emit::valu_tests::fspx_programs_run_with_the_hardwares_dot_productspreviously loadeda,b, andaccwithv_mov_b32 vN, literal, so drivers without nativedot4(RDNA1) constant-folded signed byte multiplicands >=0x80as unsigned.This adds
v0(tid.x,0in the[1, 1, 1]dispatch) to each literal viav_add_nc_u32so the operands stay runtime values while testing the samev_dot4_i32_i8/v_dot4c_i32_i8lowering andopsel/opsel_hicases.Testing
cargo test -p victory-shader --locked -- fspx_programs_run_with_the_hardwares_dot_products(1 passed, 0 failed)fspx_programs_run_with_the_hardwares_dot_productsfails on RDNA1, where the driver folds a constantDot4AddI8Packedoperand as unsigned #1782@Marvisak on GitHub · 2026-11-25 08:20 UTC · original · edited 2026-11-26 01:19 UTC
Automated triage for the maintainers.
Proposed close: already in main. The merge of
origin/maininto this branch leaves only one change againstmain:load.clone()becomesload.to_vec()infspx_programs_run_with_the_hardwares_dot_products(crates/victory-shader/src/emit/valu_tests.rs), and that has no effect. The fix for #1782 is already inmainthrough #1790 (49761f9). That test now makes each operand at run time as a literal plus a word loaded from the zeroed UAV (buffer_load_dword v4andv_add_nc_u32 vN, literal, v4), which is what this PR set out to do.CI: passing (
check).The PR will be closed in 48 hours unless the author pushes a change or a maintainer removes the label.
Generated by Claude Code
@sinan-cmyk on GitHub · 2026-11-25 11:51 UTC · original
Offline measurement on a retail dump
Result: no count change against
main.I merged head
5a8fc617ontomain940d32f(clean merge) and ranvictory translate --validate --listonshaders.rpf(1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result withmainprogram by program (25,889 programs). Validated: 23,918 onmain, 23,918 with this PR.No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right.
No shader names or data are included, per the asset policy. AI-assisted (Claude Code).
fspx_programs_run_with_the_hardwares_dot_productsfails on RDNA1, where the driver folds a constantDot4AddI8Packedoperand as unsigned #1782View 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.