xserver-multidpi/hw/kdrive
Eric Anholt 6ba6cc57e1 glamor: Just set the logic op to what we want at the start of all rendering.
By dropping the unconditional logic op disable at the end of
rendering, this fixes GL errors being thrown in GLES2 contexts (which
don't have logic ops).  On desktop, this also means a little less
overhead per draw call from taking one less trip through the
glEnable/glDisable switch statement of doom in Mesa.

The exchange here is that we end up taking a trip through it in the
XV, Render, and gradient-generation paths.  If the glEnable() is
actually costly, we should probably cache our logic op state in our
screen, since there's no way the GL could make that switch statement
as cheap as the caller caching it would be.

v2: Don't forget to set the logic op in Xephyr's drawing.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
2015-03-24 12:43:34 -07:00
..
ephyr glamor: Just set the logic op to what we want at the start of all rendering. 2015-03-24 12:43:34 -07:00
fake Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00
fbdev Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00
linux kdrive: Ignore failure to chown console tty to current user 2014-04-18 16:30:17 -07:00
src Drop valuator mask argument from GetKeyboardEvents 2015-03-13 12:31:21 +10:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00
Xkdrive.man kdrive: Remove some dead bits of the man page 2014-07-29 09:51:40 -04:00