diff options
author | Jonathan Adamczewski <[email protected]> | 2009-01-06 08:02:55 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-01-06 08:02:55 -0700 |
commit | 52d5d25537a9291f7d247211d2881ed56edaca94 (patch) | |
tree | 383644ead31037473ee212b32e242dffe33c19e2 /src/gallium/drivers/cell | |
parent | b7257890dc8870d5fdce9d41a22fc89aac5add78 (diff) |
cell: replace 0 with -1 in SPE_COUNT_USABLE_SPES query
Diffstat (limited to 'src/gallium/drivers/cell')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_context.c b/src/gallium/drivers/cell/ppu/cell_context.c index 22d552d8e3d..8f502823f99 100644 --- a/src/gallium/drivers/cell/ppu/cell_context.c +++ b/src/gallium/drivers/cell/ppu/cell_context.c @@ -162,7 +162,7 @@ cell_create_context(struct pipe_screen *screen, */ /* This call only works with SDK 3.0. Anyone still using 2.1??? */ cell->num_cells = spe_cpu_info_get(SPE_COUNT_PHYSICAL_CPU_NODES, -1); - cell->num_spus = spe_cpu_info_get(SPE_COUNT_USABLE_SPES, 0); + cell->num_spus = spe_cpu_info_get(SPE_COUNT_USABLE_SPES, -1); if (cell->debug_flags) { printf("Cell: found %d Cell(s) with %u SPUs\n", cell->num_cells, cell->num_spus); |