From: Boyuan Zhang <[email protected]>
Signed-off-by: Boyuan Zhang <[email protected]>
---
src/gallium/drivers/radeonsi/si_uvd.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_uvd.c
b/src/gallium/drivers/radeonsi/si_uvd.c
index b6cb4cb..f0abc36 100644
--- a/src/gallium/drivers/radeonsi/si_uvd.c
+++ b/src/gallium/drivers/radeonsi/si_uvd.c
@@ -30,6 +30,7 @@
#include "radeon/radeon_uvd.h"
#include "radeon/radeon_vce.h"
#include "radeon/radeon_vcn_dec.h"
+#include "radeon/radeon_vcn_jpeg.h"
#include "radeon/radeon_vcn_enc.h"
#include "radeon/radeon_uvd_enc.h"
#include "util/u_video.h"
@@ -159,6 +160,11 @@ struct pipe_video_codec *si_uvd_create_decoder(struct
pipe_context *context,
}
}
- return (vcn) ? radeon_create_decoder(context, templ) :
+ if (vcn) {
+ if (u_reduce_video_profile(templ->profile) ==
PIPE_VIDEO_FORMAT_JPEG)
+ radeon_create_decoder_jpeg(context, templ);
+ else
+ radeon_create_decoder(context, templ);
+ } else
si_common_uvd_create_decoder(context, templ, si_uvd_set_dtb);
}
--
2.7.4
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev