drisw: hook up EXT_buffer_age

drisw only has a single drawable, which means the buffer age is always 1

Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27554>
This commit is contained in:
Mike Blumenkrantz
2024-02-09 10:51:15 -05:00
committed by Marge Bot
parent 9eb4b86e76
commit 81ecb21d50
6 changed files with 43 additions and 2 deletions

View File

@@ -913,7 +913,7 @@ struct __DRIframebufferRec {
* extension. Version 1 is required by the X server, and version 3 is used.
*/
#define __DRI_SWRAST "DRI_SWRast"
#define __DRI_SWRAST_VERSION 4
#define __DRI_SWRAST_VERSION 5
struct __DRIswrastExtensionRec {
__DRIextension base;
@@ -960,6 +960,10 @@ struct __DRIswrastExtensionRec {
const __DRIextension **driver_extensions,
const __DRIconfig ***driver_configs,
void *loaderPrivate);
/**
* \since version 5
*/
int (*queryBufferAge)(__DRIdrawable *drawable);
};