Skip to content
  • Keith Packard's avatar
    glamor: Get testing code using small FBOs working again · 82f91433
    Keith Packard authored and Emma Anholt's avatar Emma Anholt committed
    
    
    Glamor has a mode where pixmaps will be constructed from numerous
    small FBOs. This allows testing of the tiled pixmap code without
    needing to create huge pixmaps.
    
    However, the render glyph code assumed that it could create a pixmap
    large enough for the glyph atlas. Instead of attempting to fix that
    (which would be disruptive and not helpful), I've added a new pixmap
    creation usage, GLAMOR_CREATE_NO_LARGE which forces allocation of a
    single large FBO.
    
    Now that we have pixmaps with varying FBO sizes, I then went around
    and fixed the few places using the global FBO max size and replaced
    that with the per-pixmap FBO tiling sizes, which were already present
    in each large pixmap.
    
    Xephyr has been changed to pass GLAMOR_CREATE_NO_LARGE when it creates
    the screen pixmap as it doesn't want to deal with tiling either.
    
    Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
    Signed-off-by: default avatarEric Anholt <eric@anholt.net>
    Reviewed-by: default avatarEric Anholt <eric@anholt.net>
    82f91433