summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvfx/nvfx_clear.c
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-02-20 20:04:54 +0100
committerYounes Manton <younes.m@gmail.com>2010-03-15 00:03:01 -0400
commitc5c7b69bda3fb49fd88b846feb6e65289a04488a (patch)
tree2a2c8912c8b6402a20eb24b937784a193c0233c9 /src/gallium/drivers/nvfx/nvfx_clear.c
parent6321a183319fdcb2ebee757b7f0922efe3f919db (diff)
nv30, nv40: unify identical nv[34]0_clear.c
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_clear.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_clear.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_clear.c b/src/gallium/drivers/nvfx/nvfx_clear.c
new file mode 100644
index 0000000000..2be70fcee4
--- /dev/null
+++ b/src/gallium/drivers/nvfx/nvfx_clear.c
@@ -0,0 +1,14 @@
+#include "pipe/p_context.h"
+#include "pipe/p_defines.h"
+#include "pipe/p_state.h"
+#include "util/u_clear.h"
+
+#include "nvfx_context.h"
+
+void
+nvfx_clear(struct pipe_context *pipe, unsigned buffers,
+ const float *rgba, double depth, unsigned stencil)
+{
+ util_clear(pipe, &nvfx_context(pipe)->framebuffer, buffers, rgba, depth,
+ stencil);
+}