shader: cover the s_pack half masks and the DPP16 src1 neg modifier #572
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/578"
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-22T13:50:15Z.
Change
This closes three coverage gaps in
tools/pixel_aot.py. Each was a one-line mutation of the translator that passed every WARP test onmain. Onlytests/pixel_aot_check.pychanges; the translator does not.check_scalar_pack_drawgains a third word pair,(0x0000ffff, 0xffffffff). It sets every bit of each half thats_pack_ll_b32_b16,s_pack_lh_b32_b16ands_pack_hh_b32_b16select, so a mask that drops one bit of the selected low or high half no longer compares equal. The two existing pairs keep their flags (index % 2), and the LL-against-LH control still runs on the first pair only.DPP_BODYgainsv_add_f32_dpp v45, v23, -v23 quad_perm:[3,2,1,0], folded into channel 0.v23is 3.0 in every lane, so the result is 0 anddpp_referenceis unchanged; without the src1 negation it is 6. A must-mismatch control removes the modifier, in the same style as the existing src0 control.Verification
On
8da68ed(branch ond4c7656), Windows 11 build 26300.9974, MSVC 14.44.35207, Python 3.14, WARP and NVIDIA GeForce RTX 5080:All WARP tests pass, and so does the full suite (275 of 275, including
pixel_aot_hardware).Each mutation was applied to
tools/pixel_aot.pyone at a time, and all WARP tests were run. Onmain, all of them passed for each mutation. A control that replacedQuadReadAcrossXwithQuadReadAcrossYwas caught, so the run does detect a broken translator. On this branch:s_pack_ll_b32_b16low mask0xffffbecomes0xfffdpixel_aot_predicate_rounding_warps_pack_lh_b32_b16high mask0xffff0000becomes0xfffe0000pixel_aot_predicate_rounding_warpnegmodifier is droppedpixel_aot_warpChecklist
AI-assisted.