radeonsi: add support for Polaris (v2)
v2: Polaris chips should be defined after Stoney Signed-off-by: Sonny Jiang <sonny.jiang@amd.com> (v1) Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (v1) Signed-off-by: Leo Liu <leo.liu@amd.com> (v2 diff) Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v2 diff)
This commit is contained in:
parent
f5e24b19e8
commit
42e442d888
|
@ -467,6 +467,8 @@ static const char* r600_get_chip_name(struct r600_common_screen *rscreen)
|
|||
case CHIP_ICELAND: return "AMD ICELAND";
|
||||
case CHIP_CARRIZO: return "AMD CARRIZO";
|
||||
case CHIP_FIJI: return "AMD FIJI";
|
||||
case CHIP_POLARIS10: return "AMD POLARIS10";
|
||||
case CHIP_POLARIS11: return "AMD POLARIS11";
|
||||
case CHIP_STONEY: return "AMD STONEY";
|
||||
default: return "AMD unknown";
|
||||
}
|
||||
|
@ -597,6 +599,13 @@ const char *r600_get_llvm_processor_name(enum radeon_family family)
|
|||
#else
|
||||
case CHIP_FIJI: return "fiji";
|
||||
case CHIP_STONEY: return "stoney";
|
||||
#endif
|
||||
#if HAVE_LLVM <= 0x0308
|
||||
case CHIP_POLARIS10: return "tonga";
|
||||
case CHIP_POLARIS11: return "tonga";
|
||||
#else
|
||||
case CHIP_POLARIS10: return "polaris10";
|
||||
case CHIP_POLARIS11: return "polaris11";
|
||||
#endif
|
||||
default: return "";
|
||||
}
|
||||
|
|
|
@ -124,6 +124,8 @@ enum radeon_family {
|
|||
CHIP_CARRIZO,
|
||||
CHIP_FIJI,
|
||||
CHIP_STONEY,
|
||||
CHIP_POLARIS10,
|
||||
CHIP_POLARIS11,
|
||||
CHIP_LAST,
|
||||
};
|
||||
|
||||
|
|
|
@ -598,6 +598,8 @@ static bool si_init_gs_info(struct si_screen *sscreen)
|
|||
case CHIP_HAWAII:
|
||||
case CHIP_TONGA:
|
||||
case CHIP_FIJI:
|
||||
case CHIP_POLARIS10:
|
||||
case CHIP_POLARIS11:
|
||||
sscreen->gs_table_depth = 32;
|
||||
return true;
|
||||
default:
|
||||
|
|
|
@ -3946,6 +3946,14 @@ static void si_init_config(struct si_context *sctx)
|
|||
raster_config_1 = 0x0000002e;
|
||||
}
|
||||
break;
|
||||
case CHIP_POLARIS10:
|
||||
raster_config = 0x16000012;
|
||||
raster_config_1 = 0x0000002a;
|
||||
break;
|
||||
case CHIP_POLARIS11:
|
||||
raster_config = 0x16000012;
|
||||
raster_config_1 = 0x00000000;
|
||||
break;
|
||||
case CHIP_TONGA:
|
||||
raster_config = 0x16000012;
|
||||
raster_config_1 = 0x0000002a;
|
||||
|
|
|
@ -237,6 +237,14 @@ static boolean do_winsys_init(struct amdgpu_winsys *ws, int fd)
|
|||
ws->family = FAMILY_VI;
|
||||
ws->rev_id = VI_FIJI_P_A0;
|
||||
break;
|
||||
case CHIP_POLARIS10:
|
||||
ws->family = FAMILY_VI;
|
||||
ws->rev_id = VI_POLARIS10_P_A0;
|
||||
break;
|
||||
case CHIP_POLARIS11:
|
||||
ws->family = FAMILY_VI;
|
||||
ws->rev_id = VI_POLARIS11_M_A0;
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "amdgpu: Unknown family.\n");
|
||||
goto fail;
|
||||
|
|
Loading…
Reference in New Issue