diff options
author | Rico Schüller <[email protected]> | 2013-08-14 13:17:22 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2013-08-14 13:20:01 +0200 |
commit | d1ba1055d98c246d1ee9d9c14706bb9fba6a98c7 (patch) | |
tree | 7e3317f7eb5d30d2ccccce0e84a40ea4e721e37e /src/gallium/drivers/radeonsi | |
parent | 830f4df993b41fc90c776b19f77f77a29ce0e7f4 (diff) |
vl: Add support for max level query v2
This patch adds the level query support to the video decoders
and uses some more reasonable defaults.
v2: (ck) add commit message
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_pipe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c index 69b9ca97898..3c736792c64 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c @@ -546,6 +546,8 @@ static int r600_get_video_param(struct pipe_screen *screen, return vl_video_buffer_max_size(screen); case PIPE_VIDEO_CAP_PREFERED_FORMAT: return PIPE_FORMAT_NV12; + case PIPE_VIDEO_CAP_MAX_LEVEL: + return vl_level_supported(screen, profile); default: return 0; } |