summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_blit.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-09-02 17:58:52 +0100
committerBrian Paul <[email protected]>2009-09-03 16:07:45 -0600
commit862724d3c2761fe148d985e9205ebb1cc36f3011 (patch)
treef3f9b719aa0a5a053d8bc561d6acc7130b19f7de /src/gallium/auxiliary/util/u_blit.h
parent375a6b4c4a68fff0567b304fc24de78ea8250124 (diff)
util: add version of u_blit_pixels which takes a writemask
Values outside the writemask are set in the destination to {0,0,0,1}
Diffstat (limited to 'src/gallium/auxiliary/util/u_blit.h')
-rw-r--r--src/gallium/auxiliary/util/u_blit.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blit.h b/src/gallium/auxiliary/util/u_blit.h
index c35beceda8d..a102021529e 100644
--- a/src/gallium/auxiliary/util/u_blit.h
+++ b/src/gallium/auxiliary/util/u_blit.h
@@ -60,6 +60,17 @@ util_blit_pixels(struct blit_state *ctx,
int dstX1, int dstY1,
float z, uint filter);
+void
+util_blit_pixels_writemask(struct blit_state *ctx,
+ struct pipe_surface *src,
+ int srcX0, int srcY0,
+ int srcX1, int srcY1,
+ struct pipe_surface *dst,
+ int dstX0, int dstY0,
+ int dstX1, int dstY1,
+ float z, uint filter,
+ uint writemask);
+
extern void
util_blit_pixels_tex(struct blit_state *ctx,
struct pipe_texture *tex,