scan_unsupported_shaders: track 32-bit integer operations from #232 #499

Merged
Holastor merged 2 commits from upstream-pr/505 into main 2026-11-22 08:48:08 +00:00
Holastor commented 2026-11-22 08:28:43 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Holastor on 2026-11-22T08:28:43Z.


Change

Follow up on #232 to register the newly lowered 32-bit vector bitwise and shift operations (pixel_aot.INTEGER: v_and_b32, v_or_b32, v_xor_b32, v_not_b32, v_bfi_b32, v_lshlrev_b32, v_lshrrev_b32, v_ashrrev_i32) in tools/scan_unsupported_shaders.py.

Also adds v_bfi_b32 to recognized RDNA 2 base VOP3 opcodes, verifies scanner tracking in tests/pso_readiness_check.py, and adds GFX10 VOP2 disassembly vectors for the shift and bitwise instructions in tests/rdna2_tools_check.py.

Refs #232

Verification

Tested on commit 28d3f41:

.\out\pe-env\Scripts\python.exe -B tests/rdna2_tools_check.py
# Ran 30 tests in 0.705s: OK (skipped=1)

.\out\pe-env\Scripts\python.exe -B tests/pso_readiness_check.py
# PSO census, evidence states, and native hash control passed: OK

.\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py
# Checked 464 tracked source, script and build/CI files: no bidirectional controls.

Evidence and follow-up

The opcodes and arity are imported directly from pixel_aot.INTEGER, ensuring scan_unsupported_shaders.py cannot drift from the translator. tests/pso_readiness_check.py asserts that all pixel_aot.INTEGER instructions are recognized and marked supported.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted: rebased and drafted with Google Antigravity.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6540271488 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/505). Originally posted by [Holastor](https://github.com/Holastor) on 2026-11-22T08:28:43Z. --- ## Change Follow up on #232 to register the newly lowered 32-bit vector bitwise and shift operations (`pixel_aot.INTEGER`: `v_and_b32`, `v_or_b32`, `v_xor_b32`, `v_not_b32`, `v_bfi_b32`, `v_lshlrev_b32`, `v_lshrrev_b32`, `v_ashrrev_i32`) in `tools/scan_unsupported_shaders.py`. Also adds `v_bfi_b32` to recognized RDNA 2 base VOP3 opcodes, verifies scanner tracking in `tests/pso_readiness_check.py`, and adds GFX10 VOP2 disassembly vectors for the shift and bitwise instructions in `tests/rdna2_tools_check.py`. Refs #232 ## Verification Tested on commit `28d3f41`: ```powershell .\out\pe-env\Scripts\python.exe -B tests/rdna2_tools_check.py # Ran 30 tests in 0.705s: OK (skipped=1) .\out\pe-env\Scripts\python.exe -B tests/pso_readiness_check.py # PSO census, evidence states, and native hash control passed: OK .\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py # Checked 464 tracked source, script and build/CI files: no bidirectional controls. ``` ## Evidence and follow-up The opcodes and arity are imported directly from `pixel_aot.INTEGER`, ensuring `scan_unsupported_shaders.py` cannot drift from the translator. `tests/pso_readiness_check.py` asserts that all `pixel_aot.INTEGER` instructions are recognized and marked supported. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted: rebased and drafted with Google Antigravity.
upstream-sync closed this pull request 2026-11-24 06:43:24 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!499
No description provided.