projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b725789
)
cell: replace 0 with -1 in SPE_COUNT_USABLE_SPES query
author
Jonathan Adamczewski
<jadamcze@utas.edu.au>
Tue, 6 Jan 2009 15:02:55 +0000
(08:02 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 6 Jan 2009 15:02:55 +0000
(08:02 -0700)
src/gallium/drivers/cell/ppu/cell_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/cell/ppu/cell_context.c
b/src/gallium/drivers/cell/ppu/cell_context.c
index 22d552d8e3d8fd98bfa7f14a739429b964d490b0..8f502823f99201139153e79627e7fe0e983eb67e 100644
(file)
--- 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);