|
|
@ -242,12 +242,6 @@ static int gles2_get_dmabuf_modifiers(struct wlr_renderer *wlr_renderer,
|
|
|
|
return wlr_egl_get_dmabuf_modifiers(renderer->egl, format, modifiers);
|
|
|
|
return wlr_egl_get_dmabuf_modifiers(renderer->egl, format, modifiers);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static bool gles2_check_import_dmabuf(struct wlr_renderer *wlr_renderer,
|
|
|
|
|
|
|
|
struct wlr_dmabuf_attributes *attribs) {
|
|
|
|
|
|
|
|
struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer);
|
|
|
|
|
|
|
|
return wlr_egl_check_import_dmabuf(renderer->egl, attribs);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static bool gles2_read_pixels(struct wlr_renderer *wlr_renderer,
|
|
|
|
static bool gles2_read_pixels(struct wlr_renderer *wlr_renderer,
|
|
|
|
enum wl_shm_format wl_fmt, uint32_t stride, uint32_t width,
|
|
|
|
enum wl_shm_format wl_fmt, uint32_t stride, uint32_t width,
|
|
|
|
uint32_t height, uint32_t src_x, uint32_t src_y, uint32_t dst_x,
|
|
|
|
uint32_t height, uint32_t src_x, uint32_t src_y, uint32_t dst_x,
|
|
|
@ -348,7 +342,6 @@ static const struct wlr_renderer_impl renderer_impl = {
|
|
|
|
.wl_drm_buffer_get_size = gles2_wl_drm_buffer_get_size,
|
|
|
|
.wl_drm_buffer_get_size = gles2_wl_drm_buffer_get_size,
|
|
|
|
.get_dmabuf_formats = gles2_get_dmabuf_formats,
|
|
|
|
.get_dmabuf_formats = gles2_get_dmabuf_formats,
|
|
|
|
.get_dmabuf_modifiers = gles2_get_dmabuf_modifiers,
|
|
|
|
.get_dmabuf_modifiers = gles2_get_dmabuf_modifiers,
|
|
|
|
.check_import_dmabuf = gles2_check_import_dmabuf,
|
|
|
|
|
|
|
|
.read_pixels = gles2_read_pixels,
|
|
|
|
.read_pixels = gles2_read_pixels,
|
|
|
|
.format_supported = gles2_format_supported,
|
|
|
|
.format_supported = gles2_format_supported,
|
|
|
|
.texture_from_pixels = gles2_texture_from_pixels,
|
|
|
|
.texture_from_pixels = gles2_texture_from_pixels,
|
|
|
|