Cell: emit state in cell_clear_surface() if dirty.
authorBrian <brian.paul@tungstengraphics.com>
Mon, 28 Jan 2008 20:02:11 +0000 (13:02 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 29 Jan 2008 01:18:46 +0000 (18:18 -0700)
Without this a program that does nothing but glClear() doesn't work.  We need
the framebuffer state.

src/mesa/pipe/cell/ppu/cell_clear.c

index e61bfd9b0fd6829d1fe81b425fe1c6552672e12f..07b908eec59eafc4b27466983b12f833a178e29a 100644 (file)
@@ -50,6 +50,10 @@ cell_clear_surface(struct pipe_context *pipe, struct pipe_surface *ps,
    struct cell_context *cell = cell_context(pipe);
    uint surfIndex;
 
+   if (cell->dirty)
+      cell_update_derived(cell);
+
+
    if (!cell->cbuf_map[0])
       cell->cbuf_map[0] = pipe_surface_map(ps);