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 <daniels@collabora.com>
Fixes: 0b51b02c5e ("gl-renderer: Don't re-import dmabufs")
dev
Daniel Stone 3 years ago
parent efd6aae915
commit f8ac6f940f
  1. 8
      libweston/renderer-gl/gl-renderer.c

@ -2843,14 +2843,6 @@ gl_renderer_attach_dmabuf(struct weston_surface *surface,
gs->direct_display = dmabuf->direct_display; gs->direct_display = dmabuf->direct_display;
surface->is_opaque = dmabuf_is_opaque(dmabuf); 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) if (dmabuf->direct_display)
return; return;

Loading…
Cancel
Save