diff options
author | Eric Engestrom <[email protected]> | 2017-07-31 17:47:35 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-08-01 17:36:57 +0100 |
commit | 97eadb07e7deeb62175da972bfa7a1645798d0ba (patch) | |
tree | fcf7320f5606fc025005397a4897ae5a766e9d23 /src/egl/drivers/dri2 | |
parent | 2714a8f3e95139d2c473f99e913562929ae3f5d7 (diff) |
loader: remove clamp_swap_interval()
As of last commit, no invalid swap interval can be stored, so there's
no need to sanitize the values when reading them anymore.
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2')
-rw-r--r-- | src/egl/drivers/dri2/platform_x11_dri3.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/egl/drivers/dri2/platform_x11_dri3.c b/src/egl/drivers/dri2/platform_x11_dri3.c index 515be27e200..9548a249347 100644 --- a/src/egl/drivers/dri2/platform_x11_dri3.c +++ b/src/egl/drivers/dri2/platform_x11_dri3.c @@ -53,19 +53,6 @@ egl_dri3_get_swap_interval(struct loader_dri3_drawable *draw) return dri3_surf->base.SwapInterval; } -static int -egl_dri3_clamp_swap_interval(struct loader_dri3_drawable *draw, int interval) -{ - struct dri3_egl_surface *dri3_surf = loader_drawable_to_egl_surface(draw); - - if (interval > dri3_surf->base.Config->MaxSwapInterval) - interval = dri3_surf->base.Config->MaxSwapInterval; - else if (interval < dri3_surf->base.Config->MinSwapInterval) - interval = dri3_surf->base.Config->MinSwapInterval; - - return interval; -} - static void egl_dri3_set_swap_interval(struct loader_dri3_drawable *draw, int interval) { @@ -126,7 +113,6 @@ egl_dri3_flush_drawable(struct loader_dri3_drawable *draw, unsigned flags) static const struct loader_dri3_vtable egl_dri3_vtable = { .get_swap_interval = egl_dri3_get_swap_interval, - .clamp_swap_interval = egl_dri3_clamp_swap_interval, .set_swap_interval = egl_dri3_set_swap_interval, .set_drawable_size = egl_dri3_set_drawable_size, .in_current_context = egl_dri3_in_current_context, |