r600: Move get_pic_param to radeon_vce.c
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 21 Jan 2020 15:08:21 +0000 (16:08 +0100)
committerTimur Kristóf <timur.kristof@gmail.com>
Wed, 22 Jan 2020 08:36:23 +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/r600/radeon_vce.c
src/gallium/drivers/r600/radeon_vce.h

index 4051d73533d441dd00d8223d69c0a3e13dd290c8..16f48c694567c8404d44fbd46a18f3906faf0528 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 (*get_pic_param)(struct rvce_encoder *enc,
+                             struct pipe_h264_enc_picture_desc *pic) = NULL;
+
 /**
  * flush commands to the hardware
  */
index 71f028721b4a66102c87088b81c15cd7f74ad062..c5e054777635b25c423e926ed9aca0ff0b3e65c1 100644 (file)
@@ -443,10 +443,6 @@ void radeon_vce_50_init(struct rvce_encoder *enc);
 /* init vce fw 52 specific callbacks */
 void radeon_vce_52_init(struct rvce_encoder *enc);
 
-/* version specific function for getting parameters */
-void (*get_pic_param)(struct rvce_encoder *enc,
-                      struct pipe_h264_enc_picture_desc *pic);
-
 /* get parameters for vce 40.2.2 */
 void radeon_vce_40_2_2_get_param(struct rvce_encoder *enc,
                                  struct pipe_h264_enc_picture_desc *pic);