[Mesa-dev] [PATCH 2/7] dri: Add an explanatory comment for an important driver entrypoint.
Eric Anholt
eric at anholt.net
Thu Sep 26 20:35:57 PDT 2013
---
src/mesa/drivers/dri/common/dri_util.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index b95970d..fec05a0 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,
--
1.8.4.rc3
More information about the mesa-dev
mailing list