Add a fence_wait before destroying decoder to make sure destory message has
been processed by firmware.
Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Sajeesh Sidharthan <sajeesh.sidharthan@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20805>
map_msg_fb_it_probs_buf(dec);
rvcn_dec_message_destroy(dec);
send_msg_buf(dec);
- flush(dec, 0, NULL);
+ flush(dec, 0, &dec->destroy_fence);
+ dec->ws->fence_wait(dec->ws, dec->destroy_fence, PIPE_DEFAULT_DECODER_FEEDBACK_TIMEOUT_NS);
}
dec->ws->cs_destroy(&dec->cs);
unsigned cb_idx;
unsigned njctx;
struct pipe_fence_handle *prev_fence;
+ struct pipe_fence_handle *destroy_fence;
};
void send_cmd_dec(struct radeon_decoder *dec, struct pipe_video_buffer *target,