uxa/dri: Enable vblank scheduling even with pageflipping disabled

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-05-28 10:55:49 +01:00
parent 810357ad65
commit 5b99c7cd34
1 changed files with 7 additions and 9 deletions

View File

@ -1685,15 +1685,13 @@ Bool I830DRI2ScreenInit(ScreenPtr screen)
info.CopyRegion = I830DRI2CopyRegion;
#if DRI2INFOREC_VERSION >= 4
if (intel->use_pageflipping) {
info.version = 4;
info.ScheduleSwap = I830DRI2ScheduleSwap;
info.GetMSC = I830DRI2GetMSC;
info.ScheduleWaitMSC = I830DRI2ScheduleWaitMSC;
info.numDrivers = 1;
info.driverNames = driverNames;
driverNames[0] = info.driverName;
}
info.version = 4;
info.ScheduleSwap = I830DRI2ScheduleSwap;
info.GetMSC = I830DRI2GetMSC;
info.ScheduleWaitMSC = I830DRI2ScheduleWaitMSC;
info.numDrivers = 1;
info.driverNames = driverNames;
driverNames[0] = info.driverName;
#endif
return DRI2ScreenInit(screen, &info);