summaryrefslogtreecommitdiff
path: root/src/sna/sna_video_textured.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-13 17:49:23 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-13 17:49:23 +0000
commit8da8809d03734d92c3bcf478fe051077ce3caa29 (patch)
tree09cd56d4a6e5245028e16b82b166fc95bd316c8e /src/sna/sna_video_textured.c
parentcac335b979a95e31e201f9766d19d737361e09b2 (diff)
sna/video: Simplify check for 915G[M] which is simply gen==30
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video_textured.c')
-rw-r--r--src/sna/sna_video_textured.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c
index 55c78c96..8531fc6b 100644
--- a/src/sna/sna_video_textured.c
+++ b/src/sna/sna_video_textured.c
@@ -241,7 +241,7 @@ sna_video_textured_put_image(ScrnInfoPtr scrn,
return Success;
if (xvmc_passthrough(id)) {
- if (IS_I915G(sna) || IS_I915GM(sna)) {
+ if (sna->kgem.gen == 30) {
/* XXX: i915 is not support and needs some
* serious care. grep for KMS in i915_hwmc.c */
return BadAlloc;