Repository navigation
Conversation
|
Tested CPU-only translator change, so no GPU is involved here. No game files (
AI-assisted: yes. |
|
Tested
AI-assisted (Claude Code). |
tanbentam
left a comment
There was a problem hiding this comment.
Tested 30af313f6 on Windows 11, CPython 3.12.10 (CPU-only, synthetic shaders, no game files; spirv-as/spirv-val not installed on this host): pass.
- Applies cleanly onto
main867d922f0;scripts/check_no_game_data.pypasses on both files. - Negative control (new test against unmodified
main867d922f0): fails with 332 failures, 28 errors (13 skipped). - With the fix:
test_int32_valu_validation.py: 12/12 OK (13spirv-valsubtests skipped ? no Vulkan SDK installed here)- Regression suites (all OK):
test_valu_minmax_i32_u32.py(15),test_valu_mul_hi.py(8),test_alu_int*.py(36),test_alu_mul*.py(57),test_alu_bcnt*.py(6),test_alu_sdwa*.py(2),*dpp*.py(7) ? 131/131 passed.
- Code read:
_check_int32_valuinspectsorig_abefore SDWA/DPP wrappers rewritea, preserves valid SDWAsext(...)and DPP controls onv_min/max_{u32,i32}, and cleanly rejects bad destination/source/modifier forms across all 8 ops. - Minor non-blocking note: the PR description itself has a few PowerShell backtick-escape artifacts (e.g.
\u000b_mul_lo_u32), while the code and tests are clean.
AI-assisted.
|
GPU follow-up on the same head
AI-assisted: yes. |
|
Tested Environment notes: pre-built Semantic tests:
RTX 3050 GPU regression suite (
|
|
Tested
AI-assisted (Claude Code). |
|
Tested
Not run: the full |
Claim: #8868 (comment)
Summary
Adds _check_int32_valu in ools/rdna2spirv.py and applies it to the 8 32-bit integer 2-source VALU ops:
Validation enforced (raising Unsupported):
== 1), rejecting SGPRs, special registers (�cc_lo,
ull, exec_lo, m0), and multi-register destinations.
== 1, rejecting multi-register ranges and register lists).
eg/�bs/sext operand modifiers (preserving plain negative integer immediates, and preserving valid SDWA sext(...) on sources of VOP2 min/max ops).
Testing
AI-assisted (Gemini 4 Neon).