summaryrefslogtreecommitdiff
path: root/src/intel_dri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel_dri.c')
-rw-r--r--src/intel_dri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel_dri.c b/src/intel_dri.c
index 97f9c4a6..67f7be9d 100644
--- a/src/intel_dri.c
+++ b/src/intel_dri.c
@@ -1180,7 +1180,7 @@ Bool I830DRI2ScreenInit(ScreenPtr screen)
intel->deviceName = drmGetDeviceNameFromFd(intel->drmSubFD);
memset(&info, '\0', sizeof(info));
info.fd = intel->drmSubFD;
- info.driverName = IS_GEN3(intel) ? "i915" : "i965";
+ info.driverName = INTEL_INFO(intel)->gen < 40 ? "i915" : "i965";
info.deviceName = intel->deviceName;
#if DRI2INFOREC_VERSION == 1