[Mesa-dev] [PATCH 2/4] nouveau: set buffer format of video buffer

Ilia Mirkin imirkin at alum.mit.edu
Sat Aug 10 03:39:56 PDT 2013


Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---

I don't think anything looks at this right now, but seems good to store. (Also
ran into it with my vdpau attempt.)

 src/gallium/drivers/nouveau/nouveau_video.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/nouveau/nouveau_video.c b/src/gallium/drivers/nouveau/nouveau_video.c
index 9357508..2e7f9b1 100644
--- a/src/gallium/drivers/nouveau/nouveau_video.c
+++ b/src/gallium/drivers/nouveau/nouveau_video.c
@@ -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;
-- 
1.8.1.5



More information about the mesa-dev mailing list