[Mesa-dev] [PATCH 02/12] egl/x11: advertise __DRI_USE_INVALIDATE for DRI2

Emil Velikov emil.l.velikov at gmail.com
Thu Aug 3 18:29:28 UTC 2017

From: Emil Velikov <emil.velikov at collabora.com>

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

Do so allowing the driver to do fine grained tuning.

Cc: Eric Anholt <eric at anholt.net>
Cc: Kenneth Graunke <kenneth at whitecape.org>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
 src/egl/drivers/dri2/platform_x11.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c
index f21cd5f619f..43b218ec486 100644
--- a/src/egl/drivers/dri2/platform_x11.c
+++ b/src/egl/drivers/dri2/platform_x11.c
@@ -1408,6 +1408,7 @@ static const __DRIextension *dri2_loader_extensions_old[] = {
 static const __DRIextension *dri2_loader_extensions[] = {
+   &use_invalidate.base,

More information about the mesa-dev mailing list