cleanup dumb cap fetch
This commit is contained in:
parent
d94b3eaba9
commit
fc5f39acd4
|
@ -1028,15 +1028,13 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int cpp)
|
||||||
{
|
{
|
||||||
int i, num_dvi = 0, num_hdmi = 0;
|
int i, num_dvi = 0, num_hdmi = 0;
|
||||||
int ret;
|
int ret;
|
||||||
|
uint64_t value = 0;
|
||||||
|
|
||||||
/* check for dumb capability */
|
/* check for dumb capability */
|
||||||
{
|
ret = drmGetCap(drmmode->fd, DRM_CAP_DUMB_BUFFER, &value);
|
||||||
uint64_t value = 0;
|
if (ret > 0 || value != 1) {
|
||||||
ret = drmGetCap(drmmode->fd, DRM_CAP_DUMB_BUFFER, &value);
|
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "KMS doesn't support dumb interface\n");
|
||||||
if (ret > 0 || value != 1) {
|
return FALSE;
|
||||||
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "KMS doesn't support dumb interface\n");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
xf86CrtcConfigInit(pScrn, &drmmode_xf86crtc_config_funcs);
|
xf86CrtcConfigInit(pScrn, &drmmode_xf86crtc_config_funcs);
|
||||||
|
|
Loading…
Reference in New Issue