projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
043fc00
)
Cell: emit state in cell_clear_surface() if dirty.
author
Brian
<brian.paul@tungstengraphics.com>
Mon, 28 Jan 2008 20:02:11 +0000
(13:02 -0700)
committer
Brian
<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
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/cell/ppu/cell_clear.c
b/src/mesa/pipe/cell/ppu/cell_clear.c
index
e61bfd9
..
07b908e
100644
(file)
--- 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);