summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-10-16 11:48:05 -0600
committerBrian Paul <[email protected]>2008-10-16 11:48:05 -0600
commit8bff2fccc9774e3f3af3c0f8ea345037051cf40e (patch)
tree695135b46934cea5efe85ffbc1ec2cc3e3d6b6f2 /src
parent5191429b15a3e7a7ef7cda499de8074c2c0df94f (diff)
cell: CELL_NUM_SPUS env var
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/cell/ppu/cell_context.c4
1 files changed, 4 insertions, 0 deletions
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);