Displaying 1 result from an estimated 1 matches for "nv50tcl_clear_buff".
2009 Apr 10
0
[PATCH/Gallium] nv50_clear again (might work better)
...;
BEGIN_RING(chan, tesla, NV50TCL_CLEAR_DEPTH, 1);
OUT_RING (chan, fui(depth));
BEGIN_RING(chan, tesla, NV50TCL_CLEAR_STENCIL, 1);
OUT_RING (chan, stencil & 0xff);
-
- mode |= 0x03;
+ mode |= NV50TCL_CLEAR_DEPTH_STENCIL_BITS;
}
+ assert(mode != 0);
+
BEGIN_RING(chan, tesla, NV50TCL_CLEAR_BUFFERS, 1);
OUT_RING (chan, mode);
+
+ for (i = 1; i < fb->nr_cbufs; ++i) {
+ BEGIN_RING(chan, tesla, NV50TCL_CLEAR_BUFFERS, 1);
+ OUT_RING (chan, NV50TCL_CLEAR_COLOR_BITS(i));
+ }
}
-------