diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-24 09:18:15 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-01-24 09:18:43 -0700 |
commit | 47b3afc53f25b1374afe38664c90404bce42ec22 (patch) | |
tree | 585141babb2d269aca65e9f98e0fe9e80245fd20 /src | |
parent | 6e2c3b3a494f7dd44e7718ee1c006848cd835100 (diff) |
Cell: use Cell driver by default if linux-cell is built
To disable the Cell driver and use softpipe instead, export GALLIUM_NOCELL=1
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/pipe/xlib/xm_winsys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/xlib/xm_winsys.c b/src/mesa/pipe/xlib/xm_winsys.c index 10dc09b13c..432431aca1 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) |