summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-02-18 16:39:11 -0800
committerKenneth Graunke <[email protected]>2014-03-28 17:10:09 -0700
commit9b6b084eb7b10d006b44e3cd22585fc3e39e0c00 (patch)
treed66b0aef385214e7385150cdbec6c58aa6de914c /src/mesa/drivers/dri
parent4047263cb15e89d23cb145c74fb3f303904e8f14 (diff)
i965: Add Cherryview support.
Based on a patch by Ville Syrjälä. As usual, these are placeholder values; actual values will come later. Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_device_info.c15
-rw-r--r--src/mesa/drivers/dri/i965/brw_device_info.h1
2 files changed, 16 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_device_info.c b/src/mesa/drivers/dri/i965/brw_device_info.c
index e4c110da036..1fc8ef40266 100644
--- a/src/mesa/drivers/dri/i965/brw_device_info.c
+++ b/src/mesa/drivers/dri/i965/brw_device_info.c
@@ -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)
{
diff --git a/src/mesa/drivers/dri/i965/brw_device_info.h b/src/mesa/drivers/dri/i965/brw_device_info.h
index 66ec9359bc7..e506beb9360 100644
--- a/src/mesa/drivers/dri/i965/brw_device_info.h
+++ b/src/mesa/drivers/dri/i965/brw_device_info.h
@@ -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;