summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-04-07 14:10:41 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2015-04-10 11:09:50 +0200
commit6257127d0c2a0d6b8de8b012cf94e7819c09e118 (patch)
treeb244f56a2c2d37522e4f753f5b6c8757e4a63297 /src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
parent5858513daac086a6eb8a6a40e701de6ba4f709d2 (diff)
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>
Diffstat (limited to 'src/modules/ecore_evas/engines/drm/ecore_evas_drm.c')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index a04797d62c..72e2d624ab 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -172,6 +172,12 @@ ecore_evas_drm_new_internal(const char *device, unsigned int parent EINA_UNUSED,
172 /* try to init drm */ 172 /* try to init drm */
173 if (_ecore_evas_drm_init(device) < 1) return NULL; 173 if (_ecore_evas_drm_init(device) < 1) return NULL;
174 174
175 if (!ecore_drm_device_software_setup(dev))
176 {
177 ERR("Could not setup device for software");
178 goto soft_err;
179 }
180
175 /* try to allocate space for new ecore_evas */ 181 /* try to allocate space for new ecore_evas */
176 if (!(ee = calloc(1, sizeof(Ecore_Evas)))) 182 if (!(ee = calloc(1, sizeof(Ecore_Evas))))
177 { 183 {
@@ -284,6 +290,7 @@ ecore_evas_drm_new_internal(const char *device, unsigned int parent EINA_UNUSED,
284 290
285eng_err: 291eng_err:
286 ecore_evas_free(ee); 292 ecore_evas_free(ee);
293soft_err:
287ee_err: 294ee_err:
288 _ecore_evas_drm_shutdown(); 295 _ecore_evas_drm_shutdown();
289 return NULL; 296 return NULL;