From: Marek Olšák Date: Thu, 20 Dec 2012 12:08:00 +0000 (+0100) Subject: gallium/u_blitter: fix blitting TEXTURE_CUBE_ARRAY with a non-zero cube index X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5665deeaea853640162cd4a71b10504f37ecd98d;p=mesa.git gallium/u_blitter: fix blitting TEXTURE_CUBE_ARRAY with a non-zero cube index Reviewed-by: Brian Paul --- diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 0948eab816a..0e4ce684213 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -681,6 +681,11 @@ static void blitter_set_texcoords(struct blitter_context_priv *ctx, } break; + case PIPE_TEXTURE_CUBE_ARRAY: + for (i = 0; i < 4; i++) + ctx->vertices[i][1][3] = (float) (layer / 6); /*w*/ + break; + case PIPE_TEXTURE_2D: for (i = 0; i < 4; i++) { ctx->vertices[i][1][2] = (float) sample; /*r*/