Summary: add 'EVAS_GL_PARTIAL_DISABLE' environment variables for disable partial rendering
Reviewers: cedric, jpeg
Reviewed By: jpeg
Subscribers: mer.kim, spacegrapher, cedric, wonsik
Differential Revision: https://phab.enlightenment.org/D2183
Signed-off-by: Jean-Philippe ANDRE <jpeg@videolan.org>
jpeg added atoi(s) and copied the code for gl_drm and wayland_egl.
str = eglQueryString(eng_get_ob(re)->egl_disp, EGL_EXTENSIONS);
if (str)
{
+ const char *s;
if (getenv("EVAS_GL_INFO"))
printf("EGL EXTN:\n%s\n", str);
+ // Disable Partial Rendering
+ if ((s = getenv("EVAS_GL_PARTIAL_DISABLE")) && atoi(s))
+ {
+ extn_have_buffer_age = 0;
+ glsym_eglSwapBuffersWithDamage = NULL;
+ }
if (!strstr(str, "EGL_EXT_buffer_age"))
extn_have_buffer_age = 0;
if (!strstr(str, "EGL_EXT_swap_buffers_with_damage"))
str = eglQueryString(eng_get_ob(re)->egl_disp, EGL_EXTENSIONS);
if (str)
{
+ const char *s;
if (getenv("EVAS_GL_INFO"))
printf("EGL EXTN:\n%s\n", str);
+ // Disable Partial Rendering
+ if ((s = getenv("EVAS_GL_PARTIAL_DISABLE")) && atoi(s))
+ {
+ extn_have_buffer_age = 0;
+ glsym_eglSwapBuffersWithDamage = NULL;
+ }
if (!strstr(str, "EGL_EXT_buffer_age"))
{
extn_have_buffer_age = 0;
str = eglQueryString(eng_get_ob(re)->egl_disp, EGL_EXTENSIONS);
if (str)
{
+ const char *s;
if (getenv("EVAS_GL_INFO"))
printf("EGL EXTN:\n%s\n", str);
+ // Disable Partial Rendering
+ if ((s = getenv("EVAS_GL_PARTIAL_DISABLE")) && atoi(s))
+ {
+ extn_have_buffer_age = EINA_FALSE;
+ glsym_eglSwapBuffersWithDamage = NULL;
+ }
if (!strstr(str, "EGL_EXT_buffer_age"))
{
extn_have_buffer_age = EINA_FALSE;