shader: cover five pixel translator semantics that no draw observed #378
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/384"
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 Leyukaka on 2026-11-22T00:00:50Z.
Change
This closes five coverage gaps in the gfx1013 pixel translator,
tools/pixel_aot.py. Each was a one-line mutation of the translator that passedpixel_aot_warpandpixel_aot_hardwareonmain. Onlytests/pixel_aot_check.pyand thescalar64paragraph ofdocs/experiments.mdchange; the translator does not.check_half_drawgains a second draw:v_cvt_f32_f16of the literal0x3c00, ofs_ashr_i64 0xf000, 2, and ofs_bfm_b64 16, 0masked with0x3c00. Each is expected to read1.0. The fourth channel is unchanged.aword is0x11234567_ffffffffand itsbfe_ctrl_bis0x00400018. The two existing sets and their SCC mutation checks are unchanged.The expected values come from
half_valueand from the existingscalar64_referencemodel. As a negative control, the half draw expects-8192.0in green (a shift by zero) and must reportpixel_mismatch. An assertion checks that the third set'ss_not_b64result is exactly bit 63.Verification
On
c14eb8b(branch on4f6c39d), Windows 11 build 26300.9974, MSVC 14.44.35207, Python 3.14, NVIDIA GeForce RTX 5080 for the hardware test:Both tests pass, and so does the full suite (146 of 146 tests).
Each mutation was applied to
tools/pixel_aot.pyone at a time, followed by a rebuild and both pixel tests. Onmain, both tests passed for each one; a mutation of thes_movk_i32immediate in the same run was caught by the #342 check. On this branch, each mutation fails bothpixel_aot_warpandpixel_aot_hardware:0x3c00reads0.0instead of1.0s_ashr_i64count masked with610xf000(-8192.0)s_bfm_b64width masked with470x3c00s_not_b64SCC from the low word only0x80000000_00000000s_bfe_i32width masked with63Evidence and follow-up
Follows #372, which covered the jump-table translator the same way.
Checklist
AI-assisted.