From: Brian Paul Date: Thu, 16 Oct 2008 17:48:05 +0000 (-0600) Subject: cell: CELL_NUM_SPUS env var X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8bff2fccc9774e3f3af3c0f8ea345037051cf40e;p=mesa.git cell: CELL_NUM_SPUS env var --- diff --git a/src/gallium/drivers/cell/ppu/cell_context.c b/src/gallium/drivers/cell/ppu/cell_context.c index 097dbcfdc84..4dad490ce1a 100644 --- a/src/gallium/drivers/cell/ppu/cell_context.c +++ b/src/gallium/drivers/cell/ppu/cell_context.c @@ -160,6 +160,10 @@ cell_create_context(struct pipe_screen *screen, printf("Cell: found %d Cell(s) with %u SPUs\n", cell->num_cells, cell->num_spus); } + if (getenv("CELL_NUM_SPUS")) { + cell->num_spus = atoi(getenv("CELL_NUM_SPUS")); + assert(cell->num_spus > 0); + } cell_start_spus(cell);