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:
Emma Anholt
2022-11-29 10:39:52 -08:00
committed by Marge Bot
parent fbf9f671e4
commit 4dd656e19a
8 changed files with 30 additions and 34 deletions

View File

@@ -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 */