projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f3a131
)
dri: Add an explanatory comment for an important driver entrypoint.
author
Eric Anholt
<eric@anholt.net>
Thu, 26 Sep 2013 17:33:12 +0000
(10:33 -0700)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/common/dri_util.c
b/src/mesa/drivers/dri/common/dri_util.c
index b95970d24d986b116012eb28278dea7173a7f613..fec05a0c20e93f2d8e396ae4b83c8b7eefc300c6 100644
(file)
--- 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,