diff options
author | Christian König <[email protected]> | 2016-07-07 11:20:30 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2016-07-08 21:03:31 +0200 |
commit | 36df04dac4a2f8a714f2497465cc983dab849246 (patch) | |
tree | d6d619df4aec73f98acbe018ad17537bbe59acd4 /src/gallium/drivers/radeon/radeon_uvd.c | |
parent | 5290bf43c8024561095ab96b54cd09b80b135528 (diff) |
radeon/uvd: move polaris fw check into radeon_video.c v2
It's actually not very clever to claim to support H.264
and then fail to create a decoder.
v2: prefix FW macro with UVD_.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Leo Liu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_uvd.c')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_uvd.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index 72234175663..52658fa2393 100644 --- a/src/gallium/drivers/radeon/radeon_uvd.c +++ b/src/gallium/drivers/radeon/radeon_uvd.c @@ -60,8 +60,6 @@ #define FB_BUFFER_SIZE_TONGA (2048 * 64) #define IT_SCALING_TABLE_SIZE 992 -#define FW_1_66_16 ((1 << 24) | (66 << 16) | (16 << 8)) - /* UVD decoder representation */ struct ruvd_decoder { struct pipe_video_codec base; @@ -1185,12 +1183,6 @@ struct pipe_video_codec *ruvd_create_decoder(struct pipe_context *context, height = align(height, VL_MACROBLOCK_HEIGHT); break; case PIPE_VIDEO_FORMAT_MPEG4_AVC: - if ((info.family == CHIP_POLARIS10 || info.family == CHIP_POLARIS11) && - info.uvd_fw_version < FW_1_66_16 ) { - RVID_ERR("POLARIS10/11 firmware version need to be updated.\n"); - return NULL; - } - width = align(width, VL_MACROBLOCK_WIDTH); height = align(height, VL_MACROBLOCK_HEIGHT); break; |