texenvprogram: fix for ARB_draw_buffers.
[mesa.git] / src / gallium / drivers / nv40 / nv40_clear.c
index 59efd620e3257a1218d8c430faa0bc9c996c4697..ddf13addf3b984e289e65ac22952762a6e6f6168 100644 (file)
@@ -1,13 +1,14 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
+#include "util/u_clear.h"
 
 #include "nv40_context.h"
 
 void
-nv40_clear(struct pipe_context *pipe, struct pipe_surface *ps,
-          unsigned clearValue)
+nv40_clear(struct pipe_context *pipe, unsigned buffers,
+           const float *rgba, double depth, unsigned stencil)
 {
-       pipe->surface_fill(pipe, ps, 0, 0, ps->width, ps->height, clearValue);
-       ps->status = PIPE_SURFACE_STATUS_CLEAR;
+       util_clear(pipe, &nv40_context(pipe)->framebuffer, buffers, rgba, depth,
+                  stencil);
 }