summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBen Widawsky <[email protected]>2017-05-11 15:37:45 -0700
committerAnuj Phogat <[email protected]>2017-06-09 16:03:00 -0700
commite179a3438a7794b13a1ffd3fbc65ac6e68e3f0de (patch)
tree08f1690487d5e01486bdaa66cfb4f193ab5b4001 /src
parentf2cbf738b4d4d51127c7a43952ed2660a9670f40 (diff)
i965/cnl: Add a preliminary device for Cannonlake
v2 (Anuj): Rebased on master and updated pci ids Remove redundant initialization of max_wm_threads to 64 * 12. For gen9+ max_wm_threads are initialized in gen_get_device_info(). v3 (Anuj): Move the patch to end of series. Remove unused gt1, gt2, gt3 functions. Remove l3_banks variable. Variable is now available on master. Signed-off-by: Anuj Phogat <[email protected]> Signed-off-by: Ben Widawsky <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/common/gen_device_info.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/intel/common/gen_device_info.c b/src/intel/common/gen_device_info.c
index 67da22a55f7..75284a66419 100644
--- a/src/intel/common/gen_device_info.c
+++ b/src/intel/common/gen_device_info.c
@@ -578,6 +578,52 @@ static const struct gen_device_info gen_device_info_glk_2x6 = {
GEN9_LP_FEATURES_2X6
};
+#define GEN10_HW_INFO \
+ .gen = 10, \
+ .max_vs_threads = 728, \
+ .max_gs_threads = 432, \
+ .max_tcs_threads = 432, \
+ .max_tes_threads = 624, \
+ .max_cs_threads = 56, \
+ .urb = { \
+ .size = 256, \
+ .min_entries = { \
+ [MESA_SHADER_VERTEX] = 64, \
+ [MESA_SHADER_TESS_EVAL] = 34, \
+ }, \
+ .max_entries = { \
+ [MESA_SHADER_VERTEX] = 3936, \
+ [MESA_SHADER_TESS_CTRL] = 896, \
+ [MESA_SHADER_TESS_EVAL] = 2064, \
+ [MESA_SHADER_GEOMETRY] = 832, \
+ }, \
+ }
+
+#define GEN10_FEATURES(_gt, _slices, _l3) \
+ GEN8_FEATURES, \
+ GEN10_HW_INFO, \
+ .gt = _gt, .num_slices = _slices, .l3_banks = _l3
+
+static const struct gen_device_info gen_device_info_cnl_2x8 = {
+ /* GT0.5 */
+ GEN10_FEATURES(1, 1, 2)
+};
+
+static const struct gen_device_info gen_device_info_cnl_3x8 = {
+ /* GT1 */
+ GEN10_FEATURES(1, 1, 3)
+};
+
+static const struct gen_device_info gen_device_info_cnl_4x8 = {
+ /* GT 1.5 */
+ GEN10_FEATURES(1, 2, 6)
+};
+
+static const struct gen_device_info gen_device_info_cnl_5x8 = {
+ /* GT2 */
+ GEN10_FEATURES(2, 2, 6)
+};
+
bool
gen_get_device_info(int devid, struct gen_device_info *devinfo)
{