radeon/vcn: exclude raven2 from vcn 2.0 encode initialization

Submitted by Das, Indrajit-kumar on Sept. 10, 2019, 2:06 p.m.

Details

Message ID MN2PR12MB32786E03410B259656D98AC8CFB60@MN2PR12MB3278.namprd12.prod.outlook.com
State Accepted
Commit 92765f85e1bb677b9d61b4f4a3f87c6b64649e12
Headers show
Series "radeon/vcn: exclude raven2 from vcn 2.0 encode initialization" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Das, Indrajit-kumar Sept. 10, 2019, 2:06 p.m.
From: Indrajit Das <indrajit-kumar.das@amd.com>
Date: Tue, 10 Sep 2019 14:52:14 +0530
Subject: [PATCH] radeon/vcn: exclude raven2 from vcn 2.0 encode initialization

Signed-off-by: Indrajit Das <indrajit-kumar.das@amd.com>
---
 src/gallium/drivers/radeon/radeon_vcn_enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/gallium/drivers/radeon/radeon_vcn_enc.c b/src/gallium/drivers/radeon/radeon_vcn_enc.c
index afdc2a9..2ab4e45 100644
--- a/src/gallium/drivers/radeon/radeon_vcn_enc.c
+++ b/src/gallium/drivers/radeon/radeon_vcn_enc.c
@@ -410,7 +410,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);

Comments

Reviewed-by: Leo Liu <leo.liu@amd.com>


On 2019-09-10 10:06 a.m., Das, Indrajit-kumar wrote:
> From: Indrajit Das <indrajit-kumar.das@amd.com>

> Date: Tue, 10 Sep 2019 14:52:14 +0530

> Subject: [PATCH] radeon/vcn: exclude raven2 from vcn 2.0 encode initialization

>

> Signed-off-by: Indrajit Das <indrajit-kumar.das@amd.com>

> ---

>   src/gallium/drivers/radeon/radeon_vcn_enc.c | 2 +-

>   1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/src/gallium/drivers/radeon/radeon_vcn_enc.c b/src/gallium/drivers/radeon/radeon_vcn_enc.c

> index afdc2a9..2ab4e45 100644

> --- a/src/gallium/drivers/radeon/radeon_vcn_enc.c

> +++ b/src/gallium/drivers/radeon/radeon_vcn_enc.c

> @@ -410,7 +410,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);