[Mesa-dev] [PATCH] egl: fix _eglQuerySurface in EGL_BUFFER_AGE_EXT case

Chad Versace chadversary at chromium.org
Thu Jun 8 18:29:42 UTC 2017


On Thu 08 Jun 2017, Tapani Pälli wrote:
> Specification states that in case of error, value should not be
> written, patch changes buffer age queries to return -1 in case of
> error so that we can skip changing the value.
> 
> In addition, small change to droid_query_buffer_age to return 0
> in case buffer does not have a back buffer available.
> 
> Fixes:
>    dEQP-EGL.functional.negative_partial_update.not_postable_surface
> 
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
>  src/egl/drivers/dri2/platform_android.c | 4 ++--
>  src/egl/drivers/dri2/platform_drm.c     | 2 +-
>  src/egl/main/eglsurface.c               | 6 +++++-
>  3 files changed, 8 insertions(+), 4 deletions(-)

Reviewed-by: Chad Versace <chadversary at chromium.org>


More information about the mesa-dev mailing list