diff options
author | José Fonseca <[email protected]> | 2013-09-17 19:22:44 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2013-09-18 11:24:59 +0100 |
commit | d8c7e13886be6056e777a26a59f6c010cf880ed0 (patch) | |
tree | 023bb6e3c3aa61f7d5485e4f5ba9f968e725481a /src/gallium/auxiliary/util/u_blit.h | |
parent | fb1d992da4c364f56ffeae5a96b6186ed8f11728 (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.h | 1 |
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, |