ecore_drm: Test drm device for DUMB BUFFER capability
Without this we can't do software rendering on the DRM device.
This commit is contained in:
parent
017f2d34b5
commit
d27996ef23
|
@ -350,7 +350,15 @@ ecore_drm_device_open(Ecore_Drm_Device *dev)
|
|||
}
|
||||
else
|
||||
{
|
||||
ERR("Could not get device capabilities: %m");
|
||||
ERR("Could not get TIMESTAMP_MONOTONIC device capabilities: %m");
|
||||
}
|
||||
|
||||
/* Without DUMB_BUFFER we can't do software rendering on DRM. Fail without it
|
||||
* until we have rock solid hardware accelerated DRM on all drivers */
|
||||
if (drmGetCap(dev->drm.fd, DRM_CAP_DUMB_BUFFER, &caps) < 0 || !caps)
|
||||
{
|
||||
ERR("Could not get DUMB_BUFFER device capabilities: %m");
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
/* #ifdef HAVE_GBM */
|
||||
|
|
Loading…
Reference in New Issue