aboutsummaryrefslogtreecommitdiff
path: root/render/gles2/renderer.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2019-04-08 10:58:18 +0200
committerGitHub <noreply@github.com>2019-04-08 10:58:18 +0200
commit9faea17c738d9bfcdd241de7bae0bbe7590c77bf (patch)
tree3af5beee400f81ae4d8ced171719558b7730d1cd /render/gles2/renderer.c
parent43bd1d807af533fa369ed3d5431ca2f4e776e9bf (diff)
parente42178d03fd34f9f5fba10feabfc4b35a71edd31 (diff)
Merge pull request #1642 from emersion/format-set
Introduce wlr_format_set
Diffstat (limited to 'render/gles2/renderer.c')
-rw-r--r--render/gles2/renderer.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c
index 3409d144..dce1f162 100644
--- a/render/gles2/renderer.c
+++ b/render/gles2/renderer.c
@@ -247,16 +247,10 @@ static void gles2_wl_drm_buffer_get_size(struct wlr_renderer *wlr_renderer,
eglQueryWaylandBufferWL(renderer->egl->display, buffer, EGL_HEIGHT, height);
}
-static int gles2_get_dmabuf_formats(struct wlr_renderer *wlr_renderer,
- int **formats) {
- struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer);
- return wlr_egl_get_dmabuf_formats(renderer->egl, formats);
-}
-
-static int gles2_get_dmabuf_modifiers(struct wlr_renderer *wlr_renderer,
- int format, uint64_t **modifiers) {
+static const struct wlr_drm_format_set *gles2_get_dmabuf_formats(
+ struct wlr_renderer *wlr_renderer) {
struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer);
- return wlr_egl_get_dmabuf_modifiers(renderer->egl, format, modifiers);
+ return wlr_egl_get_dmabuf_formats(renderer->egl);
}
static enum wl_shm_format gles2_preferred_read_format(
@@ -402,7 +396,6 @@ static const struct wlr_renderer_impl renderer_impl = {
.resource_is_wl_drm_buffer = gles2_resource_is_wl_drm_buffer,
.wl_drm_buffer_get_size = gles2_wl_drm_buffer_get_size,
.get_dmabuf_formats = gles2_get_dmabuf_formats,
- .get_dmabuf_modifiers = gles2_get_dmabuf_modifiers,
.preferred_read_format = gles2_preferred_read_format,
.read_pixels = gles2_read_pixels,
.texture_from_pixels = gles2_texture_from_pixels,