[Intel-gfx] [PATCH 7/7] Update intel_reg_dumper for new chipset
Zhenyu Wang
zhenyuw at linux.intel.com
Fri Jun 5 09:47:26 CEST 2009
Signed-off-by: Zhenyu Wang <zhenyuw at linux.intel.com>
---
src/reg_dumper/main.c | 5 ++++-
src/reg_dumper/reg_dumper.h | 1 +
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/reg_dumper/main.c b/src/reg_dumper/main.c
index ce883ef..e325a18 100644
--- a/src/reg_dumper/main.c
+++ b/src/reg_dumper/main.c
@@ -80,7 +80,10 @@ int main(int argc, char **argv)
scrn.scrnIndex = 0;
scrn.pI830 = &i830;
- i830DumpRegs(&scrn);
+ if (IS_IGDNG((&i830)))
+ IGDNGDumpRegs(&scrn);
+ else
+ i830DumpRegs(&scrn);
return 0;
}
diff --git a/src/reg_dumper/reg_dumper.h b/src/reg_dumper/reg_dumper.h
index 8c2eb0b..4eb4b44 100644
--- a/src/reg_dumper/reg_dumper.h
+++ b/src/reg_dumper/reg_dumper.h
@@ -85,3 +85,4 @@ char *XNFprintf(const char *format, ...);
void xf86DrvMsg(int scrnIndex, int severity, const char *format, ...);
void i830DumpRegs(ScrnInfoPtr pScrn);
void intel_i830rec_init(I830Ptr pI830);
+void IGDNGDumpRegs(ScrnInfoPtr pScrn);
--
1.6.3.1
More information about the Intel-gfx
mailing list