glx: Move the GLX variable caching what GL context is current to dix.
authorEric Anholt <eric@anholt.net>
Fri, 18 Apr 2014 01:18:49 +0000 (18:18 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 23 Apr 2014 17:32:02 +0000 (10:32 -0700)
commitabf12027063dbe22bec1d055ad8db365cf07395a
tree306b0df0614f21830d279672476b387ac89e3f10
parentf12221cbd8ff33070fa2ca086bccf7ed32115f0e
glx: Move the GLX variable caching what GL context is current to dix.

GLX is trying to track whether the context it wants is current, to
avoid the glFlush() (and the rest of the overhead) that occurs on all
MakeCurrent calls.  However, its cache can be incorrect now that
glamor exists.  This is a step toward getting glamor to coordinate
with GLX.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
dix/dixutils.c
glx/glxcmds.c
glx/glxext.c
glx/glxserver.h
include/dix.h