From de427fac6912a625f7e4d8b982a1f7a1ba80dfbe Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 2 Jul 2009 15:41:43 +1000 Subject: radeon/dri2: fix dri2 - needs newest libdrm_radeon --- src/radeon_dri2.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c index 133859f3..f43490e8 100644 --- a/src/radeon_dri2.c +++ b/src/radeon_dri2.c @@ -97,7 +97,9 @@ radeon_dri2_create_buffers(DrawablePtr drawable, depth_pixmap = pixmap; } driver_priv = exaGetPixmapDriverPrivate(pixmap); - buffers[i].name = radeon_gem_name_bo(driver_priv->bo); + r = radeon_gem_get_kernel_name(driver_priv->bo, &buffers[i].name); + if (r) + return r; buffers[i].attachment = attachments[i]; buffers[i].pitch = pixmap->devKind; @@ -156,7 +158,10 @@ radeon_dri2_create_buffer(DrawablePtr drawable, depth_pixmap = pixmap; } driver_priv = exaGetPixmapDriverPrivate(pixmap); - buffers->name = radeon_gem_name_bo(driver_priv->bo); + r = radeon_gem_get_kernel_name(driver_priv->bo, &buffers->name); + if (r) + return NULL; + buffers->attachment = attachment; buffers->pitch = pixmap->devKind; buffers->cpp = pixmap->drawable.bitsPerPixel / 8; -- cgit v1.2.3