From f8ac6f940fa229adbb17023a6840eeca1da64bbd Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 14 Jan 2022 00:22:20 +0000 Subject: [PATCH] gl-renderer: Remove outdated comment The comment about needing to have destroyed images is somewhat less true now that we actively avoid doing so. Signed-off-by: Daniel Stone Fixes: 0b51b02c5e67 ("gl-renderer: Don't re-import dmabufs") --- libweston/renderer-gl/gl-renderer.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c index 7ed86afb..321e67a8 100644 --- a/libweston/renderer-gl/gl-renderer.c +++ b/libweston/renderer-gl/gl-renderer.c @@ -2843,14 +2843,6 @@ gl_renderer_attach_dmabuf(struct weston_surface *surface, gs->direct_display = dmabuf->direct_display; surface->is_opaque = dmabuf_is_opaque(dmabuf); - /* - * We try to always hold an imported EGLImage from the dmabuf - * to prevent the client from preventing re-imports. But, we also - * need to re-import every time the contents may change because - * GL driver's caching may need flushing. - * - * Here we release the cache reference which has to be final. - */ if (dmabuf->direct_display) return;