summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-03-22 21:52:06 +0100
committerChristian König <[email protected]>2011-03-22 21:52:06 +0100
commitf08d3bb59b862e5e176af11303e5068fdfa2100b (patch)
tree982a941f8e9c2c2902218a75bd29aa404eafa23f /src/gallium
parentba0bff85307c9b107cf432da05b39fd4ab242579 (diff)
[g3dvl] buffers must be aligned to macroblock size
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/vl/vl_mpeg12_context.c4
1 files 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);