FAILURE MAP
← Case archive

FA-10671 / Raster clipping / Open access

Scissor disabled full target · case 01

A remembered scissor rectangle still clips rendering after scissor testing is disabled.

Verified by executionVariant 1 · 4 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

A remembered scissor rectangle still clips rendering after scissor testing is disabled.

VERIFIED REPAIR

Use the stage contract: Resolve effective scissor bounds: enabled uses the supplied rectangle, disabled uses the complete nonnegative-sized render target.

Unsuccessful approach: Always using the full target ignores enabled scissor state.

Case contract

Resolve effective scissor bounds: enabled uses the supplied rectangle, disabled uses the complete nonnegative-sized render target.

Why this case matters

A deterministic software graphics stage with explicit channel and coordinate conventions; no hardware, device profile or API behavior is inferred.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(enabled, scissor, width, height):
    return list(scissor)
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve(*(False, [1, 1, 2, 2], 4, 3)), [0, 0, 4, 3])
check('fixture 2', solve(*(True, [1, 1, 2, 2], 4, 3)), [1, 1, 2, 2])
check('fixture 3', solve(*(False, [9, 9, 10, 10], 0, 0)), [0, 0, 0, 0])
check('fixture 4', solve(*(True, [0, 0, 0, 0], 4, 3)), [0, 0, 0, 0])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
fixture 1[1, 1, 2, 2][0, 0, 4, 3]Failed
fixture 2[1, 1, 2, 2][1, 1, 2, 2]Passed
fixture 3[9, 9, 10, 10][0, 0, 0, 0]Failed
fixture 4[0, 0, 0, 0][0, 0, 0, 0]Passed

SHA-256 / 12a6031eae79307feb61c7be33f9d534e78fcc8db5ea9f8544b05bfdd955de86

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(enabled, scissor, width, height):
    return [0,0,width,height]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve(*(False, [1, 1, 2, 2], 4, 3)), [0, 0, 4, 3])
check('fixture 2', solve(*(True, [1, 1, 2, 2], 4, 3)), [1, 1, 2, 2])
check('fixture 3', solve(*(False, [9, 9, 10, 10], 0, 0)), [0, 0, 0, 0])
check('fixture 4', solve(*(True, [0, 0, 0, 0], 4, 3)), [0, 0, 0, 0])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
fixture 1[0, 0, 4, 3][0, 0, 4, 3]Passed
fixture 2[0, 0, 4, 3][1, 1, 2, 2]Failed
fixture 3[0, 0, 0, 0][0, 0, 0, 0]Passed
fixture 4[0, 0, 4, 3][0, 0, 0, 0]Failed

SHA-256 / 6973a75f938431c027a5190130afe97e26f41bff2e12f5b3918a9fc9b2249b37

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json
import math
N = 1
observations = []
def solve(enabled, scissor, width, height):
    return list(scissor) if enabled else [0,0,width,height]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve(*(False, [1, 1, 2, 2], 4, 3)), [0, 0, 4, 3])
check('fixture 2', solve(*(True, [1, 1, 2, 2], 4, 3)), [1, 1, 2, 2])
check('fixture 3', solve(*(False, [9, 9, 10, 10], 0, 0)), [0, 0, 0, 0])
check('fixture 4', solve(*(True, [0, 0, 0, 0], 4, 3)), [0, 0, 0, 0])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
fixture 1[0, 0, 4, 3][0, 0, 4, 3]Passed
fixture 2[1, 1, 2, 2][1, 1, 2, 2]Passed
fixture 3[0, 0, 0, 0][0, 0, 0, 0]Passed
fixture 4[0, 0, 0, 0][0, 0, 0, 0]Passed

SHA-256 / eaed313eb6d8d0be54b4ad6456c280f220426faf4dd83cff0897d55f1c11b7cd

Verification & scope

This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.

Observations recorded using Python 3.12.14 at 2026-09-29T14:38:41.200749+00:00.

Case digest / 9018595e4ed67bfb5d283f21ae9c2a087c8e8d8d090843f49193ea0faf907384