summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe/p_context.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-04-09 18:40:24 -0600
committerBrian Paul <brianp@vmware.com>2009-04-09 18:40:24 -0600
commit92d3b2a4da914a64bf0de4be4843a8524b1a8af6 (patch)
tree4be8629ba560e04361d73f12ead920459316c02f /src/gallium/include/pipe/p_context.h
parent20f3497e4b6756e330f7b3f54e8acaa1d6c92052 (diff)
gallium: comments for surface_copy(), surface_fill() in p_context.h
Diffstat (limited to 'src/gallium/include/pipe/p_context.h')
-rw-r--r--src/gallium/include/pipe/p_context.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
index 29095dcdc3..c5c839799e 100644
--- a/src/gallium/include/pipe/p_context.h
+++ b/src/gallium/include/pipe/p_context.h
@@ -192,14 +192,21 @@ struct pipe_context {
* Surface functions
*/
/*@{*/
+
+ /**
+ * Copy a block of pixels from one surface to another.
+ * The surfaces must be of the same format.
+ */
void (*surface_copy)(struct pipe_context *pipe,
struct pipe_surface *dest,
unsigned destx, unsigned desty,
- struct pipe_surface *src, /* don't make this const -
- need to map/unmap */
+ struct pipe_surface *src,
unsigned srcx, unsigned srcy,
unsigned width, unsigned height);
+ /**
+ * Fill a region of a surface with a constant value.
+ */
void (*surface_fill)(struct pipe_context *pipe,
struct pipe_surface *dst,
unsigned dstx, unsigned dsty,