radeon: Move si_get_pic_param to radeon_vce.c
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 21 Jan 2020 15:04:33 +0000 (16:04 +0100)
committerTimur Kristóf <timur.kristof@gmail.com>
Wed, 22 Jan 2020 08:36:16 +0000 (09:36 +0100)
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3488>

src/gallium/drivers/radeon/radeon_vce.c
src/gallium/drivers/radeon/radeon_vce.h

index 84d3c1e2fa4d80f907134ef917868d3b53697d71..652b4250654a3208afe50004a03ba7c2ee5205e0 100644 (file)
 #define FW_52_8_3 ((52 << 24) | (8 << 16) | (3 << 8))
 #define FW_53 (53 << 24)
 
+/* version specific function for getting parameters */
+static void (*si_get_pic_param)(struct rvce_encoder *enc,
+                                struct pipe_h264_enc_picture_desc *pic) = NULL;
+
 /**
  * flush commands to the hardware
  */
index cf625e6fed7b3fa4269886aceb2248efe0142a50..b5cfe1780616c020a2c1d276a70cf8ed8bd9777b 100644 (file)
@@ -437,10 +437,6 @@ void si_vce_50_init(struct rvce_encoder *enc);
 /* init vce fw 52 specific callbacks */
 void si_vce_52_init(struct rvce_encoder *enc);
 
-/* version specific function for getting parameters */
-void (*si_get_pic_param)(struct rvce_encoder *enc,
-                      struct pipe_h264_enc_picture_desc *pic);
-
 /* get parameters for vce 40.2.2 */
 void si_vce_40_2_2_get_param(struct rvce_encoder *enc,
                             struct pipe_h264_enc_picture_desc *pic);