xserver-multidpi/hw
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
..
dmx Drop valuator mask argument from GetKeyboardEvents 2015-03-13 12:31:21 +10:00
kdrive glamor: Just set the logic op to what we want at the start of all rendering. 2015-03-24 12:43:34 -07:00
vfb vfb: Don't reimplement micmap so much 2014-10-08 10:10:39 +02:00
xfree86 glamor: Eliminate GLAMOR_USE_SCREEN and GLAMOR_USE_PICTURE_SCREEN 2015-03-24 12:01:39 -07:00
xnest Drop valuator mask argument from GetKeyboardEvents 2015-03-13 12:31:21 +10:00
xquartz Drop valuator mask argument from GetKeyboardEvents 2015-03-13 12:31:21 +10:00
xwayland glamor: Eliminate GLAMOR_USE_SCREEN and GLAMOR_USE_PICTURE_SCREEN 2015-03-24 12:01:39 -07:00
xwin Drop valuator mask argument from GetKeyboardEvents 2015-03-13 12:31:21 +10:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00