radeon/vcn: exclude raven2 from vcn 2.0 encode initialization
authorIndrajit Das <indrajit-kumar.das@amd.com>
Tue, 10 Sep 2019 09:22:14 +0000 (14:52 +0530)
committerLeo Liu <leo.liu@amd.com>
Fri, 13 Sep 2019 13:18:43 +0000 (09:18 -0400)
Signed-off-by: Indrajit Das <indrajit-kumar.das@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
src/gallium/drivers/radeon/radeon_vcn_enc.c

index 0b6fe3344a5562f980447326f0c00af1cec525c8..aa9182f273b6bf4832c382365de530d6a470a0d1 100644 (file)
@@ -411,7 +411,7 @@ struct pipe_video_codec *radeon_create_encoder(struct pipe_context *context,
                goto error;
        }
 
-       if (sscreen->info.family <= CHIP_RAVEN)
+       if (sscreen->info.family <= CHIP_RAVEN2)
                radeon_enc_1_2_init(enc);
        else
                radeon_enc_2_0_init(enc);