[PATCH 0/2] Reuse kms fbs

Ander Conselvan de Oliveira ander.conselvan.de.oliveira at intel.com
Mon Apr 30 03:31:27 PDT 2012

Instead of creating and destroying a kms fb object on every frame, use
gbm_bo_get/set_user_data() to store the fb object in a gbm_surface bo
and reuse it when needed.

This depends on the gbm patches I just sent to the mesa-dev mailing list.

I needed the first patch to be able to test the changes since the
egl surface would not be destroyed while it was current, leading to
the bos associated with it not being destroyed.

Ander Conselvan de Oliveira (2):
  compositor-drm: call EGL cleanup functions on exit
  compositor-drm: don't create and destroy kms fbs on every frame

 src/compositor-drm.c |  100 ++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 81 insertions(+), 19 deletions(-)


More information about the wayland-devel mailing list