diff options
author | Emma Anholt <emma@anholt.net> | 2022-11-29 10:39:52 -0800 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-12-05 19:26:41 +0000 |
commit | 4dd656e19a7cfcc4023538bc863583ed8b47352b (patch) | |
tree | a629ffbbb60d472d0f11ae42cbba8b1381232071 /include | |
parent | fbf9f671e4e451ca118d99dfe69d6d2233296ff0 (diff) | |
download | mesa-4dd656e19a7cfcc4023538bc863583ed8b47352b.tar.gz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/GL/internal/mesa_interface.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/GL/internal/mesa_interface.h b/include/GL/internal/mesa_interface.h index 8e3ed9c50c6..bfe4a555e3c 100644 --- a/include/GL/internal/mesa_interface.h +++ b/include/GL/internal/mesa_interface.h @@ -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 */ |