mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-10 09:20:23 +01:00
gl-renderer: Don't require buffer age when using partial update
EGL_KHR_partial_update can be implemented independently of EGL_EXT_buffer_age so we handle each case seperately. Signed-off-by: Ben Davis <ben.davis@arm.com> Signed-off-by: Dennis Tsiang <dennis.tsiang@arm.com>
This commit is contained in:
parent
2ec15ebf3f
commit
a2a8d382e3
1 changed files with 2 additions and 2 deletions
|
|
@ -1403,7 +1403,7 @@ output_get_damage(struct weston_output *output,
|
|||
EGLBoolean ret;
|
||||
int i;
|
||||
|
||||
if (gr->has_egl_buffer_age) {
|
||||
if (gr->has_egl_buffer_age || gr->has_egl_partial_update) {
|
||||
ret = eglQuerySurface(gr->egl_display, go->egl_surface,
|
||||
EGL_BUFFER_AGE_EXT, &buffer_age);
|
||||
if (ret == EGL_FALSE) {
|
||||
|
|
@ -1443,7 +1443,7 @@ output_rotate_damage(struct weston_output *output,
|
|||
struct gl_output_state *go = get_output_state(output);
|
||||
struct gl_renderer *gr = get_renderer(output->compositor);
|
||||
|
||||
if (!gr->has_egl_buffer_age)
|
||||
if (!gr->has_egl_buffer_age && !gr->has_egl_partial_update)
|
||||
return;
|
||||
|
||||
go->buffer_damage_index += BUFFER_DAMAGE_COUNT - 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue