From f08d3bb59b862e5e176af11303e5068fdfa2100b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20K=C3=B6nig?= Date: Tue, 22 Mar 2011 21:52:06 +0100 Subject: [PATCH] [g3dvl] buffers must be aligned to macroblock size --- src/gallium/auxiliary/vl/vl_mpeg12_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_context.c b/src/gallium/auxiliary/vl/vl_mpeg12_context.c index 404a6c0c11d..73e2a950bd4 100644 --- a/src/gallium/auxiliary/vl/vl_mpeg12_context.c +++ b/src/gallium/auxiliary/vl/vl_mpeg12_context.c @@ -740,8 +740,8 @@ vl_create_mpeg12_context(struct pipe_context *pipe, return NULL; } - ctx->buffer_width = pot_buffers ? util_next_power_of_two(width) : width; - ctx->buffer_height = pot_buffers ? util_next_power_of_two(height) : height; + ctx->buffer_width = pot_buffers ? util_next_power_of_two(width) : align(width, MACROBLOCK_WIDTH); + ctx->buffer_height = pot_buffers ? util_next_power_of_two(height) : align(height, MACROBLOCK_HEIGHT); if (!init_idct(ctx, ctx->buffer_width, ctx->buffer_height)) { ctx->pipe->destroy(ctx->pipe); -- 2.30.2