Displaying 1 result from an estimated 1 matches for "s_fb".
Did you mean:
s_f
2009 Apr 08
0
[PATCH/Gallium] nv50: update nv50_clear to new interface
...t;screen->tesla;
@@ -37,21 +42,45 @@ nv50_clear(struct pipe_context *pipe, struct pipe_surface *ps,
struct pipe_scissor_state sc, s_sc = nv50->scissor;
unsigned dirty = nv50->dirty;
+ /* if 'no buffers' case is possible, change this to if/return */
+ assert(buffers && (s_fb.nr_cbufs > 0 || s_fb.zsbuf != NULL));
+
nv50->dirty = 0;
+ fb.nr_cbufs = 0;
- if (ps->format == PIPE_FORMAT_Z24S8_UNORM ||
- ps->format == PIPE_FORMAT_Z16_UNORM) {
- fb.nr_cbufs = 0;
- fb.zsbuf = ps;
+ if (buffers & PIPE_CLEAR_COLOR) {
+ /* Should we clear all color buffer...