mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 09:40:29 +01:00
cell: query number SPUs with spe_cpu_info_get()
This commit is contained in:
parent
67f615681c
commit
8bcbefb370
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue