sna/video: Simplify check for 915G[M] which is simply gen==30

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-11-13 17:49:23 +00:00
parent cac335b979
commit 8da8809d03
1 changed files with 1 additions and 1 deletions

View File

@ -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;