i965: Add Cherryview support.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 19 Feb 2014 00:39:11 +0000 (16:39 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 29 Mar 2014 00:10:09 +0000 (17:10 -0700)
Based on a patch by Ville Syrjälä.

As usual, these are placeholder values; actual values will come later.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
include/pci_ids/i965_pci_ids.h
src/mesa/drivers/dri/i965/brw_device_info.c
src/mesa/drivers/dri/i965/brw_device_info.h

index a71f6d4f3e7bc56c1977dca45a6cd141353ac943..cf0c9047dcf0a934fdb66ca8fc4409619549b09b 100644 (file)
@@ -109,3 +109,7 @@ CHIPSET(0x162A, bdw_gt3, "Intel(R) Broadwell")
 CHIPSET(0x162B, bdw_gt3, "Intel(R) Broadwell")
 CHIPSET(0x162D, bdw_gt3, "Intel(R) Broadwell")
 CHIPSET(0x162E, bdw_gt3, "Intel(R) Broadwell")
+CHIPSET(0x22B0, chv,     "Intel(R) Cherryview")
+CHIPSET(0x22B1, chv,     "Intel(R) Cherryview")
+CHIPSET(0x22B2, chv,     "Intel(R) Cherryview")
+CHIPSET(0x22B3, chv,     "Intel(R) Cherryview")
index e4c110da036f4d47e0f9bf04a3ea15fd9daf63a3..1fc8ef402660bccb5ae3ade5807e3c5c07e79859 100644 (file)
@@ -221,6 +221,21 @@ static const struct brw_device_info brw_device_info_bdw_gt3 = {
    GEN8_FEATURES, .gt = 3,
 };
 
+/* Thread counts and URB limits are placeholders, and may not be accurate.
+ * These were copied from Haswell GT1, above.
+ */
+static const struct brw_device_info brw_device_info_chv = {
+   GEN8_FEATURES, .is_cherryview = 1, .gt = 1,
+   .has_llc = false,
+   .max_vs_threads = 70,
+   .max_gs_threads = 70,
+   .max_wm_threads = 102,
+   .urb = {
+      .max_vs_entries = 640,
+      .max_gs_entries = 256,
+   }
+};
+
 const struct brw_device_info *
 brw_get_device_info(int devid)
 {
index 66ec9359bc7c07065eebd092112d1242b9b1366e..e506beb9360657c6b599a6102be9f4a7187c04aa 100644 (file)
@@ -34,6 +34,7 @@ struct brw_device_info
    bool is_ivybridge;
    bool is_baytrail;
    bool is_haswell;
+   bool is_cherryview;
 
    bool has_hiz_and_separate_stencil;
    bool must_use_separate_stencil;