shader: accept s_version as a no-op marker in pixel_aot #790
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/796"
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 JB2WIN on 2026-11-23T05:03:24Z.
Change
tools/pixel_aot.pynow accepts SOPKs_version K(K from 0 to 0xffff, in hex or decimal) as a no-op marker, wherevers_nopis accepted, including after the colour export. It does not change SCC, pending loads or outstanding samples. These forms are refused withInvalid s_version operand: values above 0xffff, negatives, registers, extra or missing operands, and leading-zero decimals.SOPInstructions.tdL956-963 definesS_VERSION : SOPK_Pseudo<"s_version", (outs), (ins s16imm:$simm16), "$simm16"> { let has_sdst = 0; }underisGFX10Plus. The definition is outside anyDefs = [SCC]block, so it has no result and no SCC write. llvm-mc for gfx1013 encodess_version 0x1004as[0x04,0x10,0x80,0xb0].tools/disasm_rdna2.pynow decodes SOPK opcode 0x01 ass_version 0xK. Before this, it printeds_sopk_01 s0, …, so the scanner would have flagged binaries containing the marker even with the new pattern.AI-assisted (Claude Code).
Verification
Environment: Windows 11 10.0.26200.9974, NVIDIA GeForce RTX 3080 (driver 32.0.16.2124) and WARP 10.0.26100.9818, on
333562f.s_cmpk/s_cselectprogram, which covers SCC live, a pending sample and descriptor loads in flight. Each lowering gives the same HLSL after temporaries are renumbered.s_nopthere.Unsupported instruction 0: s_version 0x1004.clang -cc1asshim),form_coverage_check.py(("SOPK","s_version")covered in both TSVs),rdna2_tools_check.py(including the decoding of041080b0,000080b0andffff80b0),pso_readiness_check.pyanddocs_links_check.pypass.ctest --preset dev --no-tests=error: 360 of 361 passed, with the skipsbvh_wave64_hardware,bvh_wave64_warpandwave_shuffle_warp. The one failure iscompute_store_aot_hardware, which hits its 45 s timeout.333562f, without this change, it times out on this RTX 3080 as well.mismatches=0.37ed46d) it took 35.2 s.🤖 Generated with Claude Code