r200: avoid setting variable on kernel mm setup
authorDave Airlie <airlied@redhat.com>
Thu, 29 Jan 2009 13:01:41 +0000 (23:01 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 29 Jan 2009 13:01:41 +0000 (23:01 +1000)
src/mesa/drivers/dri/r200/r200_context.c

index d8e28cd7531746dec1d30f8ff912b18e313b6616..9f1edd39d3db8c844d25f494f62daf425939439b 100644 (file)
@@ -365,7 +365,8 @@ GLboolean r200CreateContext( const __GLcontextModes *glVisual,
    }
 
 
-   rmesa->dma.buf0_address = rmesa->radeon.radeonScreen->buffers->list[0].address;
+   if (!rmesa->radeon.radeonScreen->kernel_mm)
+       rmesa->dma.buf0_address = rmesa->radeon.radeonScreen->buffers->list[0].address;
 
    (void) memset( rmesa->radeon.texture_heaps, 0, sizeof( rmesa->radeon.texture_heaps ) );
    make_empty_list( & rmesa->radeon.swapped );