intel/dev: Add device info for DG1
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 31 Jul 2018 04:52:02 +0000 (21:52 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 22 Jun 2020 18:42:00 +0000 (11:42 -0700)
Reworks:
 * Anuj: Set is_dg1
 * Anuj: Add dg1 to gen_device_name_to_pci_device_id
 * Anuj: Update simulator id
 * Rafael: has_llc = false

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4956>

include/pci_ids/iris_pci_ids.h
src/intel/dev/gen_device_info.c

index ed79c654944884aa652362d91f3b772839231f75..d69fcb9c8d4e5e7edf65e4a5c456b4175491ebf4 100644 (file)
@@ -15,3 +15,5 @@ CHIPSET(0x9AC0, tgl_gt2, "TGL GT2", "Intel(R) UHD Graphics")
 CHIPSET(0x9AC9, tgl_gt2, "TGL GT2", "Intel(R) UHD Graphics")
 CHIPSET(0x9AD9, tgl_gt2, "TGL GT2", "Intel(R) UHD Graphics")
 CHIPSET(0x9AF8, tgl_gt2, "TGL GT2", "Intel(R) UHD Graphics")
+
+CHIPSET(0x4905, dg1, "DG1 GT2", "Intel(R) Graphics")
index 917f493a6728b446ab948b35505d73b785fa5879..7630bb03b10913daed4c5cb67d0aa448d47ea577 100644 (file)
@@ -62,6 +62,7 @@ static const struct {
    { "jsl", 0x4E71 },
    { "tgl", 0x9a49 },
    { "rkl", 0x4c8a },
+   { "dg1", 0x4905 },
 };
 
 /**
@@ -1050,6 +1051,17 @@ static const struct gen_device_info gen_device_info_rkl_gt1 = {
    GEN12_GT_FEATURES(1),
 };
 
+#define GEN12_DG1_FEATURES                      \
+   GEN12_GT_FEATURES(2),                        \
+   .is_dg1 = true,                              \
+   .has_llc = false,                            \
+   .urb.size = 768,                             \
+   .simulator_id = 30
+
+static const struct gen_device_info gen_device_info_dg1 = {
+   GEN12_DG1_FEATURES,
+};
+
 static void
 gen_device_info_set_eu_mask(struct gen_device_info *devinfo,
                             unsigned slice,