Cell: set GALLIUM_CELL_VS env var to enable SPU-based vertex transformation

This commit is contained in:
Brian 2008-01-31 08:12:47 -07:00 committed by Ben Skeggs
parent c7403b1847
commit 4d3f3f749f

View 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;
}