summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_drm/evas_outbuf.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-01-22 14:51:45 -0600
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-18 15:50:16 -0500
commit4e953ecc4d83dae0f4360e1cb413a2a878617603 (patch)
treef67193e9c444a582ba5ffadbb10f05e5c205d915 /src/modules/evas/engines/gl_drm/evas_outbuf.c
parent6e1c7065d7578221efccf70772cfb3fde643eb64 (diff)
gl-drm: Some misc clean-ups
Remove unused stuff from structs, cut out the EVAS_GL_DRM_BUFFERS env var - it can't work anyway, gbm decides how many buffers it wants.
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_drm/evas_outbuf.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c
index 2bd6dc584b..55d0e2077f 100644
--- a/src/modules/evas/engines/gl_drm/evas_outbuf.c
+++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c
@@ -352,7 +352,6 @@ Outbuf *
352evas_outbuf_new(Evas_Engine_Info_GL_Drm *info, int w, int h, Render_Engine_Swap_Mode swap_mode) 352evas_outbuf_new(Evas_Engine_Info_GL_Drm *info, int w, int h, Render_Engine_Swap_Mode swap_mode)
353{ 353{
354 Outbuf *ob; 354 Outbuf *ob;
355 char *num;
356 355
357 if (!info) return NULL; 356 if (!info) return NULL;
358 357
@@ -369,14 +368,6 @@ evas_outbuf_new(Evas_Engine_Info_GL_Drm *info, int w, int h, Render_Engine_Swap_
369 ob->destination_alpha = info->info.destination_alpha; 368 ob->destination_alpha = info->info.destination_alpha;
370 /* ob->vsync = info->info.vsync; */ 369 /* ob->vsync = info->info.vsync; */
371 ob->swap_mode = swap_mode; 370 ob->swap_mode = swap_mode;
372 ob->priv.num = 2;
373
374 if ((num = getenv("EVAS_GL_DRM_BUFFERS")))
375 {
376 ob->priv.num = atoi(num);
377 if (ob->priv.num <= 0) ob->priv.num = 1;
378 else if (ob->priv.num > 4) ob->priv.num = 4;
379 }
380 371
381 /* if ((num = getenv("EVAS_GL_DRM_VSYNC"))) */ 372 /* if ((num = getenv("EVAS_GL_DRM_VSYNC"))) */
382 /* ob->vsync = atoi(num); */ 373 /* ob->vsync = atoi(num); */
@@ -580,8 +571,6 @@ evas_outbuf_buffer_state_get(Outbuf *ob)
580 else if (age == 3) swap_mode = MODE_TRIPLE; 571 else if (age == 3) swap_mode = MODE_TRIPLE;
581 else if (age == 4) swap_mode = MODE_QUADRUPLE; 572 else if (age == 4) swap_mode = MODE_QUADRUPLE;
582 else swap_mode = MODE_FULL; 573 else swap_mode = MODE_FULL;
583 if ((int)age != ob->priv.prev_age) swap_mode = MODE_FULL;
584 ob->priv.prev_age = age;
585 574
586 return swap_mode; 575 return swap_mode;
587 } 576 }