From: Brian Date: Thu, 31 Jan 2008 15:12:47 +0000 (-0700) Subject: Cell: set GALLIUM_CELL_VS env var to enable SPU-based vertex transformation X-Git-Tag: 062012170305~17580^2~390^2~2754 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=256486829f0bc2be7a986a6bdc08df5fc16b77d8;p=profile%2Fivi%2Fmesa.git Cell: set GALLIUM_CELL_VS env var to enable SPU-based vertex transformation --- diff --git a/src/mesa/pipe/cell/ppu/cell_context.c b/src/mesa/pipe/cell/ppu/cell_context.c index 4885cd0..bbe1fd7 100644 --- a/src/mesa/pipe/cell/ppu/cell_context.c +++ b/src/mesa/pipe/cell/ppu/cell_context.c @@ -162,8 +162,12 @@ cell_draw_create(struct cell_context *cell) { struct draw_context *draw = draw_create(); - draw->shader_queue_flush = cell_vertex_shader_queue_flush; - draw->driver_private = cell; + if (getenv("GALLIUM_CELL_VS")) { + /* plug in SPU-based vertex transformation code */ + draw->shader_queue_flush = cell_vertex_shader_queue_flush; + draw->driver_private = cell; + } + return draw; }