[Mesa-dev] [PATCH 07/14] gallium/u_blitter: fix blitting TEXTURE_CUBE_ARRAY with a non-zero cube index

Marek Olšák maraeo at gmail.com
Thu Dec 20 09:56:45 PST 2012


---
 src/gallium/auxiliary/util/u_blitter.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index 0948eab..0e4ce68 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*/
-- 
1.7.10.4



More information about the mesa-dev mailing list