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>
This commit is contained in:
@@ -662,7 +662,6 @@ static void rdo(struct rvce_encoder *enc)
|
||||
|
||||
static void config(struct rvce_encoder *enc)
|
||||
{
|
||||
task_info(enc, 0x00000002, 0xffffffff);
|
||||
rate_control(enc);
|
||||
config_extension(enc);
|
||||
motion_estimation(enc);
|
||||
@@ -928,6 +927,7 @@ static void rvce_begin_frame(struct pipe_video_codec *encoder, struct pipe_video
|
||||
|
||||
if (need_rate_control) {
|
||||
session(enc);
|
||||
task_info(enc, 0x00000002, 0xffffffff);
|
||||
config(enc);
|
||||
flush(enc, PIPE_FLUSH_ASYNC, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user