Cell: set GALLIUM_CELL_VS env var to enable SPU-based vertex transformation
authorBrian <brian.paul@tungstengraphics.com>
Thu, 31 Jan 2008 15:12:47 +0000 (08:12 -0700)
committerBen Skeggs <skeggsb@gmail.com>
Fri, 15 Feb 2008 02:50:27 +0000 (13:50 +1100)
src/mesa/pipe/cell/ppu/cell_context.c

index 4885cd0d2c755c454d2a6e5d99fdc7b8014ff348..bbe1fd7a111a483c837b1e2eb0e0d81bf78bf80e 100644 (file)
@@ -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;
 }