From 95374225e865da3a30153f73e8bb536700d15459 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 8 Apr 2010 11:56:57 +0100 Subject: Enable compilation on non-Intel, non-DRM systems. A few of the tools can be performed post-mortem from a different system, so it is useful to be able to compile those tools on those foreign systems. Obviously, any program to interact with the PCI device or talk to GEM will fail on a non-Intel system. Signed-off-by: Chris Wilson --- lib/instdone.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/instdone.c') diff --git a/lib/instdone.c b/lib/instdone.c index d77061fa..722fb039 100644 --- a/lib/instdone.c +++ b/lib/instdone.c @@ -25,9 +25,11 @@ * */ -#include "intel_gpu_tools.h" #include "instdone.h" +#include "intel_chipset.h" +#include "intel_reg.h" + struct instdone_bit instdone_bits[MAX_INSTDONE_BITS]; int num_instdone_bits = 0; @@ -133,7 +135,7 @@ init_g4x_instdone1(void) } void -init_instdone_definitions(void) +init_instdone_definitions(uint32_t devid) { if (IS_GEN6(devid)) { /* Now called INSTDONE_1 in the docs. */ -- cgit v1.2.3