radeonsi/vce: Only send one task per IB

There is no need to use second task for config when creating the
session, also it doesn't work now as we don't set the next task
offset in task info anymore.

Fixes: 9ca1cda2be ("radeonsi/vce: Cleanup")
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34894>
(cherry picked from commit ad96031ec6)
This commit is contained in:
David Rosca 2025-05-09 12:06:13 +02:00 committed by Eric Engestrom
parent eb020edc6b
commit 59e73a78bb
3 changed files with 2 additions and 2 deletions

View file

@ -4224,7 +4224,7 @@
"description": "radeonsi/vce: Only send one task per IB",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "9ca1cda2bece5e834c7e53007aabe04ed1118554",
"notes": null

View file

@ -180,6 +180,7 @@ static void rvce_begin_frame(struct pipe_video_codec *encoder, struct pipe_video
if (need_rate_control) {
enc->session(enc);
enc->task_info(enc, 0x00000002, 0xffffffff);
enc->config(enc);
flush(enc, PIPE_FLUSH_ASYNC, NULL);
}

View file

@ -510,7 +510,6 @@ static void rate_control(struct rvce_encoder *enc)
static void config(struct rvce_encoder *enc)
{
enc->task_info(enc, 0x00000002, 0xffffffff);
enc->rate_control(enc);
enc->config_extension(enc);
enc->motion_estimation(enc);