diff options
author | Timothy Arceri <[email protected]> | 2019-10-28 09:49:39 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2019-10-28 11:24:38 +0000 |
commit | 7ae1be102877c2623d16ff72a2ef198de6c301fe (patch) | |
tree | eaaea8484ea30be97dd6a4c62b186dfc8b583a5a /src/gallium/state_trackers | |
parent | 15e7f942787eda5dbf94ec2e03fe3074e3e11fd4 (diff) |
util: remove LIST_INITHEAD macro
Just use the inlined function directly. The macro was replaced with
the function in ebe304fa540f.
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
7 files changed, 16 insertions, 16 deletions
diff --git a/src/gallium/state_trackers/omx/bellagio/vid_dec_h264.c b/src/gallium/state_trackers/omx/bellagio/vid_dec_h264.c index e8f7aa5cf18..1a198a97e96 100644 --- a/src/gallium/state_trackers/omx/bellagio/vid_dec_h264.c +++ b/src/gallium/state_trackers/omx/bellagio/vid_dec_h264.c @@ -49,7 +49,7 @@ void vid_dec_h264_Init(vid_dec_PrivateType *priv) priv->EndFrame = vid_dec_h264_EndFrame; priv->Flush = vid_dec_h264_Flush; - LIST_INITHEAD(&priv->codec_data.h264.dpb_list); + list_inithead(&priv->codec_data.h264.dpb_list); priv->picture.h264.field_order_cnt[0] = priv->picture.h264.field_order_cnt[1] = INT_MAX; priv->first_buf_in_frame = true; } diff --git a/src/gallium/state_trackers/omx/bellagio/vid_dec_h265.c b/src/gallium/state_trackers/omx/bellagio/vid_dec_h265.c index 3242dbe11c8..0b8c17a165e 100644 --- a/src/gallium/state_trackers/omx/bellagio/vid_dec_h265.c +++ b/src/gallium/state_trackers/omx/bellagio/vid_dec_h265.c @@ -1002,7 +1002,7 @@ void vid_dec_h265_Init(vid_dec_PrivateType *priv) { priv->picture.base.profile = PIPE_VIDEO_PROFILE_HEVC_MAIN; - LIST_INITHEAD(&priv->codec_data.h265.dpb_list); + list_inithead(&priv->codec_data.h265.dpb_list); priv->codec_data.h265.ref_pic_set_list = (struct ref_pic_set *) CALLOC(MAX_NUM_REF_PICS, sizeof(struct ref_pic_set)); diff --git a/src/gallium/state_trackers/omx/bellagio/vid_enc.c b/src/gallium/state_trackers/omx/bellagio/vid_enc.c index 9f25be9fafe..0ba06a28bcf 100644 --- a/src/gallium/state_trackers/omx/bellagio/vid_enc.c +++ b/src/gallium/state_trackers/omx/bellagio/vid_enc.c @@ -235,10 +235,10 @@ static OMX_ERRORTYPE vid_enc_Constructor(OMX_COMPONENTTYPE *comp, OMX_STRING nam priv->scale.xWidth = OMX_VID_ENC_SCALING_WIDTH_DEFAULT; priv->scale.xHeight = OMX_VID_ENC_SCALING_WIDTH_DEFAULT; - LIST_INITHEAD(&priv->free_tasks); - LIST_INITHEAD(&priv->used_tasks); - LIST_INITHEAD(&priv->b_frames); - LIST_INITHEAD(&priv->stacked_tasks); + list_inithead(&priv->free_tasks); + list_inithead(&priv->used_tasks); + list_inithead(&priv->b_frames); + list_inithead(&priv->stacked_tasks); return OMX_ErrorNone; } @@ -658,7 +658,7 @@ static OMX_ERRORTYPE vid_enc_AllocateInBuffer(omx_base_PortType *port, OMX_INOUT return OMX_ErrorInsufficientResources; } - LIST_INITHEAD(&inp->tasks); + list_inithead(&inp->tasks); FREE((*buf)->pBuffer); r = enc_AllocateBackTexture(port, &inp->resource, &inp->transfer, &(*buf)->pBuffer); @@ -687,7 +687,7 @@ static OMX_ERRORTYPE vid_enc_UseInBuffer(omx_base_PortType *port, OMX_BUFFERHEAD return OMX_ErrorInsufficientResources; } - LIST_INITHEAD(&inp->tasks); + list_inithead(&inp->tasks); return OMX_ErrorNone; } diff --git a/src/gallium/state_trackers/omx/tizonia/h264dprc.c b/src/gallium/state_trackers/omx/tizonia/h264dprc.c index b900c75a57d..cac62a82e72 100644 --- a/src/gallium/state_trackers/omx/tizonia/h264dprc.c +++ b/src/gallium/state_trackers/omx/tizonia/h264dprc.c @@ -432,7 +432,7 @@ static OMX_ERRORTYPE h264d_prc_allocate_resources(void *ap_obj, OMX_U32 a_pid) return OMX_ErrorInsufficientResources; } - LIST_INITHEAD(&priv->codec_data.h264.dpb_list); + list_inithead(&priv->codec_data.h264.dpb_list); priv->video_buffer_map = util_hash_table_create(handle_hash, handle_compare); diff --git a/src/gallium/state_trackers/omx/tizonia/h264einport.c b/src/gallium/state_trackers/omx/tizonia/h264einport.c index 3f34e05e0b2..609a1782b6b 100644 --- a/src/gallium/state_trackers/omx/tizonia/h264einport.c +++ b/src/gallium/state_trackers/omx/tizonia/h264einport.c @@ -112,7 +112,7 @@ static OMX_ERRORTYPE h264e_inport_AllocateBuffer(const void * ap_obj, OMX_HANDLE return OMX_ErrorInsufficientResources; } - LIST_INITHEAD(&inp->tasks); + list_inithead(&inp->tasks); r = enc_AllocateBackTexture(ap_hdl, idx, &inp->resource, &inp->transfer, &(*buf)->pBuffer); @@ -143,7 +143,7 @@ static OMX_ERRORTYPE h264e_inport_UseBuffer(const void * ap_obj, OMX_HANDLETYPE return OMX_ErrorInsufficientResources; } - LIST_INITHEAD(&inp->tasks); + list_inithead(&inp->tasks); return OMX_ErrorNone; } diff --git a/src/gallium/state_trackers/omx/tizonia/h264eprc.c b/src/gallium/state_trackers/omx/tizonia/h264eprc.c index b6bba151399..a714d422e1d 100644 --- a/src/gallium/state_trackers/omx/tizonia/h264eprc.c +++ b/src/gallium/state_trackers/omx/tizonia/h264eprc.c @@ -426,10 +426,10 @@ static OMX_ERRORTYPE h264e_prc_create_encoder(void *ap_obj) if (!priv->t_pipe) return OMX_ErrorInsufficientResources; - LIST_INITHEAD(&priv->free_tasks); - LIST_INITHEAD(&priv->used_tasks); - LIST_INITHEAD(&priv->b_frames); - LIST_INITHEAD(&priv->stacked_tasks); + list_inithead(&priv->free_tasks); + list_inithead(&priv->used_tasks); + list_inithead(&priv->b_frames); + list_inithead(&priv->stacked_tasks); return OMX_ErrorNone; } diff --git a/src/gallium/state_trackers/omx/vid_enc_common.c b/src/gallium/state_trackers/omx/vid_enc_common.c index 3e8ca3202a6..0dfab5b1eb8 100644 --- a/src/gallium/state_trackers/omx/vid_enc_common.c +++ b/src/gallium/state_trackers/omx/vid_enc_common.c @@ -50,7 +50,7 @@ void enc_MoveTasks(struct list_head *from, struct list_head *to) from->next->prev = to->prev; from->prev->next = to; to->prev = from->prev; - LIST_INITHEAD(from); + list_inithead(from); } static void enc_GetPictureParamPreset(struct pipe_h264_enc_picture_desc *picture) |