summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-09-02 14:13:31 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-09-02 14:16:01 +0100
commitebc066c1ece2db237963c7a3cd42684fa338c083 (patch)
treecae178b504663e1a742125c918140f45a79fee39
parent74e4c131daf99eec381c77bef6611111e74da502 (diff)
sna: Add missing GT info for bxt,kbl
commit c446a7ccc783e3ca00b4b15d017c6e3af66dc646 Author: Wayne Boyer <wayne.boyer@intel.com> Date: Wed Nov 18 10:39:42 2015 -0800 Add Kabylake PCI IDs missed adding the GT information, leaving bxt,kbl using only generic acceleration. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/gen9_render.c29
1 files changed, 26 insertions, 3 deletions
diff --git a/src/sna/gen9_render.c b/src/sna/gen9_render.c
index 801d514c..4e4172ed 100644
--- a/src/sna/gen9_render.c
+++ b/src/sna/gen9_render.c
@@ -230,11 +230,32 @@ static const struct gt_info skl_gt_info = {
.urb = { .max_vs_entries = 960 },
};
+static const struct gt_info bxt_gt_info = {
+ .name = "Broxton (gen9)",
+ .urb = { .max_vs_entries = 320 },
+};
+
+static const struct gt_info kbl_gt_info = {
+ .name = "Kayblake (gen9)",
+ .urb = { .max_vs_entries = 960 },
+};
+
static bool is_skl(struct sna *sna)
{
return sna->kgem.gen == 0110;
}
+static bool is_bxt(struct sna *sna)
+{
+ return sna->kgem.gen == 0111;
+}
+
+static bool is_kbl(struct sna *sna)
+{
+ return sna->kgem.gen == 0112;
+}
+
+
static inline bool too_large(int width, int height)
{
return width > GEN9_MAX_SIZE || height > GEN9_MAX_SIZE;
@@ -3982,11 +4003,13 @@ static bool gen9_render_setup(struct sna *sna)
state->gt = GEN9_GT_BIAS + ((devid >> 4) & 0xf) + 1;
DBG(("%s: gt=%d\n", __FUNCTION__, state->gt));
- state->info = &skl_gt_info;
+ state->info = &min_gt_info;
if (is_skl(sna))
state->info = &skl_gt_info;
- else
- return false;
+ if (is_bxt(sna))
+ state->info = &bxt_gt_info;
+ if (is_kbl(sna))
+ state->info = &kbl_gt_info;
sna_static_stream_init(&general);