mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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 commitad96031ec6)
This commit is contained in:
parent
984786396d
commit
66c3193e4a
3 changed files with 2 additions and 2 deletions
|
|
@ -1054,7 +1054,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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue