egl/x11: advertise __DRI_USE_INVALIDATE for DRI2
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 3 Aug 2017 18:29:28 +0000 (19:29 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 6 Sep 2017 16:48:50 +0000 (17:48 +0100)
Back in 2012 (commit 1e7776ca2bc - egl: Remove bogus invalidate code.)
the loader use of invalidate() was purged as "bogus". One of the factors
defining that statement was the lack of the loader-side invalidate
extension - __DRI_USE_INVALIDATE.

Since then the commit was reverted (commit eed0a80137d - egl: Restore
"bogus" DRI2 invalidate event code.), always performing the driver
invalidate call, although the loader was never updated to expose the
extension.

Do so allowing the driver to do fine grained tuning.

Cc: Eric Anholt <eric@anholt.net>
Cc: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net
src/egl/drivers/dri2/platform_x11.c

index 869cb2a36d1cb2e931983cd1e9626c175a174c32..5ca5b912daba6e716f8cbe223892fc97644479f8 100644 (file)
@@ -1386,6 +1386,7 @@ static const __DRIextension *dri2_loader_extensions_old[] = {
 static const __DRIextension *dri2_loader_extensions[] = {
    &dri2_loader_extension.base,
    &image_lookup_extension.base,
+   &use_invalidate.base,
    &background_callable_extension.base,
    NULL,
 };