aboutsummaryrefslogtreecommitdiff
path: root/render/gles2
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-18 14:53:13 +0100
committerSimon Ser <contact@emersion.fr>2020-11-30 11:08:44 +0100
commit49115e9d5d1c9f9c61c4f05c8e7a16191426b21e (patch)
tree186adcaaceb608b9ea123576c310f417619504be /render/gles2
parentc0452539276983d93cfd8757f9159d726a2d6f3a (diff)
render: rename wlr_renderer_get_dmabuf_formats
Rename wlr_renderer_get_dmabuf_formats to wlr_renderer_get_dmabuf_texture_formats. This makes it clear the formats are only suitable for creating wlr_textures.
Diffstat (limited to 'render/gles2')
-rw-r--r--render/gles2/renderer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c
index e5bdcd75..28a24087 100644
--- a/render/gles2/renderer.c
+++ b/render/gles2/renderer.c
@@ -429,10 +429,10 @@ static void gles2_wl_drm_buffer_get_size(struct wlr_renderer *wlr_renderer,
buffer, EGL_HEIGHT, height);
}
-static const struct wlr_drm_format_set *gles2_get_dmabuf_formats(
+static const struct wlr_drm_format_set *gles2_get_dmabuf_texture_formats(
struct wlr_renderer *wlr_renderer) {
struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer);
- return wlr_egl_get_dmabuf_formats(renderer->egl);
+ return wlr_egl_get_dmabuf_texture_formats(renderer->egl);
}
static const struct wlr_drm_format_set *gles2_get_dmabuf_render_formats(
@@ -708,7 +708,7 @@ static const struct wlr_renderer_impl renderer_impl = {
.formats = gles2_renderer_formats,
.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_texture_formats = gles2_get_dmabuf_texture_formats,
.get_dmabuf_render_formats = gles2_get_dmabuf_render_formats,
.preferred_read_format = gles2_preferred_read_format,
.read_pixels = gles2_read_pixels,