aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_uvd.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2013-04-26 11:49:55 +0200
committerChristian König <[email protected]>2013-04-26 15:35:36 +0200
commite3ac293daac1773631911182622b6732f68dc9f1 (patch)
treeb68726fa40ee0731f54c545bdcde11282f4ad752 /src/gallium/drivers/r600/r600_uvd.c
parent2c2c54b819d8e0bd940f56501a2c3699d7cc2397 (diff)
r600/uvd: stop advertising MPEG4 on UVD 2.x chips v2
That is just not supported by the hardware. v2: fix compare Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_uvd.c')
-rw-r--r--src/gallium/drivers/r600/r600_uvd.c14
1 files changed, 14 insertions, 0 deletions
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);
+}