[cairo] [PATCH] gl: Create a new image surface if necessary in upload_boxes().

Chris Wilson chris at chris-wilson.co.uk
Mon Jul 9 05:00:23 PDT 2012

On Fri,  6 Jul 2012 15:52:28 +0800, Chuanbo Weng <strgnm at gmail.com> wrote:
> When the source surface type is gl-window in upload_boxes(), we should
> create a image surface for it to do compositing. Fixes 6 fails in
> cairo-test-suite, for example, subsurface-image-repeat.

So this get_source() should just return the surface and the caller needs
to decide if it can handle it. So move if the
_cairo_gl_surface_is_texture() check into upload-boxes and simply return
unsupported if we cannot use this fast path for it.

Chris Wilson, Intel Open Source Technology Centre

More information about the cairo mailing list