third_party_mesa3d/include/GL
Dave Airlie 2b67657096 gallium/swrast: fix front buffer blitting. (v2)
So I've known this was broken before, cogl has a workaround
for it from what I know, but with the gallium based swrast
drivers BlitFramebuffer from back to front or vice-versa
was pretty broken.

The legacy swrast driver tracks when a front buffer is used
and does the get/put images when it is mapped/unmapped,
so this patch attempts to add the same functionality to the
gallium drivers.

It creates a new context interface to denote when a front
buffer is being created, and passes a private pointer to it,
this pointer is then used to decide on map/unmap if the
contents should be updated from the real frontbuffer using
get/put image.

This is primarily to make gtk's gl code work, the only
thing I've tested so far is the glarea test from
https://github.com/ebassi/glarea-example.git

v2: bump extension version,
check extension version before calling get image. (Ian)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91930

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-10-31 16:04:36 +10:00
..
internal gallium/swrast: fix front buffer blitting. (v2) 2015-10-31 16:04:36 +10:00
gl_mangle.h mesa: regenerate gl_mangle.h 2014-08-12 08:09:45 -06:00
gl.h mesa: remove unused #pragma export on/off lines 2014-04-28 17:16:42 -06:00
glcorearb.h mesa: pull Khronos glcorearb.h header into include/GL/ 2014-08-12 15:55:41 -06:00
glext.h GL: update glext to svn 31811 2015-08-20 18:42:03 +10:00
glx_mangle.h mesa: remove outdated version lines in comments 2013-06-05 08:54:27 -06:00
glx.h includes/GL: remove duplicated extension declarations from glx.h 2015-08-01 15:47:55 +01:00
glxext.h mesa: update glxext.h to version 20140810 2014-08-12 08:09:45 -06:00
osmesa.h configure: nuke --with-max-{width,height} 2015-04-01 19:43:34 +00:00
wglext.h mesa: update wglext.h to version 20140810 2014-08-12 08:09:45 -06:00