For GPU like ARM mali Utgard EGL/GLX_EXT_buffer_age will make
performace worse. But mesa has no way to disable it.

This patch series make driver be able to disable it and add a
gallium pipe cap for gallium driver usage. Due to currently
only out of tree lima driver need it, and not sure if this is
the right way to disable it, so I send this RFC before lima be
able to upstream.

Qiang Yu (3):
  egl,glx: query dri integer to expose EGL/GLX_EXT_buffer_age
  gallium: add PIPE_CAP_BUFFER_AGE
  egl: fix query buffer age fail when EGL_KHR_partial_update

 include/GL/internal/dri_interface.h                 |  2 ++
 src/egl/drivers/dri2/egl_dri2.c                     |  3 +++
 src/egl/drivers/dri2/platform_android.c             |  1 -
 src/egl/drivers/dri2/platform_drm.c                 |  4 ++--
 src/egl/drivers/dri2/platform_wayland.c             |  2 --
 src/egl/drivers/dri2/platform_x11.c                 |  1 -
 src/egl/main/eglsurface.c                           |  7 ++++++-
 src/gallium/docs/source/screen.rst                  |  1 +
 src/gallium/drivers/etnaviv/etnaviv_screen.c        |  1 +
 src/gallium/drivers/freedreno/freedreno_screen.c    |  1 +
 src/gallium/drivers/i915/i915_screen.c              |  1 +
 src/gallium/drivers/llvmpipe/lp_screen.c            |  1 +
 src/gallium/drivers/nouveau/nv30/nv30_screen.c      |  1 +
 src/gallium/drivers/nouveau/nv50/nv50_screen.c      |  1 +
 src/gallium/drivers/nouveau/nvc0/nvc0_screen.c      |  1 +
 src/gallium/drivers/r300/r300_screen.c              |  1 +
 src/gallium/drivers/r600/r600_pipe.c                |  1 +
 src/gallium/drivers/radeonsi/si_get.c               |  1 +
 src/gallium/drivers/softpipe/sp_screen.c            |  1 +
 src/gallium/drivers/svga/svga_screen.c              |  1 +
 src/gallium/drivers/swr/swr_screen.cpp              |  1 +
 src/gallium/drivers/vc4/vc4_screen.c                |  1 +
 src/gallium/drivers/vc5/vc5_screen.c                |  1 +
 src/gallium/drivers/virgl/virgl_screen.c            |  2 ++
 src/gallium/include/pipe/p_defines.h                |  1 +
 src/gallium/state_trackers/dri/dri_query_renderer.c |  5 +++++
 src/glx/dri3_glx.c                                  | 12 +++++++++---
 src/mesa/drivers/dri/i915/intel_screen.c            |  3 +++
 src/mesa/drivers/dri/i965/intel_screen.c            |  3 +++
 src/mesa/drivers/dri/nouveau/nouveau_screen.c       |  3 +++
 src/mesa/drivers/dri/radeon/radeon_screen.c         |  3 +++
 src/mesa/drivers/dri/swrast/swrast.c                |  3 +++
 32 files changed, 61 insertions(+), 10 deletions(-)

-- 
2.17.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to