drisw: plumb through a swapBuffersWithDamage interface

currently the same as regular swap

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-12 13:06:59 -05:00
committed by Marge Bot
parent 3aea0e31a4
commit fd6f7e3f16
5 changed files with 37 additions and 4 deletions

View File

@@ -799,7 +799,7 @@ struct __DRIuseInvalidateExtensionRec {
* returns a reliable value. The X server requires v1 and uses v2.
*/
#define __DRI_CORE "DRI_Core"
#define __DRI_CORE_VERSION 2
#define __DRI_CORE_VERSION 3
struct __DRIcoreExtensionRec {
__DRIextension base;
@@ -858,6 +858,8 @@ struct __DRIcoreExtensionRec {
/* Used by the X server. */
int (*unbindContext)(__DRIcontext *ctx);
void (*swapBuffersWithDamage)(__DRIdrawable *drawable, int nrects, const int *rects);
};
/**