dri: Optionally turn off a couple of GLX extensions based on driconf options
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 5 May 2017 12:57:27 +0000 (05:57 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 7 Jun 2017 17:43:54 +0000 (19:43 +0200)
commit9d3f177e4b1ecd5e6ac4673e1ac8c72df9e159eb
treeb879bccb3a7e663f4e66df740f8c74e79af24014
parentff2978b44944790abd860548e111907588a23b0d
dri: Optionally turn off a couple of GLX extensions based on driconf options

With GLX_EXT_buffer_age turned on, gnome-shell will use full-screen damage
with GLX, which severely hurts performance with architectures that emulate
page-flips with copies. Like vmware. We would like to be able to turn off that
extension. Similarly, typically the GLX_OML_sync_control doesn't make much
sense on a virtual architecture since we don't really sync to the host's
vertical retrace. We'd like to be able to turn it off as well.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/glx/dri2_glx.c
src/glx/dri3_glx.c
src/mesa/drivers/dri/common/xmlpool/t_options.h