From: Brian Date: Mon, 28 Jan 2008 20:02:11 +0000 (-0700) Subject: Cell: emit state in cell_clear_surface() if dirty. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41899c70a72cd6206acec6c4c41953fea17d4ecf;p=mesa.git Cell: emit state in cell_clear_surface() if dirty. Without this a program that does nothing but glClear() doesn't work. We need the framebuffer state. --- diff --git a/src/mesa/pipe/cell/ppu/cell_clear.c b/src/mesa/pipe/cell/ppu/cell_clear.c index e61bfd9b0fd..07b908eec59 100644 --- a/src/mesa/pipe/cell/ppu/cell_clear.c +++ b/src/mesa/pipe/cell/ppu/cell_clear.c @@ -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);