[Video/KMSDRM] Re-arrange display members setup.

This commit is contained in:
Manuel Alfayate Corchete 2020-12-18 23:17:42 +01:00
parent f60f8d5d84
commit 8952a61324
1 changed files with 3 additions and 4 deletions

View File

@ -1700,10 +1700,6 @@ KMSDRM_VideoInit(_THIS)
goto cleanup;
}
/* Setup the single display that's available.
There's no problem with it being still incomplete. */
display.driverdata = dispdata;
/* Get KMSDRM resources info and store what we need. Getting and storing
this info isn't a problem for VK compatibility.
For VK-incompatible initializations we have KMSDRM_GBMInit(), which is
@ -1713,6 +1709,9 @@ KMSDRM_VideoInit(_THIS)
goto cleanup;
}
/* Setup the single display that's available.
There's no problem with it being still incomplete. */
display.driverdata = dispdata;
display.desktop_mode.w = dispdata->mode.hdisplay;
display.desktop_mode.h = dispdata->mode.vdisplay;
display.desktop_mode.refresh_rate = dispdata->mode.vrefresh;