st/dri2: Implement DRI2bufferDamageExtension
authorDaniel Stone <daniels@collabora.com>
Mon, 12 Aug 2019 10:07:07 +0000 (12:07 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 13 Aug 2019 12:40:45 +0000 (14:40 +0200)
commit492ffbed63a2a62759224b1c7d45aa7923d8f542
treea51864e171abb882032fa318262fe39f6e22469a
parenta4a8ebe156bcb690afecdaa44efd6dcf8f0c1de2
st/dri2: Implement DRI2bufferDamageExtension

Add a pipe_screen->set_damage_region() hook to propagate
set-damage-region requests to the driver, it's then up to the driver to
decide what to do with this piece of information.

If the hook is left unassigned, the buffer-damage extension is
considered unsupported.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/include/pipe/p_screen.h
src/gallium/state_trackers/dri/dri2.c