From: Ian Romanick Date: Tue, 26 Feb 2008 19:18:51 +0000 (-0800) Subject: cell: Multiple rendering contexts don't work yet X-Git-Tag: 062012170305~17580^2~390^2~2455 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75dac3959f959f0227b4e172696ac43910f9257a;p=profile%2Fivi%2Fmesa.git 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. :) --- diff --git a/src/gallium/drivers/cell/ppu/cell_spu.c b/src/gallium/drivers/cell/ppu/cell_spu.c index 419e74d..973c0b1 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]);