From f3f03c67e90f962f67e7b58b7c7baff3be251cb1 Mon Sep 17 00:00:00 2001 From: Christian König Date: Wed, 1 Feb 2012 23:38:45 +0100 Subject: vl: add interlacing capabilities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let the driver control interlaced or progressive format of video buffers. Signed-off-by: Christian König --- src/gallium/drivers/nouveau/nouveau_video.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gallium/drivers/nouveau/nouveau_video.c') diff --git a/src/gallium/drivers/nouveau/nouveau_video.c b/src/gallium/drivers/nouveau/nouveau_video.c index 47d332a12b5..cfbf857a969 100644 --- a/src/gallium/drivers/nouveau/nouveau_video.c +++ b/src/gallium/drivers/nouveau/nouveau_video.c @@ -837,6 +837,12 @@ nouveau_screen_get_video_param(struct pipe_screen *pscreen, return vl_video_buffer_max_size(pscreen); case PIPE_VIDEO_CAP_PREFERED_FORMAT: return PIPE_FORMAT_NV12; + case PIPE_VIDEO_CAP_PREFERS_INTERLACED: + return false; + case PIPE_VIDEO_CAP_SUPPORTS_INTERLACED: + return false; + case PIPE_VIDEO_CAP_SUPPORTS_PROGRESSIVE: + return true; default: debug_printf("unknown video param: %d\n", param); return 0; -- cgit v1.2.3