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.
This commit is contained in:
Derek Foreman 2016-01-22 14:51:45 -06:00 committed by Mike Blumenkrantz
parent 6e1c7065d7
commit 4e953ecc4d
2 changed files with 1 additions and 15 deletions

View File

@ -97,10 +97,7 @@ struct _Outbuf
struct
{
int prev_age;
int curr, last, num;
struct gbm_bo *bo[4];
Eina_List *pending_writes;
struct gbm_bo *bo[2];
} priv;
Eina_Bool destination_alpha : 1;

View File

@ -352,7 +352,6 @@ Outbuf *
evas_outbuf_new(Evas_Engine_Info_GL_Drm *info, int w, int h, Render_Engine_Swap_Mode swap_mode)
{
Outbuf *ob;
char *num;
if (!info) return NULL;
@ -369,14 +368,6 @@ evas_outbuf_new(Evas_Engine_Info_GL_Drm *info, int w, int h, Render_Engine_Swap_
ob->destination_alpha = info->info.destination_alpha;
/* ob->vsync = info->info.vsync; */
ob->swap_mode = swap_mode;
ob->priv.num = 2;
if ((num = getenv("EVAS_GL_DRM_BUFFERS")))
{
ob->priv.num = atoi(num);
if (ob->priv.num <= 0) ob->priv.num = 1;
else if (ob->priv.num > 4) ob->priv.num = 4;
}
/* if ((num = getenv("EVAS_GL_DRM_VSYNC"))) */
/* ob->vsync = atoi(num); */
@ -580,8 +571,6 @@ evas_outbuf_buffer_state_get(Outbuf *ob)
else if (age == 3) swap_mode = MODE_TRIPLE;
else if (age == 4) swap_mode = MODE_QUADRUPLE;
else swap_mode = MODE_FULL;
if ((int)age != ob->priv.prev_age) swap_mode = MODE_FULL;
ob->priv.prev_age = age;
return swap_mode;
}