radeon/vcn: add VP9 stream type for decoder
authorLeo Liu <leo.liu@amd.com>
Tue, 13 Mar 2018 13:40:15 +0000 (09:40 -0400)
committerLeo Liu <leo.liu@amd.com>
Thu, 12 Apr 2018 15:15:12 +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/radeon/radeon_vcn_dec.c
src/gallium/drivers/radeon/radeon_vcn_dec.h

index 48d79ffb9f99a234c431595dfce61841a75bca4a..ba65452f69d28a1efb1d33c31d00e5aa678bbdcb 100644 (file)
@@ -1227,6 +1227,9 @@ struct pipe_video_codec *radeon_create_decoder(struct pipe_context *context,
        case PIPE_VIDEO_FORMAT_HEVC:
                stream_type = RDECODE_CODEC_H265;
                break;
+       case PIPE_VIDEO_FORMAT_VP9:
+               stream_type = RDECODE_CODEC_VP9;
+               break;
        default:
                assert(0);
                break;
index accffef6d90cc1ae652d49470d0ee2d8c181548e..4efa6ab0274271624f06a50ba50686e336da9985 100644 (file)
@@ -62,6 +62,7 @@
 #define RDECODE_CODEC_MPEG4                            0x00000004
 #define RDECODE_CODEC_H264_PERF                        0x00000007
 #define RDECODE_CODEC_H265                             0x00000010
+#define RDECODE_CODEC_VP9                              0x00000011
 
 #define RDECODE_ARRAY_MODE_LINEAR                      0x00000000
 #define RDECODE_ARRAY_MODE_MACRO_LINEAR_MICRO_TILED    0x00000001