radeonsi: cap VP9 support to Raven
authorLeo Liu <leo.liu@amd.com>
Wed, 14 Mar 2018 19:27:01 +0000 (15:27 -0400)
committerLeo Liu <leo.liu@amd.com>
Thu, 12 Apr 2018 15:15:13 +0000 (11:15 -0400)
Signed-off-by: Leo Liu <leo.liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeonsi/si_get.c

index 85cfb113383767614f0f2d44fe90e4f3c6dea3d3..761ca6f4cdff64f7cb3d21106d7d40edbd6fba28 100644 (file)
@@ -648,6 +648,10 @@ static int si_get_video_param(struct pipe_screen *screen,
                                return false;
                        }
                        return true;
+               case PIPE_VIDEO_FORMAT_VP9:
+                       if (sscreen->info.family < CHIP_RAVEN)
+                               return false;
+                       return true;
                default:
                        return false;
                }