• Eric Anholt's avatar
    glamor: Scissor rectangle drawing to the bounds of the rects. · 60cc7e36
    Eric Anholt authored
    Scissors provide a critical hint to tiled renderers as to what tiles
    need to be load/stored because they could be modified by the
    rendering.
    
    The bounds calculation here is limited to when we have a small number
    of rects (large enough to cover rounded window corners, but probably
    not xeyes) to avoid overhead on desktop GL.
    
    No performance difference on i965 with x11perf -rect1 -repeat 1 -reps
    10000 (n=50)
    
    v2: Clamp rectangle bounds addition.
    Signed-off-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
    Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
    60cc7e36
glamor_rects.c 6.52 KB