cell: insert a (disabled) call to spe_cpu_info_get()
authorBrian <brian.paul@tungstengraphics.com>
Wed, 27 Feb 2008 03:12:29 +0000 (20:12 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 27 Feb 2008 03:13:36 +0000 (20:13 -0700)
Found on the Cell devel forum, but doesn't appear to be available in SDK 2.1.

src/gallium/drivers/cell/ppu/cell_context.c

index 98c314f..5cbc922 100644 (file)
@@ -228,6 +228,9 @@ cell_create_context(struct pipe_winsys *winsys, struct cell_winsys *cws)
     * SPU stuff
     */
    cell->num_spus = 6;
+   /* XXX is this in SDK 3.0 only?
+   cell->num_spus = spe_cpu_info_get(SPE_COUNT_PHYSICAL_SPES, -1);
+   */
 
    cell_start_spus(cell);