From efc7fda4627919b5355952d955ee4a2c98505e56 Mon Sep 17 00:00:00 2001 From: Christian König Date: Tue, 12 Jul 2011 00:12:12 +0200 Subject: [g3dvl] add some more PIPE_VIDEO_CAPs --- src/gallium/drivers/nvfx/nvfx_screen.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gallium/drivers/nvfx') diff --git a/src/gallium/drivers/nvfx/nvfx_screen.c b/src/gallium/drivers/nvfx/nvfx_screen.c index 4901e3b2bf7..d85c0a6da41 100644 --- a/src/gallium/drivers/nvfx/nvfx_screen.c +++ b/src/gallium/drivers/nvfx/nvfx_screen.c @@ -3,6 +3,7 @@ #include "util/u_format.h" #include "util/u_format_s3tc.h" #include "util/u_simple_screen.h" +#include "vl/vl_decoder.h" #include "vl/vl_video_buffer.h" #include "nouveau/nouveau_screen.h" @@ -213,8 +214,13 @@ nvfx_screen_get_video_param(struct pipe_screen *screen, enum pipe_video_cap param) { switch (param) { + case PIPE_VIDEO_CAP_SUPPORTED: + return vl_profile_supported(screen, profile); case PIPE_VIDEO_CAP_NPOT_TEXTURES: return 0; + case PIPE_VIDEO_CAP_MAX_WIDTH: + case PIPE_VIDEO_CAP_MAX_HEIGHT: + return vl_video_buffer_max_size(screen); default: return 0; } -- cgit v1.2.3