egl/kopper: plumb through SwapBuffersWithDamage

Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27703>
This commit is contained in:
Mike Blumenkrantz
2024-02-13 14:43:20 -05:00
committed by Marge Bot
parent 0c82a67ea6
commit ad8794884c
3 changed files with 61 additions and 7 deletions
+2 -1
View File
@@ -47,7 +47,7 @@ typedef struct __DRIkopperDrawableInfoRec __DRIkopperDrawableInfo;
* relying on a particular window system or DRI protocol.
*/
#define __DRI_KOPPER "DRI_Kopper"
#define __DRI_KOPPER_VERSION 1
#define __DRI_KOPPER_VERSION 2
struct __DRIkopperDrawableInfoRec {
bool multiplanes_available;
@@ -71,6 +71,7 @@ struct __DRIkopperExtensionRec {
int64_t (*swapBuffers)(__DRIdrawable *draw, uint32_t flush_flags);
void (*setSwapInterval)(__DRIdrawable *drawable, int interval);
int (*queryBufferAge)(__DRIdrawable *drawable);
int64_t (*swapBuffersWithDamage)(__DRIdrawable *draw, uint32_t flush_flags, int nrects, const int *rects);
};
/**