[Mesa-dev] [PATCH 6/6] egl_dri2: Avoid using createSubImage when not neccassery

Scott Moreau oreaus at gmail.com
Mon Aug 20 13:02:21 PDT 2012


I tested this series and it works. It fixes weston drm backend as outlined
here https://bugs.freedesktop.org/show_bug.cgi?id=52267
There is a typo in this series, to get it to build you need:

diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index dfa5d39..0d48d70 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -422,7 +422,7 @@ gbm_dri_bo_import(struct gbm_device *gbm,
    dri->image->queryImage(image, __DRI_IMAGE_ATTRIB_WIDTH, &width);
    dri->image->queryImage(image, __DRI_IMAGE_ATTRIB_HEIGHT, &height);

-   if (dri->image->version < 5)
+   if (dri->image->base.version < 5)
       bo->image = dri->image->dupImage(image, NULL);
    else
       bo->image = dri->image->createSubImage(image,

Tested-by: Scott Moreau <oreaus at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120820/f0224cc0/attachment.html>


More information about the mesa-dev mailing list