summaryrefslogtreecommitdiff
path: root/src/egl
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-09-25 14:45:16 -0700
committerEric Anholt <eric@anholt.net>2012-10-09 14:32:04 -0700
commit1e7776ca2bc59a6978d9b933d23852d47078dfa8 (patch)
tree64c48247989138b5309281bac1efaed9d9ab7dfa /src/egl
parent7e9bd2b2ed35a440a96362417100a7e43715d606 (diff)
egl: Remove bogus invalidate code.
The invalidate event support is a careful dance between driver and loader, where both have to say they can handle it, and then the loader reports invalidate events for the driver so the driver can do the optimization. The EGL code doesn't report __DRIuseInvalidateExtension to the driver, so it has no responsibility to call the driver's invalidate function, and the driver is doing the glViewport hack because it assume. This is not the only time invalidate would need to be called (we need it *any* time an invalidate event comes down the pipe, but we don't watch for them), so just stop calling the driver's function. Acked-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/platform_x11.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c
index 4757ccfca4f..936e3806521 100644
--- a/src/egl/drivers/dri2/platform_x11.c
+++ b/src/egl/drivers/dri2/platform_x11.c
@@ -742,11 +742,6 @@ dri2_swap_buffers_msc(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw,
free(reply);
}
- /* If the server doesn't send invalidate events */
- if (dri2_dpy->invalidate_available && dri2_dpy->flush &&
- dri2_dpy->flush->base.version >= 3 && dri2_dpy->flush->invalidate)
- (*dri2_dpy->flush->invalidate)(dri2_surf->dri_drawable);
-
return swap_count;
}