nouveau: set buffer format of video buffer
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 10 Aug 2013 08:10:28 +0000 (04:10 -0400)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Thu, 15 Aug 2013 13:15:04 +0000 (15:15 +0200)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nouveau_video.c

index 5c4ec0faf654cdf04c18674a756a7096e6198161..5377872077c319fabb08737124c2849ae56a7b86 100644 (file)
@@ -810,6 +810,7 @@ nouveau_video_buffer_create(struct pipe_context *pipe,
    buffer->base.get_sampler_view_components = nouveau_video_buffer_sampler_view_components;
    buffer->base.get_surfaces = nouveau_video_buffer_surfaces;
    buffer->base.chroma_format = templat->chroma_format;
+   buffer->base.buffer_format = templat->buffer_format;
    buffer->base.width = width;
    buffer->base.height = height;
    buffer->num_planes = 2;