Browse Source

drm/amdgpu/gfx9: add support for vega12

Same as vega10 and raven.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Alex Deucher 8 năm trước cách đây
mục cha
commit
8b39947755

+ 2 - 0
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

@@ -1271,6 +1271,7 @@ static int gfx_v9_0_sw_init(void *handle)
 
 
 	switch (adev->asic_type) {
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
 	case CHIP_VEGA10:
+	case CHIP_VEGA12:
 	case CHIP_RAVEN:
 	case CHIP_RAVEN:
 		adev->gfx.mec.num_mec = 2;
 		adev->gfx.mec.num_mec = 2;
 		break;
 		break;
@@ -4475,6 +4476,7 @@ static void gfx_v9_0_set_rlc_funcs(struct amdgpu_device *adev)
 {
 {
 	switch (adev->asic_type) {
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
 	case CHIP_VEGA10:
+	case CHIP_VEGA12:
 	case CHIP_RAVEN:
 	case CHIP_RAVEN:
 		adev->gfx.rlc.funcs = &gfx_v9_0_rlc_funcs;
 		adev->gfx.rlc.funcs = &gfx_v9_0_rlc_funcs;
 		break;
 		break;