scan_unsupported_shaders: track lowered scalar, VOP3P, SDWA and conversion ops #532
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/538"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by alexander-src on 2026-11-22T10:09:40Z.
Change
Align
tools/scan_unsupported_shaders.pywith the instructions already lowered bytools/pixel_aot.pysoscan_unsupported_shaders.pyandtools/pso_readiness.pystop flagging accepted shaders asblocked(unsupported_opcodes) or reporting lowered opcodes as unrecognized:_sdwasuffixes inis_opcode_recognized()alongside_e32,_e64and_dpp*sov_mov_b32_sdwa,v_cvt_f32_f16_sdwaandv_cmp_*_f32_sdwaclassify as recognized RDNA 2 opcodes.KNOWN_RDNA2_BASE_OPCODESfrompixel_aot.SCALAR,SALU_BIT64,VOP3P_F16,VOP3P_INT16andHINT_LIMITS, plus lowered VOP3P, cube, conversion and scalar compare ops.SUPPORTED_INSTRUCTIONS_REGEXto cover lowered scalar ALU, 64-bit scalar bitops,s_bfe/s_bfm/s_cmp/s_bitcmp/s_cselect,s_clause/s_setprio/s_sleep/s_waitcnt vmcnt(0..63),v_mov_b32[_sdwa],v_cvt_f32_f16[_sdwa],v_cvt_f16_f32,v_cvt_f32_ubyte[0-3],v_cvt_off_f32_i4,v_ldexp_f32,v_cube*_f32,v_fmaak/v_fmamk,v_add_nc_u32/v_sub_nc_u32,v_min/max/min3/max3/med3_{i32,u32},v_cmp_*_{f32,i32,u32},v_cmp_class_f32,v_cndmask_b32,v_pk_*,v_fma_mix*,v_dot*,image_sample ... dmask:0x[7f],exp mrt0 ... off, offands_buffer_load_dword[x2].pso_readiness_check.pycoverage (with_lowered_ops, plus negative controls that still blockv_rcp_f64ands_branch) andrdna2_tools_check.pyregression checks.No shared interface changed; all changes are confined to the scanner and its tests.
Verification
Tested on Linux x64 at commit
f0dc6e2(based on914d241) with Python 3 (requirements-dev.txtinstalled) and LLVM 23.1.4 (llvm-mc,llvm-objcopy,/usr/lib/libLLVM.so):tests/pixel_aot_check.pyfixtures (2,650 instructions):origin/mainreported 111 unrecognized instructions (60 unique opcodes) and 723 falsely unsupported instructions; after this change, 0 unrecognized and 0 unsupported.python -B tests/pso_readiness_check.py: passed (PSO census, evidence states, and native hash control passed).LLVM_LIB=/usr/lib/libLLVM.so LLVM_MC=llvm-mc LLVM_OBJCOPY=llvm-objcopy python -B tests/rdna2_tools_check.py: passed (33 tests, OK).python -B tests/form_coverage_check.py: passed.python -B tests/docs_links_check.py: passed (10 Markdown files, 112 links).python -B tests/bidi_controls_check.py: passed (506 tracked files).Windows CI runs the full Windows test suite; this change does not modify DXC or D3D12 shader output.
Evidence and follow-up
All new fixtures are synthetic RDNA 2 assembly sequences owned by the repository (MIT).
SUPPORTED_INSTRUCTIONS_REGEXtracks the syntax accepted bypixel_aot.pytoday; futurepixel_aot.pyopcodes can extendKNOWN_RDNA2_BASE_OPCODESand the matcher alongside their lowering PRs.Checklist
AI-assisted: yes.