diff options
author | Eric Anholt <[email protected]> | 2013-09-26 10:33:12 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-10-10 16:34:30 -0700 |
commit | 683f6daa97fa09118b50419fb37c543ede65be18 (patch) | |
tree | 8ab3b66b5d8c3d074f59120d1e34444fef6d00d7 | |
parent | 7f3a131b6e998653e3a08cb57ff46a264ece0ee9 (diff) |
dri: Add an explanatory comment for an important driver entrypoint.
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 7 |
1 files changed, 7 insertions, 0 deletions
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, |