From e3ac293daac1773631911182622b6732f68dc9f1 Mon Sep 17 00:00:00 2001 From: Christian König Date: Fri, 26 Apr 2013 11:49:55 +0200 Subject: r600/uvd: stop advertising MPEG4 on UVD 2.x chips v2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit That is just not supported by the hardware. v2: fix compare Signed-off-by: Christian König Reviewed-by: Alex Deucher --- src/gallium/drivers/r600/r600_uvd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gallium/drivers/r600/r600_uvd.c') diff --git a/src/gallium/drivers/r600/r600_uvd.c b/src/gallium/drivers/r600/r600_uvd.c index c1de49787a0..c4c04a84b3d 100644 --- a/src/gallium/drivers/r600/r600_uvd.c +++ b/src/gallium/drivers/r600/r600_uvd.c @@ -177,3 +177,17 @@ struct pipe_video_decoder *r600_uvd_create_decoder(struct pipe_context *context, width, height, max_references, expect_chunked_decode, ctx->ws, r600_uvd_set_dtb); } + +int r600_uvd_get_video_param(struct pipe_screen *screen, + enum pipe_video_profile profile, + enum pipe_video_cap param) +{ + struct r600_screen *rscreen = (struct r600_screen *)screen; + + /* No support for MPEG4 on UVD 2.x */ + if (param == PIPE_VIDEO_CAP_SUPPORTED && rscreen->family < CHIP_CEDAR && + u_reduce_video_profile(profile) == PIPE_VIDEO_CODEC_MPEG4) + return false; + + return ruvd_get_video_param(screen, profile, param); +} -- cgit v1.2.3