summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_uvd.c
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2018-10-05 09:19:45 -0400
committerMarek Olšák <[email protected]>2019-07-03 15:51:12 -0400
commita38268ea5b024151596dd8afac9bc53a117982b3 (patch)
tree8b687511c63daec419f7527fc9537993f1289b71 /src/gallium/drivers/radeonsi/si_uvd.c
parent84e7ee421f66ba903fb8113bd1dafbbd03e65183 (diff)
radeonsi/uvd: allow newer HW to create HW decoder
Previously it was Raven only allowed to do so Signed-off-by: Leo Liu <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_uvd.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_uvd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_uvd.c b/src/gallium/drivers/radeonsi/si_uvd.c
index 8c9553acbf3..94d81a4ab6c 100644
--- a/src/gallium/drivers/radeonsi/si_uvd.c
+++ b/src/gallium/drivers/radeonsi/si_uvd.c
@@ -146,8 +146,7 @@ struct pipe_video_codec *si_uvd_create_decoder(struct pipe_context *context,
const struct pipe_video_codec *templ)
{
struct si_context *ctx = (struct si_context *)context;
- bool vcn = ctx->family == CHIP_RAVEN ||
- ctx->family == CHIP_RAVEN2;
+ bool vcn = ctx->family >= CHIP_RAVEN;
if (templ->entrypoint == PIPE_VIDEO_ENTRYPOINT_ENCODE) {
if (vcn) {