summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
authorBoyuan Zhang <[email protected]>2018-02-27 17:29:44 -0500
committerLeo Liu <[email protected]>2018-03-02 12:04:36 -0500
commit6a62e455f2a703125127161f4c39b98947e8a0f3 (patch)
tree7fa5fcee0e4a140e876c139abffdecf2b5fcb29e /src/gallium/drivers/radeonsi
parentf9bc48d41d99f2cd4d603561b35fa5c6aedaf169 (diff)
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: b38b208ff8886e799d6a2 "radeonsi:create uvd hevc enc entry" Signed-off-by: Boyuan Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/si_uvd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_uvd.c b/src/gallium/drivers/radeonsi/si_uvd.c
index 3906bbdfb82..b6cb4cb69e2 100644
--- a/src/gallium/drivers/radeonsi/si_uvd.c
+++ b/src/gallium/drivers/radeonsi/si_uvd.c
@@ -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);