diff options
-rw-r--r-- | src/glx/dri2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/dri2.c b/src/glx/dri2.c index b1b5013d048..ccac633ce6a 100644 --- a/src/glx/dri2.c +++ b/src/glx/dri2.c @@ -277,7 +277,11 @@ DRI2Connect(Display * dpy, XID window, char **driverName, char **deviceName) req->reqType = info->codes->major_opcode; req->dri2ReqType = X_DRI2Connect; req->window = window; + req->driverType = DRI2DriverDRI; + if (getenv("DRI_PRIME")) + req->driverType |= (1 << DRI2DriverPrimeShift); + if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { UnlockDisplay(dpy); SyncHandle(); |