radeon/vce: add firmware support for ver 53 and up
authorBoyuan Zhang <boyuan.zhang@amd.com>
Tue, 8 May 2018 18:35:06 +0000 (14:35 -0400)
committerLeo Liu <leo.liu@amd.com>
Fri, 11 May 2018 18:59:00 +0000 (14:59 -0400)
All vce firmwares with major version greater than or equal to 53 are supported

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
src/gallium/drivers/radeon/radeon_vce.c

index 22168b50e241754a239191e44a17d5875dddcdc1..6d1b1ff7879a1d11f3494d92b724848bff3b55a8 100644 (file)
@@ -506,7 +506,7 @@ struct pipe_video_codec *si_vce_create_encoder(struct pipe_context *context,
                break;
 
        default:
-               if ((sscreen->info.vce_fw_version & (0xff << 24)) == FW_53) {
+               if ((sscreen->info.vce_fw_version & (0xff << 24)) >= FW_53) {
                        si_vce_52_init(enc);
                        si_get_pic_param = si_vce_52_get_param;
                } else
@@ -542,7 +542,7 @@ bool si_vce_is_fw_version_supported(struct si_screen *sscreen)
        case FW_52_8_3:
                return true;
        default:
-               if ((sscreen->info.vce_fw_version & (0xff << 24)) == FW_53)
+               if ((sscreen->info.vce_fw_version & (0xff << 24)) >= FW_53)
                        return true;
                else
                        return false;