Skip to content
  • Aaron Plattner's avatar
    Fix pixmap validation in miDbePositionWindow. · 1304b8b2
    Aaron Plattner authored and Keith Packard's avatar Keith Packard committed
    
    
    miDbePositionWindow allocates two pixmaps: a front buffer, and a back buffer.
    If the buffers are supposed to be initialized, it validates a GC against the
    front buffer, then uses it to fill and/or copy both the front buffer *and* the
    back buffer, without revalidating.  If the acceleration architecture needs
    different GC funcs for the two pixmaps -- for example if allocation of the front
    buffer exhausted video memory -- then this can cause crashes because the GC is
    not validated for the back buffer pixmap.
    
    Fix this by performing the rendering for the front buffer first, then
    revalidating against the back buffer before performing the back buffer
    rendering.
    
    Signed-off-by: Aaron Plattner's avatarAaron Plattner <aplattner@nvidia.com>
    Reviewed-by: default avatarJamey Sharp <jamey@minilop.net>
    Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
    1304b8b2