Mesa (pipe-video): [g3dvl] fix setting width, height and chroma format in video buffer

Christian König deathsimple at kemper.freedesktop.org
Wed Apr 27 08:12:35 PDT 2011


Module: Mesa
Branch: pipe-video
Commit: 559f6d6cf4a9469c2c6ccea482115f22080f185f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=559f6d6cf4a9469c2c6ccea482115f22080f185f

Author: Christian König <deathsimple at vodafone.de>
Date:   Wed Apr 27 12:59:30 2011 +0200

[g3dvl] fix setting width, height and chroma format in video buffer

---

 src/gallium/auxiliary/vl/vl_video_buffer.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/vl/vl_video_buffer.c b/src/gallium/auxiliary/vl/vl_video_buffer.c
index dccd7e9..976d228 100644
--- a/src/gallium/auxiliary/vl/vl_video_buffer.c
+++ b/src/gallium/auxiliary/vl/vl_video_buffer.c
@@ -180,6 +180,9 @@ vl_video_buffer_init(struct pipe_video_context *context,
    buffer->base.get_sampler_view_planes = vl_video_buffer_sampler_view_planes;
    buffer->base.get_sampler_view_components = vl_video_buffer_sampler_view_components;
    buffer->base.get_surfaces = vl_video_buffer_surfaces;
+   buffer->base.chroma_format = chroma_format;
+   buffer->base.width = width;
+   buffer->base.height = height;
    buffer->pipe = pipe;
    buffer->num_planes = 1;
 



More information about the mesa-commit mailing list