diff options
author | Brian <[email protected]> | 2008-01-31 08:12:47 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-01-31 08:12:47 -0700 |
commit | 256486829f0bc2be7a986a6bdc08df5fc16b77d8 (patch) | |
tree | 89ce72f91e0a112a2270a37a9dd38d3d60bcf222 /src | |
parent | e82c9b867cc18af5da7375871a685f98d1c1527d (diff) |
Cell: set GALLIUM_CELL_VS env var to enable SPU-based vertex transformation
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/pipe/cell/ppu/cell_context.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/pipe/cell/ppu/cell_context.c b/src/mesa/pipe/cell/ppu/cell_context.c index 4885cd0d2c7..bbe1fd7a111 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; } |