summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_clear.h
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-04-04 22:30:14 -0700
committerCorbin Simpson <[email protected]>2009-04-04 22:30:14 -0700
commita4a853e593c257d3b25f8229706d11b92e1ec8c8 (patch)
tree46f7af753d1ca73de76c45fa707c3edca4261fef /src/gallium/drivers/r300/r300_clear.h
parent7a164411ab678622d6f3194cf708b2884bfde90e (diff)
r300-gallium: Update clear() code.
We have a huge optimization opportunity, but for now we'll just use the util.
Diffstat (limited to 'src/gallium/drivers/r300/r300_clear.h')
-rw-r--r--src/gallium/drivers/r300/r300_clear.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_clear.h b/src/gallium/drivers/r300/r300_clear.h
index e24a0690c9b..cd5900565e8 100644
--- a/src/gallium/drivers/r300/r300_clear.h
+++ b/src/gallium/drivers/r300/r300_clear.h
@@ -20,8 +20,17 @@
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE. */
-#include "pipe/p_context.h"
+#ifndef R300_CLEAR_H
+#define R300_CLEAR_H
+
+#include "util/u_clear.h"
+
+#include "r300_context.h"
void r300_clear(struct pipe_context* pipe,
- struct pipe_surface* ps,
- unsigned color);
+ unsigned buffers,
+ const float* rgba,
+ double depth,
+ unsigned stencil);
+
+#endif /* R300_CLEAR_H */