summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-10-15 14:20:10 -0600
committerBrian Paul <[email protected]>2008-10-15 14:20:10 -0600
commit8bcbefb370ef8d0a6751636a28cd12b3e9cde7dc (patch)
tree28aaef45d85f884efff0a2c06d7a45066fd23e74 /src
parent67f615681c569264eab1bc901473c86cfc54e480 (diff)
cell: query number SPUs with spe_cpu_info_get()
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/cell/ppu/cell_context.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_context.c b/src/gallium/drivers/cell/ppu/cell_context.c
index f8d5eef3ace..358aa338fe7 100644
--- a/src/gallium/drivers/cell/ppu/cell_context.c
+++ b/src/gallium/drivers/cell/ppu/cell_context.c
@@ -153,10 +153,11 @@ cell_create_context(struct pipe_screen *screen,
/*
* SPU stuff
*/
- cell->num_spus = 6;
- /* XXX is this in SDK 3.0 only?
+ /* This call only works with SDK 3.0. Anyone still using 2.1??? */
cell->num_spus = spe_cpu_info_get(SPE_COUNT_PHYSICAL_SPES, -1);
- */
+ if (cell->debug_flags) {
+ printf("PPU: found %u SPUs\n", cell->num_spus);
+ }
cell_start_spus(cell);