panfrost: Enable YTR where allowed
[mesa.git] / src / gallium / drivers / r600 / radeon_vce.c
index 89ac8b276a63cb18211d046e235bdce55b12383d..cd7cdb24b8979ecc2edededd8c4e3bb6e141c46f 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
  */
@@ -131,12 +135,12 @@ static void sort_cpb(struct rvce_encoder *enc)
        }
 
        if (l1) {
-               LIST_DEL(&l1->list);
+               list_del(&l1->list);
                list_add(&l1->list, &enc->cpb_slots);
        }
 
        if (l0) {
-               LIST_DEL(&l0->list);
+               list_del(&l0->list);
                list_add(&l0->list, &enc->cpb_slots);
        }
 }
@@ -341,7 +345,7 @@ static void rvce_end_frame(struct pipe_video_codec *encoder,
        slot->frame_num = enc->pic.frame_num;
        slot->pic_order_cnt = enc->pic.pic_order_cnt;
        if (!enc->pic.not_referenced) {
-               LIST_DEL(&slot->list);
+               list_del(&slot->list);
                list_add(&slot->list, &enc->cpb_slots);
        }
 }
@@ -434,7 +438,6 @@ struct pipe_video_codec *rvce_create_encoder(struct pipe_context *context,
        }
 
        templat.buffer_format = PIPE_FORMAT_NV12;
-       templat.chroma_format = PIPE_VIDEO_CHROMA_FORMAT_420;
        templat.width = enc->base.width;
        templat.height = enc->base.height;
        templat.interlaced = false;