shader: batch floating-point predicate readback cases per shader #550

Merged
RonLogic merged 1 commit from upstream-pr/556 into main 2026-11-22 12:01:36 +00:00
RonLogic commented 2026-11-22 11:48:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-22T11:48:59Z.


Refs #448.

Reuse the existing pixel batch runner for floating-point predicate readbacks. Group cases by compiled shader. Keep all 20 positive references and five DXIL compile checks. The finite-vs-NaN mismatch runs before a final positive case in the same batch, so this still checks mismatch detection and continuation. The Python driver checks each ordered status and the process exit code and retains the per-case fixture labels.

On Windows, alternating two runs of each version with the same offscreen_check executable, the full draw-predicate-rounding check went from 185 to 168 renderer launches, with 60 DXC launches in either version. Median elapsed time changed from 43.72 s to 39.96 s on RTX 4070 and from 6.94 s to 6.51 s on WARP.

Validation: draw-predicate-rounding and draw-e64 passed on WARP and RTX 4070. The documentation link check passed.

Commands for each backend (warp and hardware):

python -B tests/pixel_aot_check.py draw-predicate-rounding <dxc> <offscreen_check> <backend>
python -B tests/pixel_aot_check.py draw-e64 <dxc> <offscreen_check> <backend>
python -B tests/docs_links_check.py

AI-assisted: yes.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6542012366 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/556). Originally posted by [RonLogic](https://github.com/RonLogic) on 2026-11-22T11:48:59Z. --- Refs #448. Reuse the existing pixel batch runner for floating-point predicate readbacks. Group cases by compiled shader. Keep all 20 positive references and five DXIL compile checks. The finite-vs-NaN mismatch runs before a final positive case in the same batch, so this still checks mismatch detection and continuation. The Python driver checks each ordered status and the process exit code and retains the per-case fixture labels. On Windows, alternating two runs of each version with the same `offscreen_check` executable, the full `draw-predicate-rounding` check went from 185 to 168 renderer launches, with 60 DXC launches in either version. Median elapsed time changed from 43.72 s to 39.96 s on RTX 4070 and from 6.94 s to 6.51 s on WARP. Validation: `draw-predicate-rounding` and `draw-e64` passed on WARP and RTX 4070. The documentation link check passed. Commands for each backend (`warp` and `hardware`): ```text python -B tests/pixel_aot_check.py draw-predicate-rounding <dxc> <offscreen_check> <backend> python -B tests/pixel_aot_check.py draw-e64 <dxc> <offscreen_check> <backend> python -B tests/docs_links_check.py ``` AI-assisted: yes.
upstream-sync closed this pull request 2026-11-24 06:43:40 +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!550
No description provided.