radeon/vcn: adding engine type for new fw interface
Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
committed by
Marek Olšák
parent
936e9fa951
commit
26099bc35d
@@ -42,6 +42,8 @@
|
||||
#define RENCODE_IF_MINOR_VERSION_MASK 0x0000FFFF
|
||||
#define RENCODE_IF_MINOR_VERSION_SHIFT 0
|
||||
|
||||
#define RENCODE_ENGINE_TYPE_ENCODE 1
|
||||
|
||||
#define RENCODE_ENCODE_STANDARD_HEVC 0
|
||||
#define RENCODE_ENCODE_STANDARD_H264 1
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ static void radeon_enc_session_info(struct radeon_encoder *enc)
|
||||
RADEON_ENC_BEGIN(enc->cmd.session_info);
|
||||
RADEON_ENC_CS(enc->enc_pic.session_info.interface_version);
|
||||
RADEON_ENC_READWRITE(enc->si->res->buf, enc->si->res->domains, 0x0);
|
||||
RADEON_ENC_CS(RENCODE_ENGINE_TYPE_ENCODE);
|
||||
RADEON_ENC_END();
|
||||
}
|
||||
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
#include "radeon_video.h"
|
||||
#include "radeon_vcn_enc.h"
|
||||
|
||||
#define RENCODE_FW_INTERFACE_MAJOR_VERSION 0
|
||||
#define RENCODE_FW_INTERFACE_MINOR_VERSION 2
|
||||
#define RENCODE_FW_INTERFACE_MAJOR_VERSION 1
|
||||
#define RENCODE_FW_INTERFACE_MINOR_VERSION 1
|
||||
|
||||
#define RENCODE_IB_PARAM_SESSION_INFO 0x00000001
|
||||
#define RENCODE_IB_PARAM_TASK_INFO 0x00000002
|
||||
|
||||
Reference in New Issue
Block a user