summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-31 08:12:47 -0700
committerBen Skeggs <skeggsb@gmail.com>2008-02-15 13:50:27 +1100
commit4d3f3f749f0675c07de2809a9c0dc843f29e9873 (patch)
tree1d3a8d466388e0650cae3b9d40e21273df439181
parentc7403b18476c9a8f767fa7d33cb1efd643b30dd6 (diff)
Cell: set GALLIUM_CELL_VS env var to enable SPU-based vertex transformation
-rw-r--r--src/mesa/pipe/cell/ppu/cell_context.c8
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 4885cd0d2c..bbe1fd7a11 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;
}