diff mbox

[intel-gpu-tools] Correct identification of the GEN5 chips on the IS_9XX() define

Message ID AANLkTi=aUXnVRQ7ZT-Z6Z1HgT-15pMqY7YzuHAd6sV7g@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Diego Celix Feb. 14, 2011, 3:44 p.m. UTC
None
diff mbox

Patch

From 62d5a29c9484e989a41f591a403bf9e6c5a8f81e Mon Sep 17 00:00:00 2001
From: Diego Celix <dcelix@gmail.com>
Date: Mon, 14 Feb 2011 15:21:53 +0000
Subject: [PATCH] lib/intel_chipset: GEN5 fix

This fixes the correct identification of the GEN5 chipsets inside the
IS_9XX() #define. Fixes the following error:
Couldn't map MMIO region: No such file or directory
Provided on each call of the intel_get_mmio function.
---
 lib/intel_chipset.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 48c441d..754bdd3 100755
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -141,7 +141,7 @@ 
 
 #define IS_9XX(devid)		(IS_GEN3(devid) || \
 				 IS_GEN4(devid) || \
-				 IS_GEN4(devid) || \
+				 IS_GEN5(devid) || \
 				 IS_GEN6(devid))
 
 #define IS_INTEL(devid)		(IS_GEN2(devid) || \
-- 
1.7.3.4