dri: Add an explanatory comment for an important driver entrypoint.
authorEric Anholt <eric@anholt.net>
Thu, 26 Sep 2013 17:33:12 +0000 (10:33 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 10 Oct 2013 23:34:30 +0000 (16:34 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/common/dri_util.c

index b95970d24d986b116012eb28278dea7173a7f613..fec05a0c20e93f2d8e396ae4b83c8b7eefc300c6 100644 (file)
@@ -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,