mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-25 18:05:12 -04:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user