From: Dave Airlie Date: Thu, 29 Jan 2009 13:01:41 +0000 (+1000) Subject: r200: avoid setting variable on kernel mm setup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31a112e6e81246944bc96b8d095960dd0f96c83c;p=mesa.git r200: avoid setting variable on kernel mm setup --- diff --git a/src/mesa/drivers/dri/r200/r200_context.c b/src/mesa/drivers/dri/r200/r200_context.c index d8e28cd7531..9f1edd39d3d 100644 --- a/src/mesa/drivers/dri/r200/r200_context.c +++ b/src/mesa/drivers/dri/r200/r200_context.c @@ -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 );