summaryrefslogtreecommitdiffstats
path: root/src/intel/common
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2016-10-04 20:42:30 -0700
committerBen Widawsky <ben@bwidawsk.net>2016-10-05 07:57:58 -0700
commit2dc06e23245429bceaac16e8a31e29ddc822ebc9 (patch)
tree8f72e28497d5b194c857e38a16201e03b6dbc920 /src/intel/common
parent11cc59afcaf85ec7081587326ac56b24e545d59a (diff)
downloadexternal_mesa3d-2dc06e23245429bceaac16e8a31e29ddc822ebc9.zip
external_mesa3d-2dc06e23245429bceaac16e8a31e29ddc822ebc9.tar.gz
external_mesa3d-2dc06e23245429bceaac16e8a31e29ddc822ebc9.tar.bz2
i965/l3: Add explicit way size calculation for bxt
There should be no functional change here because Broxton and CHV are both gt1. Without this code however, it might seem like broxton support is missing. While here, put the gt1 check in front to hopefully short-circuit the condition for the mobile cases. Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'src/intel/common')
-rw-r--r--src/intel/common/gen_l3_config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/common/gen_l3_config.c b/src/intel/common/gen_l3_config.c
index 0d99f12..0783217 100644
--- a/src/intel/common/gen_l3_config.c
+++ b/src/intel/common/gen_l3_config.c
@@ -257,7 +257,9 @@ get_l3_way_size(const struct gen_device_info *devinfo)
if (devinfo->is_baytrail)
return 2;
- else if (devinfo->is_cherryview || devinfo->gt == 1)
+ else if (devinfo->gt == 1 ||
+ devinfo->is_cherryview ||
+ devinfo->is_broxton)
return 4;
else