mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
radeonsi: fix radeon create encoder return
Previous patch missed a "return" when trying to modify the create encoder
function, which made the whole logic fail. Therefore, add the return back.
Fixes: b38b208ff8 "radeonsi:create uvd hevc enc entry"
Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
parent
f9bc48d41d
commit
6a62e455f2
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ struct pipe_video_codec *si_uvd_create_decoder(struct pipe_context *context,
|
|||
|
||||
if (templ->entrypoint == PIPE_VIDEO_ENTRYPOINT_ENCODE) {
|
||||
if (vcn) {
|
||||
radeon_create_encoder(context, templ, ctx->b.ws, si_vce_get_buffer);
|
||||
return radeon_create_encoder(context, templ, ctx->b.ws, si_vce_get_buffer);
|
||||
} else {
|
||||
if (u_reduce_video_profile(templ->profile) == PIPE_VIDEO_FORMAT_HEVC)
|
||||
return radeon_uvd_create_encoder(context, templ, ctx->b.ws, si_vce_get_buffer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue