drm/dri update

Steve O'Hara-Smith steve at sohara.org
Tue Jan 8 01:44:41 PST 2008


On 07 Jan 2008 22:31:56 GMT
Johannes Hofmann <Johannes.Hofmann at gmx.de> wrote:

> Hey,
> 
> I got it working with

	Great!

	I went for a variation viz:

--- drm_dma.c.orig      2008-01-07 14:35:13 +0000
+++ drm_dma.c   2008-01-08 09:21:33 +0000
@@ -81,8 +81,10 @@
                }
        }
 
-       free(dma->buflist, M_DRM);
-       free(dma->pagelist, M_DRM);
+       if (NULL != dma->buflist)
+               free(dma->buflist, M_DRM);
+       if (NULL != dma->pagelist)
+               free(dma->pagelist, M_DRM);
        free(dev->dma, M_DRM);
        dev->dma = NULL;
        DRM_SPINUNINIT(&dev->dma_lock);

	Just in case bufflist and/or pagelist ever do get populated. It
works although the glxgears performance isn't as good as I thought it would
be (~480 fps) - it is *much* better than without drm though.

-- 
C:>WIN                                      |   Directable Mirror Arrays
The computer obeys and wins.                | A better way to focus the sun
You lose and Bill collects.                 |    licences available see
                                            |    http://www.sohara.org/





More information about the Users mailing list