diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2014-01-28 12:34:19 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2014-03-17 15:36:03 -0700 |
commit | 8b9298af0a3bce1360cc2c020b31470b37b660fe (patch) | |
tree | ad14459299c53482fc68217f471d0280beabd9f3 /src/egl/drivers/dri2/egl_dri2_fallbacks.h | |
parent | a218765478e5207f4337406d98865c6b5cf3784e (diff) | |
download | external_mesa3d-8b9298af0a3bce1360cc2c020b31470b37b660fe.zip external_mesa3d-8b9298af0a3bce1360cc2c020b31470b37b660fe.tar.gz external_mesa3d-8b9298af0a3bce1360cc2c020b31470b37b660fe.tar.bz2 |
egl/dri2: Dispatch eglSwapInterval by display, not driver
Add dri2_egl_display_vtbl::swap_interval, set it for each platform, and
let egl_dri2 dispatch eglSwapInterval to that.
This prepares for the EGL platform extensions.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2_fallbacks.h')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2_fallbacks.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2_fallbacks.h b/src/egl/drivers/dri2/egl_dri2_fallbacks.h new file mode 100644 index 0000000..e09a3b8 --- /dev/null +++ b/src/egl/drivers/dri2/egl_dri2_fallbacks.h @@ -0,0 +1,34 @@ +/* + * Copyright 2014 Intel Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +#pragma once + +#include "egltypedefs.h" + +static inline EGLBoolean +dri2_fallback_swap_interval(_EGLDriver *drv, _EGLDisplay *dpy, + _EGLSurface *surf, EGLint interval) +{ + return EGL_FALSE; +} |