|
|
@ -233,6 +233,8 @@ struct gl_renderer { |
|
|
|
bool has_egl_image_external; |
|
|
|
bool has_egl_image_external; |
|
|
|
|
|
|
|
|
|
|
|
bool has_egl_buffer_age; |
|
|
|
bool has_egl_buffer_age; |
|
|
|
|
|
|
|
bool has_egl_partial_update; |
|
|
|
|
|
|
|
PFNEGLSETDAMAGEREGIONKHRPROC set_damage_region; |
|
|
|
|
|
|
|
|
|
|
|
bool has_configless_context; |
|
|
|
bool has_configless_context; |
|
|
|
|
|
|
|
|
|
|
@ -3446,6 +3448,8 @@ gl_renderer_setup_egl_extensions(struct weston_compositor *ec) |
|
|
|
(void *) eglGetProcAddress("eglUnbindWaylandDisplayWL"); |
|
|
|
(void *) eglGetProcAddress("eglUnbindWaylandDisplayWL"); |
|
|
|
gr->query_buffer = |
|
|
|
gr->query_buffer = |
|
|
|
(void *) eglGetProcAddress("eglQueryWaylandBufferWL"); |
|
|
|
(void *) eglGetProcAddress("eglQueryWaylandBufferWL"); |
|
|
|
|
|
|
|
gr->set_damage_region = |
|
|
|
|
|
|
|
(void *) eglGetProcAddress("eglSetDamageRegionKHR"); |
|
|
|
|
|
|
|
|
|
|
|
extensions = |
|
|
|
extensions = |
|
|
|
(const char *) eglQueryString(gr->egl_display, EGL_EXTENSIONS); |
|
|
|
(const char *) eglQueryString(gr->egl_display, EGL_EXTENSIONS); |
|
|
@ -3468,6 +3472,9 @@ gl_renderer_setup_egl_extensions(struct weston_compositor *ec) |
|
|
|
if (weston_check_egl_extension(extensions, "EGL_EXT_buffer_age")) |
|
|
|
if (weston_check_egl_extension(extensions, "EGL_EXT_buffer_age")) |
|
|
|
gr->has_egl_buffer_age = true; |
|
|
|
gr->has_egl_buffer_age = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (weston_check_egl_extension(extensions, "EGL_KHR_partial_update")) |
|
|
|
|
|
|
|
gr->has_egl_partial_update = true; |
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < ARRAY_LENGTH(swap_damage_ext_to_entrypoint); i++) { |
|
|
|
for (i = 0; i < ARRAY_LENGTH(swap_damage_ext_to_entrypoint); i++) { |
|
|
|
if (weston_check_egl_extension(extensions, |
|
|
|
if (weston_check_egl_extension(extensions, |
|
|
|
swap_damage_ext_to_entrypoint[i].extension)) { |
|
|
|
swap_damage_ext_to_entrypoint[i].extension)) { |
|
|
|