egl: disable partial redraw when gallium hud is active
authorItalo Nicola <italonicola@collabora.com>
Wed, 14 Dec 2022 23:29:14 +0000 (20:29 -0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 1 Jun 2023 14:48:27 +0000 (14:48 +0000)
commite516a0a94fd201444eef2f618d447f8e68aeb347
tree12de4c3d79ee2b934690a6778521987a98eaa50c
parent86532fa21dee16debf4f96a8b6eb6e894076845e
egl: disable partial redraw when gallium hud is active

We draw the gallium hud directly to the rendered buffer, meaning that if
the buffer age is queried and then a partial redraw is done, we get a
ghosting effect from the hud drawn in previous frames.

Since we need to draw the hud with updated values every frame anyway,
there's no harm in disabling the buffer age and partial redraw.

Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Tested-by: Chris Healy <cphealy@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20387>
src/egl/main/eglapi.c
src/egl/main/egldisplay.h
src/egl/main/eglsurface.c