From: Brian Date: Thu, 24 Jan 2008 16:18:15 +0000 (-0700) Subject: Cell: use Cell driver by default if linux-cell is built X-Git-Tag: mesa-7.8~4139^2~390^2~2888 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47b3afc53f25b1374afe38664c90404bce42ec22;p=platform%2Fupstream%2Fmesa.git Cell: use Cell driver by default if linux-cell is built To disable the Cell driver and use softpipe instead, export GALLIUM_NOCELL=1 --- diff --git a/src/mesa/pipe/xlib/xm_winsys.c b/src/mesa/pipe/xlib/xm_winsys.c index 10dc09b..432431a 100644 --- a/src/mesa/pipe/xlib/xm_winsys.c +++ b/src/mesa/pipe/xlib/xm_winsys.c @@ -405,7 +405,7 @@ xm_surface_alloc(struct pipe_winsys *ws) xms->surface.winsys = ws; #ifdef GALLIUM_CELL - if (getenv("GALLIUM_CELL")) { + if (!getenv("GALLIUM_NOCELL")) { xms->tileSize = 32; /** probably temporary */ } #endif @@ -511,7 +511,7 @@ xmesa_create_pipe_context(XMesaContext xmesa, uint pixelformat) struct pipe_context *pipe; #ifdef GALLIUM_CELL - if (getenv("GALLIUM_CELL")) { + if (!getenv("GALLIUM_NOCELL")) { struct cell_winsys *cws = cell_get_winsys(pixelformat); pipe = cell_create_context(pws, cws); if (pipe)