Displaying 1 result from an estimated 1 matches for "nv50tcl_clear_color_bits".
2009 Apr 10
0
[PATCH/Gallium] nv50_clear again (might work better)
...@@
#include "nv50_context.h"
+/* If clearing the stencil buffer is not requested, NVIDIA clears both
+ anyway as long as stencil testing is off. */
+#define NV50TCL_CLEAR_DEPTH_BITS 0x01
+#define NV50TCL_CLEAR_STENCIL_BITS 0x02
+#define NV50TCL_CLEAR_DEPTH_STENCIL_BITS 0x03
+#define NV50TCL_CLEAR_COLOR_BITS(i) (0x3c + (0x40 * (i)))
+
void
nv50_clear(struct pipe_context *pipe, unsigned buffers,
const float *rgba, double depth, unsigned stencil)
@@ -40,26 +47,32 @@ nv50_clear(struct pipe_context *pipe, unsigned buffers,
return;
if (buffers & PIPE_CLEAR_COLOR) {
- BEGIN_RING(chan, tesla...