fix chroma swizzle
authorChristian König <deathsimple@vodafone.de>
Thu, 17 Mar 2011 21:18:05 +0000 (22:18 +0100)
committerChristian König <deathsimple@vodafone.de>
Fri, 18 Mar 2011 23:06:46 +0000 (00:06 +0100)
src/gallium/auxiliary/vl/vl_mpeg12_context.c

index fb0418c5a47fadd966b0ddb5cd7a5972e79a7dc0..ce1c158e828d9a41ea0e7aedac3f4fd0575e5f92 100644 (file)
@@ -699,11 +699,11 @@ vl_create_mpeg12_context(struct pipe_context *pipe,
    }
 
    if(!vl_idct_init(&ctx->idct_cr, ctx->pipe, chroma_width, chroma_height,
-                    chroma_blocks_x, chroma_blocks_y, TGSI_SWIZZLE_Y, idct_matrix))
+                    chroma_blocks_x, chroma_blocks_y, TGSI_SWIZZLE_Z, idct_matrix))
       return false;
 
    if(!vl_idct_init(&ctx->idct_cb, ctx->pipe, chroma_width, chroma_height,
-                    chroma_blocks_x, chroma_blocks_y, TGSI_SWIZZLE_Z, idct_matrix))
+                    chroma_blocks_x, chroma_blocks_y, TGSI_SWIZZLE_Y, idct_matrix))
       return false;
 
    if (!vl_mpeg12_mc_renderer_init(&ctx->mc_renderer, ctx->pipe,