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(-)

-- 
1.7.4.1

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to