diff options
author | Marek Olšák <[email protected]> | 2012-12-20 13:08:00 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-01-04 14:05:47 +0100 |
commit | 5665deeaea853640162cd4a71b10504f37ecd98d (patch) | |
tree | e865ac88753be50490ff3c73ad467206fbc00d31 /src/gallium | |
parent | 53d232d2232c38bc81c3c23e51b3a3580e41c18d (diff) |
gallium/u_blitter: fix blitting TEXTURE_CUBE_ARRAY with a non-zero cube index
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 5 |
1 files changed, 5 insertions, 0 deletions
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*/ |