From ad8002e5997c0fba353068c9b708126d2af14cdd Mon Sep 17 00:00:00 2001 From: Shokunin <30949000+tetrisgm@users.noreply.github.com> Date: Wed, 7 Oct 2026 13:26:28 -0700 Subject: [PATCH] Test: band scissor guard follows the shared wide_band_rows helper The stale-part stencil rebuild shares the draw-area rows with the band scissor; the guard checks the clamp where it now lives. Co-Authored-By: Claude Opus 5.5 --- runtime/tests/test_wide_overlay_band_scissor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/tests/test_wide_overlay_band_scissor.py b/runtime/tests/test_wide_overlay_band_scissor.py index dece81ac..70a848dd 100644 --- a/runtime/tests/test_wide_overlay_band_scissor.py +++ b/runtime/tests/test_wide_overlay_band_scissor.py @@ -23,6 +23,8 @@ def body(text, signature): gl = (src / "gpu_gl_renderer.c").read_text(encoding="utf-8") band = body(gl, "static void wide_band_scissor_x(int x, int w) {") assert "static void wide_band_scissor(void) { wide_band_scissor_x(0, g_wide_w); }" in gl, "GL band scissor does not cover the full wide width" +if "wide_band_rows(" in band: # the rows are shared with the stencil rebuild + band = body(gl, "static void wide_band_rows(") assert "s_area_y1" in band and "s_area_y2" in band, "GL band scissor ignores the draw area" flat = body(gl, "static void wide_flat_rect_direct(") assert "wide_band_scissor();" in flat, "GL overlay pass does not use the band scissor"