diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-28 15:41:38 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-28 15:44:01 +0000 |
commit | 43181692f752f0a552d2e2c76d8379fe16e521cf (patch) | |
tree | 348770b8f190efcc0d98f1a66256aeb866de11f6 /src/sna/gen7_render.c | |
parent | 96c10bdff95a3f8a68c6623446655c4c3dbf738a (diff) |
sna/gen7: Refine is_gt2() for Haswell versus Ivybridge
The two similar chipsets do not use the same PCI-ID encoding schema.
Fixes regression from
commit 235a3981ea9759317b392302a2b2b8f4fafab410
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date: Tue Mar 26 20:37:14 2013 +0000
sna/gen7: Use GT2 values for GT2 variants
Reported-by: zaverel@free.fr
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen7_render.c')
-rw-r--r-- | src/sna/gen7_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c index e3f80d4f..74b0cbae 100644 --- a/src/sna/gen7_render.c +++ b/src/sna/gen7_render.c @@ -3687,7 +3687,7 @@ static void gen7_render_fini(struct sna *sna) static bool is_gt2(struct sna *sna) { - return DEVICE_ID(sna->PciInfo) & 0x30; + return DEVICE_ID(sna->PciInfo) & (sna->kgem.gen == 075 ? 0x30 : 0x20); } static bool is_mobile(struct sna *sna) |