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 ret;
|
||||
uint64_t value = 0;
|
||||
|
||||
/* check for dumb capability */
|
||||
{
|
||||
uint64_t value = 0;
|
||||
ret = drmGetCap(drmmode->fd, DRM_CAP_DUMB_BUFFER, &value);
|
||||
if (ret > 0 || value != 1) {
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "KMS doesn't support dumb interface\n");
|
||||
return FALSE;
|
||||
}
|
||||
ret = drmGetCap(drmmode->fd, DRM_CAP_DUMB_BUFFER, &value);
|
||||
if (ret > 0 || value != 1) {
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "KMS doesn't support dumb interface\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
xf86CrtcConfigInit(pScrn, &drmmode_xf86crtc_config_funcs);
|
||||
|
|
Loading…
Reference in New Issue