ecore-evas-drm: Setup Ecore_Drm_Device for software rendering

Summary: If we are using the software version of ecore_evas_drm, then
make API call to setup the Ecore_Drm_Device for software rendering.
This creates the dumb buffers on the Ecore_Drm_Device.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-04-07 14:10:41 -04:00 committed by Stefan Schmidt
parent 5858513daa
commit 6257127d0c
1 changed files with 7 additions and 0 deletions

View File

@ -172,6 +172,12 @@ ecore_evas_drm_new_internal(const char *device, unsigned int parent EINA_UNUSED,
/* try to init drm */
if (_ecore_evas_drm_init(device) < 1) return NULL;
if (!ecore_drm_device_software_setup(dev))
{
ERR("Could not setup device for software");
goto soft_err;
}
/* try to allocate space for new ecore_evas */
if (!(ee = calloc(1, sizeof(Ecore_Evas))))
{
@ -284,6 +290,7 @@ ecore_evas_drm_new_internal(const char *device, unsigned int parent EINA_UNUSED,
eng_err:
ecore_evas_free(ee);
soft_err:
ee_err:
_ecore_evas_drm_shutdown();
return NULL;