DRI2: Add ReuseBufferNotify hook
authorPauli Nieminen <ext-pauli.nieminen@nokia.com>
Mon, 1 Nov 2010 14:21:59 +0000 (16:21 +0200)
committerKeith Packard <keithp@keithp.com>
Wed, 21 Sep 2011 20:54:55 +0000 (13:54 -0700)
commit86f8da0aa7612558e6563f5de0d9f9793854053f
tree3fbc7055b839c6a02b517444451127f813584b88
parent2f47433fef2cf63063e069ead9003891d135e87f
DRI2: Add ReuseBufferNotify hook

ReuseBufferNotify hook is called whenever old buffer is reused in DRI2
code.

Driver can use this hook to rewrite the buffer name if hardware requires
shared buffers. Shared buffer might be some hardware limited resources like
framebuffer that is preallocated in boot.

Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
hw/xfree86/dri2/dri2.c
hw/xfree86/dri2/dri2.h