dri: Add createNewScreen into the __DRI_MESA extension.
Now the loaders don't have to switch on dri2/dri3/swrast. Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20069>
This commit is contained in:
@@ -46,6 +46,14 @@ struct __DRImesaCoreExtensionRec {
|
||||
*/
|
||||
#define MESA_INTERFACE_VERSION_STRING PACKAGE_VERSION MESA_GIT_SHA1
|
||||
const char *version_string;
|
||||
|
||||
/* Screen creation function regardless of DRI2, image, or swrast backend.
|
||||
* (Nothing uses the old __DRI_CORE screen create).
|
||||
*
|
||||
* If not associated with a DRM fd (non-swkms swrast), the fd argument should
|
||||
* be -1.
|
||||
*/
|
||||
__DRIcreateNewScreen2Func createNewScreen;
|
||||
};
|
||||
|
||||
#endif /* MESA_INTERFACE_H */
|
||||
|
Reference in New Issue
Block a user