Browse Source

vl/video_buffer: fix height of interlaced video buffers

Signed-off-by: Christian König <deathsimple@vodafone.de>
tags/i965-primitive-restart-v2
Christian König 13 years ago
parent
commit
4ccae0dfaa
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      src/gallium/auxiliary/vl/vl_video_buffer.c

+ 8
- 2
src/gallium/auxiliary/vl/vl_video_buffer.c View File

@@ -321,7 +321,7 @@ vl_video_buffer_create(struct pipe_context *pipe,
const struct pipe_video_buffer *tmpl)
{
const enum pipe_format *resource_formats;
struct pipe_video_buffer templat;
struct pipe_video_buffer templat, *result;
bool pot_buffers;

assert(pipe);
@@ -347,11 +347,17 @@ vl_video_buffer_create(struct pipe_context *pipe,
if (tmpl->interlaced)
templat.height /= 2;

return vl_video_buffer_create_ex
result = vl_video_buffer_create_ex
(
pipe, &templat, resource_formats,
tmpl->interlaced ? 2 : 1, PIPE_USAGE_STATIC
);


if (result && tmpl->interlaced)
result->height *= 2;

return result;
}

struct pipe_video_buffer *

Loading…
Cancel
Save