radeon/vcn: update for new vcn enc interface
authorBoyuan Zhang <boyuan.zhang@amd.com>
Wed, 13 Mar 2019 23:14:13 +0000 (19:14 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 19:51:12 +0000 (15:51 -0400)
Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeon/radeon_vcn_enc.h
src/gallium/drivers/radeon/radeon_vcn_enc_2_0.c

index e0a9576c2c1c31846cffde7f28efac8896d6acf5..fb800c3c6a3b949274c7bb3dbeda419ea3ec000e 100644 (file)
@@ -250,6 +250,7 @@ typedef struct rvcn_enc_quality_params_s
     uint32_t   vbaq_mode;
     uint32_t   scene_change_sensitivity;
     uint32_t   scene_change_min_idr_interval;
+    uint32_t   two_pass_search_center_map_mode;
 } rvcn_enc_quality_params_t;
 
 typedef struct rvcn_enc_direct_output_nalu_s
index 9f0102393830a2b3d1dfc81dfa9f4b3fd4cd6ce2..dfad95a4dd981278f23029033790e5034fcc8f83 100644 (file)
@@ -36,7 +36,7 @@
 #include "radeon_vcn_enc.h"
 
 #define RENCODE_FW_INTERFACE_MAJOR_VERSION             0
-#define RENCODE_FW_INTERFACE_MINOR_VERSION             0
+#define RENCODE_FW_INTERFACE_MINOR_VERSION             2
 
 #define RENCODE_IB_PARAM_SESSION_INFO                          0x00000001
 #define RENCODE_IB_PARAM_TASK_INFO                             0x00000002
@@ -71,11 +71,13 @@ static void radeon_enc_quality_params(struct radeon_encoder *enc)
        enc->enc_pic.quality_params.vbaq_mode = 0;
        enc->enc_pic.quality_params.scene_change_sensitivity = 0;
        enc->enc_pic.quality_params.scene_change_min_idr_interval = 0;
+       enc->enc_pic.quality_params.two_pass_search_center_map_mode = 0;
 
        RADEON_ENC_BEGIN(enc->cmd.quality_params);
        RADEON_ENC_CS(enc->enc_pic.quality_params.vbaq_mode);
        RADEON_ENC_CS(enc->enc_pic.quality_params.scene_change_sensitivity);
        RADEON_ENC_CS(enc->enc_pic.quality_params.scene_change_min_idr_interval);
+       RADEON_ENC_CS(enc->enc_pic.quality_params.two_pass_search_center_map_mode);
        RADEON_ENC_END();
 }