diff options
author | Ian Romanick <[email protected]> | 2008-02-26 11:18:51 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2008-02-26 11:19:14 -0800 |
commit | 75dac3959f959f0227b4e172696ac43910f9257a (patch) | |
tree | 1dde53b2a44eeb447c0ccbd5b9ece72a53da82e5 /src/gallium/drivers/cell/ppu | |
parent | dbf12dcdb78aa251fe0d09b49aa661481727ecf6 (diff) |
cell: Multiple rendering contexts don't work yet
Log a message and forcibly exit. This prevents silly fools from
thinking there's a bug...instead of just an unimplemented feature. :)
Diffstat (limited to 'src/gallium/drivers/cell/ppu')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_spu.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_spu.c b/src/gallium/drivers/cell/ppu/cell_spu.c index 419e74dc402..973c0b1aa12 100644 --- a/src/gallium/drivers/cell/ppu/cell_spu.c +++ b/src/gallium/drivers/cell/ppu/cell_spu.c @@ -97,8 +97,18 @@ static void *cell_thread_function(void *arg) void cell_start_spus(struct cell_context *cell) { + static boolean one_time_init = FALSE; uint i, j; + + if (one_time_init) { + fprintf(stderr, "PPU: Multiple rendering contexts not yet supported " + "on Cell.\n"); + abort(); + } + + one_time_init = TRUE; + assert(cell->num_spus <= MAX_SPUS); ASSERT_ALIGN16(&cell_global.command[0]); |