]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amdgpu/gfx9: Add support for vega20
authorFeifei Xu <Feifei.Xu@amd.com>
Fri, 20 Apr 2018 07:51:26 +0000 (15:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 May 2018 15:13:16 +0000 (10:13 -0500)
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index 8335d98a3f3b0b864e15a7cff17a30bf0bfe351f..92ed268a1b7f00187a587b1b57304f5fbe6d4f09 100644 (file)
@@ -1429,6 +1429,7 @@ static int gfx_v9_0_sw_init(void *handle)
        switch (adev->asic_type) {
        case CHIP_VEGA10:
        case CHIP_VEGA12:
+       case CHIP_VEGA20:
        case CHIP_RAVEN:
                adev->gfx.mec.num_mec = 2;
                break;
@@ -4715,6 +4716,7 @@ static void gfx_v9_0_set_rlc_funcs(struct amdgpu_device *adev)
        switch (adev->asic_type) {
        case CHIP_VEGA10:
        case CHIP_VEGA12:
+       case CHIP_VEGA20:
        case CHIP_RAVEN:
                adev->gfx.rlc.funcs = &gfx_v9_0_rlc_funcs;
                break;