summaryrefslogtreecommitdiff
path: root/src/intel_module.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-06 09:42:37 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-06 10:06:16 +0100
commit5784e0f21dc91f33c99a507105a0695cc53d6574 (patch)
tree3b4a4d1823166a57e8a88a537eb5ee097398bf16 /src/intel_module.c
parent1ee10cc3b2aa0888753eeb25c7fde7296a3c92eb (diff)
Allow matching against any device supported by drm/i915
However we cannot enable acceleration if we do not recognise its hardware layout or instruction set. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_module.c')
-rw-r--r--src/intel_module.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/intel_module.c b/src/intel_module.c
index af82cff4..f8ba1494 100644
--- a/src/intel_module.c
+++ b/src/intel_module.c
@@ -48,6 +48,10 @@
static struct intel_device_info *chipset_info;
+static const struct intel_device_info intel_generic_info = {
+ .gen = 0,
+};
+
static const struct intel_device_info intel_i81x_info = {
.gen = 10,
};
@@ -215,6 +219,7 @@ static const struct pci_id_match intel_device_match[] = {
INTEL_DEVICE_MATCH (PCI_CHIP_IVYBRIDGE_S_GT1, &intel_ivybridge_info ),
INTEL_DEVICE_MATCH (PCI_CHIP_IVYBRIDGE_S_GT2, &intel_ivybridge_info ),
+ INTEL_DEVICE_MATCH (PCI_MATCH_ANY, &intel_generic_info ),
{ 0, 0, 0 },
};
@@ -225,6 +230,7 @@ void intel_detect_chipset(ScrnInfoPtr scrn,
int i;
chipset->info = chipset_info;
+ chipset->name = NULL;
for (i = 0; intel_chipsets[i].name != NULL; i++) {
if (DEVICE_ID(pci) == intel_chipsets[i].token) {
@@ -232,12 +238,14 @@ void intel_detect_chipset(ScrnInfoPtr scrn,
break;
}
}
- if (intel_chipsets[i].name == NULL) {
- chipset->name = "unknown chipset";
+ if (chipset->name == NULL) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING, "unknown chipset\n");
+ chipset->name = "unknown";
+ } else {
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "Integrated Graphics Chipset: Intel(R) %s\n",
+ chipset->name);
}
-
- xf86DrvMsg(scrn->scrnIndex, X_INFO,
- "Integrated Graphics Chipset: Intel(R) %s\n", chipset->name);
}
/*