r300g: add support for all missing non-FP sampler formats
[mesa.git] / src / gallium / drivers / r300 / r300_blit.h
index 740cbcdea5c032555bb4a2e143f652a1825586f0..029e4f98e7d0f632cb9dd21d88d6b5be4b01e785 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2008 Corbin Simpson <MostAwesomeDude@gmail.com>
+ * Copyright 2008 Marek Olšák <maraeo@gmail.com>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
 #ifndef R300_BLIT_H
 #define R300_BLIT_H
 
-#include "pipe/p_state.h"
+struct pipe_context;
+struct pipe_surface;
 
-#include "r300_context.h"
-#include "r300_cs.h"
+void r300_clear(struct pipe_context* pipe,
+                unsigned buffers,
+                const float* rgba,
+                double depth,
+                unsigned stencil);
 
-/* Forward declarations. */
-struct r300_context;
+void r300_surface_copy(struct pipe_context* pipe,
+                       struct pipe_surface* dst,
+                       unsigned dstx, unsigned dsty,
+                       struct pipe_surface* src,
+                       unsigned srcx, unsigned srcy,
+                       unsigned width, unsigned height);
 
-extern int r300_fill_blit(struct r300_context* r300,
-                          unsigned cpp,
-                          short dst_pitch,
-                          struct pipe_buffer* dst_buffer,
-                          unsigned dst_offset,
-                          short x, short y,
-                          short w, short h,
-                          unsigned color);
+void r300_surface_fill(struct pipe_context* pipe,
+                       struct pipe_surface* dst,
+                       unsigned dstx, unsigned dsty,
+                       unsigned width, unsigned height,
+                       unsigned value);
 
-#endif /* R300_BLIT_H */
\ No newline at end of file
+#endif /* R300_BLIT_H */