summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_clear.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-03-15 09:44:52 +0000
committerKeith Whitwell <[email protected]>2010-03-15 09:44:52 +0000
commit42910ebe7b9748c0ecb6a597bae3e7d43c7e170f (patch)
treeb2b9c72dc47a0473304dc2db1b078d13b658df34 /src/gallium/drivers/nvfx/nvfx_clear.c
parent47bfbd452c93e6a8db013fb90d9f42210cf24889 (diff)
parent68e58a96e80865878e6881dc4d34fcc3ec24eb19 (diff)
Merge commit 'origin/master' into gallium-sampler-view
Conflicts: src/gallium/drivers/nv30/nv30_context.h src/gallium/drivers/nv30/nv30_state.c src/gallium/drivers/nv40/nv40_context.h src/gallium/drivers/nv40/nv40_state.c src/gallium/drivers/r300/r300_emit.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 00000000000..2be70fcee40
--- /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);
+}