mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 04:04:23 +08:00
pipe: Remove video update_decoder_target
Not used anymore. Reviewed-by: Leo Liu <leo.liu@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32095>
This commit is contained in:
parent
c324364f39
commit
c3ee2129ae
@ -296,27 +296,6 @@ trace_video_codec_fence_wait(struct pipe_video_codec *_codec,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
trace_video_codec_update_decoder_target(struct pipe_video_codec *_codec,
|
||||
struct pipe_video_buffer *_old,
|
||||
struct pipe_video_buffer *_updated)
|
||||
{
|
||||
struct trace_video_codec *tr_vcodec = trace_video_codec(_codec);
|
||||
struct pipe_video_codec *codec = tr_vcodec->video_codec;
|
||||
struct trace_video_buffer *tr_old = trace_video_buffer(_old);
|
||||
struct pipe_video_buffer *old = tr_old->video_buffer;
|
||||
struct trace_video_buffer *tr_updated = trace_video_buffer(_updated);
|
||||
struct pipe_video_buffer *updated = tr_updated->video_buffer;
|
||||
|
||||
trace_dump_call_begin("pipe_video_codec", "update_decoder_target");
|
||||
trace_dump_arg(ptr, codec);
|
||||
trace_dump_arg(ptr, old);
|
||||
trace_dump_arg(ptr, updated);
|
||||
trace_dump_call_end();
|
||||
|
||||
codec->update_decoder_target(codec, old, updated);
|
||||
}
|
||||
|
||||
struct pipe_video_codec *
|
||||
trace_video_codec_create(struct trace_context *tr_ctx,
|
||||
struct pipe_video_codec *video_codec)
|
||||
@ -349,7 +328,6 @@ trace_video_codec_create(struct trace_context *tr_ctx,
|
||||
TR_VC_INIT(flush);
|
||||
TR_VC_INIT(get_feedback);
|
||||
TR_VC_INIT(fence_wait);
|
||||
TR_VC_INIT(update_decoder_target);
|
||||
|
||||
#undef TR_VC_INIT
|
||||
|
||||
|
@ -2684,26 +2684,7 @@ static bool radeon_has_video_preferred_gfx12_swizzle_mode(struct radeon_decoder
|
||||
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* update render list when target buffer got updated, use the existing
|
||||
* index and update the new buffer to associate with it.
|
||||
*/
|
||||
static void radeon_dec_update_render_list(struct pipe_video_codec *decoder,
|
||||
struct pipe_video_buffer *old,
|
||||
struct pipe_video_buffer *updated)
|
||||
{
|
||||
struct radeon_decoder *dec = (struct radeon_decoder *)decoder;
|
||||
void *index = vl_video_buffer_get_associated_data(old, decoder);
|
||||
|
||||
vl_video_buffer_set_associated_data(updated, decoder, index,
|
||||
old->destroy_associated_data);
|
||||
for (int i = 0; i < ARRAY_SIZE(dec->render_pic_list); ++i) {
|
||||
if (dec->render_pic_list[i] == old) {
|
||||
dec->render_pic_list[i] = updated;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* create and HW decoder
|
||||
*/
|
||||
@ -2779,7 +2760,6 @@ struct pipe_video_codec *radeon_create_decoder(struct pipe_context *context,
|
||||
dec->base.flush = radeon_dec_flush;
|
||||
dec->base.fence_wait = radeon_dec_fence_wait;
|
||||
dec->base.destroy_fence = radeon_dec_destroy_fence;
|
||||
dec->base.update_decoder_target = radeon_dec_update_render_list;
|
||||
|
||||
dec->stream_type = stream_type;
|
||||
dec->stream_handle = si_vid_alloc_stream_handle();
|
||||
|
@ -144,20 +144,6 @@ struct pipe_video_codec
|
||||
void (*destroy_fence)(struct pipe_video_codec *codec,
|
||||
struct pipe_fence_handle *fence);
|
||||
|
||||
/**
|
||||
* Update target buffer address.
|
||||
*
|
||||
* Due to reallocation, target buffer address has changed, and the
|
||||
* changed buffer will need to update to decoder so that when this buffer
|
||||
* used as a reference frame, decoder can obtain its recorded information.
|
||||
* Failed updating this buffer will miss reference frames and
|
||||
* cause image corruption in the sebsequent output.
|
||||
* If no target buffer change, this call is not necessary.
|
||||
*/
|
||||
void (*update_decoder_target)(struct pipe_video_codec *codec,
|
||||
struct pipe_video_buffer *old,
|
||||
struct pipe_video_buffer *updated);
|
||||
|
||||
/**
|
||||
* Gets the bitstream headers for a given pipe_picture_desc
|
||||
* of an encode operation
|
||||
|
Loading…
Reference in New Issue
Block a user