dri2: sort DRI2InfoPtr::version checking in ascending order
Makes it easer to follow if 8 is between 7 and 9 ;-) Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
82df2ce38c
commit
eac1a2e37b
|
@ -1538,6 +1538,7 @@ DRI2ScreenInit(ScreenPtr pScreen, DRI2InfoPtr info)
|
|||
ds->CreateBuffer = info->CreateBuffer;
|
||||
ds->DestroyBuffer = info->DestroyBuffer;
|
||||
ds->CopyRegion = info->CopyRegion;
|
||||
cur_minor = 1;
|
||||
|
||||
if (info->version >= 4) {
|
||||
ds->ScheduleSwap = info->ScheduleSwap;
|
||||
|
@ -1545,13 +1546,7 @@ DRI2ScreenInit(ScreenPtr pScreen, DRI2InfoPtr info)
|
|||
ds->GetMSC = info->GetMSC;
|
||||
cur_minor = 3;
|
||||
}
|
||||
else {
|
||||
cur_minor = 1;
|
||||
}
|
||||
|
||||
if (info->version >= 8) {
|
||||
ds->AuthMagic = info->AuthMagic2;
|
||||
}
|
||||
if (info->version >= 5) {
|
||||
ds->LegacyAuthMagic = info->AuthMagic;
|
||||
}
|
||||
|
@ -1566,6 +1561,10 @@ DRI2ScreenInit(ScreenPtr pScreen, DRI2InfoPtr info)
|
|||
cur_minor = 4;
|
||||
}
|
||||
|
||||
if (info->version >= 8) {
|
||||
ds->AuthMagic = info->AuthMagic2;
|
||||
}
|
||||
|
||||
if (info->version >= 9) {
|
||||
ds->CreateBuffer2 = info->CreateBuffer2;
|
||||
if (info->CreateBuffer2 && pScreen->isGPU) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user