[PATCH] glamor: Make glamor_name_from_pixmap work without DRI3

Mark Kettenis kettenis at openbsd.org
Sun Nov 15 08:27:21 PST 2015


This function is used by the modesetting driver to implement DRI2 and
shouldn't fail on systems that don't support DRI3.

Signed-off-by: Mark Kettenis <kettenis at openbsd.org>
---
 glamor/glamor.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/glamor/glamor.c b/glamor/glamor.c
index d4a0236..110bdb8 100644
--- a/glamor/glamor.c
+++ b/glamor/glamor.c
@@ -776,8 +776,6 @@ glamor_name_from_pixmap(PixmapPtr pixmap, CARD16 *stride, CARD32 *size)
     glamor_screen_private *glamor_priv =
         glamor_get_screen_private(pixmap->drawable.pScreen);
 
-    if (!glamor_priv->dri3_enabled)
-        return -1;
     switch (pixmap_priv->type) {
     case GLAMOR_TEXTURE_DRM:
     case GLAMOR_TEXTURE_ONLY:
-- 
2.6.3



More information about the xorg-devel mailing list