<div dir="ltr"><div>Reviewed-by: Gurchetan Singh <<a href="mailto:gurchetansingh@chromium.org" target="_blank">gurchetansingh@chromium.org</a>><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 25, 2016 at 9:18 AM, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
<br>
Earlier commit introduced support for image_loader and left the<br>
dri2_loader code dangling/unused. Let's remove it.<br>
<br>
Fixes: 63c5d5c6c46 ("Added pbuffer hooks for surfaceless platform")<br>
Cc: Gurchetan Singh <<a href="mailto:gurchetansingh@chromium.org">gurchetansingh@chromium.org</a>><br>
Cc: Chad Versace <<a href="mailto:chad.versace@intel.com">chad.versace@intel.com</a>><br>
Signed-off-by: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
---<br>
src/egl/drivers/dri2/platform_<wbr>surfaceless.c | 33 -----------------------------<br>
1 file changed, 33 deletions(-)<br>
<br>
diff --git a/src/egl/drivers/dri2/<wbr>platform_surfaceless.c b/src/egl/drivers/dri2/<wbr>platform_surfaceless.c<br>
index 797c013..2afcbd7 100644<br>
--- a/src/egl/drivers/dri2/<wbr>platform_surfaceless.c<br>
+++ b/src/egl/drivers/dri2/<wbr>platform_surfaceless.c<br>
@@ -248,31 +248,6 @@ surfaceless_flush_front_<wbr>buffer(__DRIdrawable *driDrawable, void *loaderPrivate)<br>
{<br>
}<br>
<br>
-static __DRIbuffer *<br>
-surfaceless_get_buffers_with_<wbr>format(__DRIdrawable * driDrawable,<br>
- int *width, int *height,<br>
- unsigned int *attachments, int count,<br>
- int *out_count, void *loaderPrivate)<br>
-{<br>
- struct dri2_egl_surface *dri2_surf = loaderPrivate;<br>
-<br>
- dri2_surf->buffer_count = 1;<br>
- if (width)<br>
- *width = dri2_surf->base.Width;<br>
- if (height)<br>
- *height = dri2_surf->base.Height;<br>
- *out_count = dri2_surf->buffer_count;<br>
- return dri2_surf->buffers;<br>
-}<br>
-<br>
-static const __DRIdri2LoaderExtension droid_dri2_loader_extension = {<br>
- .base = { __DRI_DRI2_LOADER, 3 },<br>
-<br>
- .getBuffers = NULL,<br>
- .flushFrontBuffer = droid_flush_front_buffer,<br>
- .getBuffersWithFormat = droid_get_buffers_with_format,<br>
-};<br>
-<br>
static const __DRIimageLoaderExtension image_loader_extension = {<br>
.base = { __DRI_IMAGE_LOADER, 1 },<br>
.getBuffers = surfaceless_image_get_buffers,<br>
@@ -326,14 +301,6 @@ dri2_initialize_surfaceless(_<wbr>EGLDriver *drv, _EGLDisplay *disp)<br>
goto cleanup_display;<br>
}<br>
<br>
- dri2_dpy-><a href="http://dri2_loader_extension.base.name" rel="noreferrer" target="_blank">dri2_loader_<wbr>extension.base.name</a> = __DRI_DRI2_LOADER;<br>
- dri2_dpy->dri2_loader_<wbr>extension.base.version = 3;<br>
- dri2_dpy->dri2_loader_<wbr>extension.getBuffers = NULL;<br>
- dri2_dpy->dri2_loader_<wbr>extension.flushFrontBuffer =<br>
- surfaceless_flush_front_<wbr>buffer;<br>
- dri2_dpy->dri2_loader_<wbr>extension.getBuffersWithFormat =<br>
- surfaceless_get_buffers_with_<wbr>format;<br>
-<br>
dri2_dpy->extensions[0] = &image_loader_extension.base;<br>
dri2_dpy->extensions[1] = &image_lookup_extension.base;<br>
dri2_dpy->extensions[2] = &use_invalidate.base;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.0<br>
<br>
</font></span></blockquote></div><br></div>