shader: batch remaining pixel_aot draw cases per shader #691
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/697"
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 Ammmae0x on 2026-11-22T20:47:31Z.
Change
Refs #448
--check-pixel-caseloops per compiled.csoshader intests/pixel_aot_check.pyviarun_pixel_batch()andrun_pixel_batch_statuses(), reducing renderer process launches and D3D12 device creations acrossdraw-core,draw-predicate-rounding,draw-blend-scalar,draw-e64,draw-integer-nc,draw-bfm,three-wayand full-RGBAbuffer-color(494 -> 263 renderer launches per backend across all 8 modes).--check-pixel,--check-pixel-quad-lod,--dual-pixeland--check-pixel-case-rgon their existing single-draw paths, and preserve every reference case, negative-control mismatch assertion (pixel_mismatch x=0 y=0, expectedmismatchstatus) and exit-77 capability skip check.## Offline pixel shader recompilationindocs/experiments.md.tests/offscreen_check.cpp(independent of open PR #685).Verification
10.0.26100.0), MSVC19.50.35727(x64), DXC10.0.26100.0,debug_layer=unavailableMicrosoft Basic Render Driver(warp, driver10.0.26100.7309) andNVIDIA GeForce RTX 4050 Laptop GPU(hardware, vendor10de, device28e1, driver32.0.15.9186)Post-merge (
26464b5, mergedupstream/main3b9bb1a):python -B tests/pixel_aot_check.py->Self-test passed.(exit0)python -B tests/docs_links_check.py->Checked 10 Markdown files and 128 links.(exit0)python -B tests/bidi_controls_check.py->Self-test passed. Checked 586 tracked source, script and build/CI files: no bidirectional controls.(exit0)Full dual-preset GPU / WARP matrix (
5a54c77, before upstreamfma_packedmerge touching only CPU FMA3 fixtures):cmake --build --preset dev --target offscreen_checkandcmake --build --preset release --target offscreen_check: 0 errors, 0 compiler warnings.ctest --preset dev --no-tests=error -R "^offscreen_"-> 3 passed, 0 skipped, 0 failed (0.77s).ctest --preset release --no-tests=error -R "^offscreen_"-> 3 passed, 0 skipped, 0 failed (0.85s).python -B tests/pixel_aot_check.py <mode> <dxc.exe> out/build/<preset>/offscreen_check.exe <warp|hardware>):dev: 16 passed (8warp,8hardware), 0 skipped (exit 77), 0 failed.release: 16 passed (8warp,8hardware), 0 skipped (exit 77), 0 failed.494 -> 263):draw-core(127 -> 65;warp9.74sdev/9.48srelease,hardware24.11sdev/24.23srelease),draw-predicate-rounding(147 -> 74),draw-blend-scalar(126 -> 61),draw-e64(57 -> 50),draw-integer-nc(12 -> 3),draw-bfm(15 -> 3),three-way(4 -> 3),buffer-color(6 -> 4).[pass, mismatch, pass]batch viaoffscreen_check.exe warp --check-pixel-batch, plus expected-pass assertion on mismatch): failed deterministically with exit1andcase=0 status=pass/case=1 status=mismatch/case=2 status=pass.pixel_aot_*targets viaINTAKE_PYTHON(out/pe-envnot created;ziglang/iced-x86not installed locally), norpixel_aot_check.py binary(LLVM 15 not installed on Windows); covered by Windows CI (out/pe-env) and Ubuntu CI (LLVM 15).Evidence and follow-up
tests/pixel_aot_check.pywith explicitname=case paths.--check-pixel,--check-pixel-quad-lod,--dual-pixel,--check-pixel-case-rg) remain individual invocations because--check-pixel-batchrunscheck_translated_pixel(..., swapRB=false, writeMask=ALL).Checklist
AI-assisted.