summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_blit.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2013-09-17 19:22:44 +0100
committerJosé Fonseca <[email protected]>2013-09-18 11:24:59 +0100
commitd8c7e13886be6056e777a26a59f6c010cf880ed0 (patch)
tree023bb6e3c3aa61f7d5485e4f5ba9f968e725481a /src/gallium/auxiliary/util/u_blit.h
parentfb1d992da4c364f56ffeae5a96b6186ed8f11728 (diff)
util/u_blit: Support blits from cubemaps.
By calling util_map_texcoords2d_onto_cubemap. A new parameter for util_blit_pixels_tex is necessary, as pipe_sampler_view::first_layer is always supposed to point to the first face when sampling from cubemaps. Reviewed-by: Zack Rusin <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blit.h')
-rw-r--r--src/gallium/auxiliary/util/u_blit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blit.h b/src/gallium/auxiliary/util/u_blit.h
index 56ab0308305..bfcd1bb28c8 100644
--- a/src/gallium/auxiliary/util/u_blit.h
+++ b/src/gallium/auxiliary/util/u_blit.h
@@ -73,6 +73,7 @@ util_blit_pixels_tex(struct blit_state *ctx,
struct pipe_sampler_view *src_sampler_view,
int srcX0, int srcY0,
int srcX1, int srcY1,
+ unsigned src_face,
struct pipe_surface *dst,
int dstX0, int dstY0,
int dstX1, int dstY1,