XExtDisplayInfo *info = DRI2FindDisplay(dpy);
xDRI2ConnectReply rep;
xDRI2ConnectReq *req;
- char *prime;
XextCheckExtension(dpy, info, dri2ExtensionName, False);
req->driverType = DRI2DriverDRI;
#ifdef DRI2DriverPrimeShift
- prime = getenv("DRI_PRIME");
- if (prime) {
- uint32_t primeid;
- errno = 0;
- primeid = strtoul(prime, NULL, 0);
- if (errno == 0)
- req->driverType |= ((primeid & DRI2DriverPrimeMask) << DRI2DriverPrimeShift);
+ {
+ char *prime = getenv("DRI_PRIME");
+ if (prime) {
+ uint32_t primeid;
+ errno = 0;
+ primeid = strtoul(prime, NULL, 0);
+ if (errno == 0)
+ req->driverType |=
+ ((primeid & DRI2DriverPrimeMask) << DRI2DriverPrimeShift);
+ }
}
#endif