From: Eric Anholt Date: Thu, 26 Sep 2013 17:33:12 +0000 (-0700) Subject: dri: Add an explanatory comment for an important driver entrypoint. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=683f6daa97fa09118b50419fb37c543ede65be18;p=mesa.git dri: Add an explanatory comment for an important driver entrypoint. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index b95970d24d9..fec05a0c20e 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -73,6 +73,13 @@ setupLoaderExtensions(__DRIscreen *psp, } } +/** + * This is the first entrypoint in the driver called by the DRI driver loader + * after dlopen()ing it. + * + * It's used to create global state for the driver across contexts on the same + * Display. + */ static __DRIscreen * dri2CreateNewScreen(int scrn, int fd, const __DRIextension **extensions,