diff options
author | Dave Airlie <airlied@redhat.com> | 2009-07-02 15:41:43 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-07-02 15:41:43 +1000 |
commit | de427fac6912a625f7e4d8b982a1f7a1ba80dfbe (patch) | |
tree | b9697c0ad4cab2095aadb874eab110bfb681d4b9 /src/radeon_dri2.c | |
parent | 2b671adba54ebff1756dd990123f4bade6e35d61 (diff) |
radeon/dri2: fix dri2 - needs newest libdrm_radeon
Diffstat (limited to 'src/radeon_dri2.c')
-rw-r--r-- | src/radeon_dri2.c | 9 |
1 files 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; |