dri: move private __DRIDriverVtableExtension out of dri_interface.h

It's only used internally.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19741>
This commit is contained in:
Marek Olšák
2022-11-14 20:48:38 -05:00
committed by Marge Bot
parent 8cb8a3c03d
commit 426f1cbea3
2 changed files with 7 additions and 17 deletions

View File

@@ -1856,23 +1856,6 @@ typedef struct __DRIconfigOptionsExtensionRec {
char *(*getXml)(const char *driver_name);
} __DRIconfigOptionsExtension;
/**
* This extension provides a driver vtable to a set of common driver helper
* functions (driCoreExtension, driDRI2Extension) within the driver
* implementation, as opposed to having to pass them through a global
* variable.
*
* It is not intended to be public API to the actual loader, and the vtable
* layout may change at any time.
*/
#define __DRI_DRIVER_VTABLE "DRI_DriverVtable"
#define __DRI_DRIVER_VTABLE_VERSION 1
typedef struct __DRIDriverVtableExtensionRec {
__DRIextension base;
const struct __DriverAPIRec *vtable;
} __DRIDriverVtableExtension;
/**
* Query renderer driver extension
*

View File

@@ -62,6 +62,13 @@
#include "util/xmlconfig.h"
#include <stdbool.h>
#define __DRI_DRIVER_VTABLE "DRI_DriverVtable"
typedef struct __DRIDriverVtableExtensionRec {
__DRIextension base;
const struct __DriverAPIRec *vtable;
} __DRIDriverVtableExtension;
struct __DRIconfigRec {
struct gl_config modes;
};