[Mesa-dev] [PATCH] dri_interface: document loaderPrivate for getCapability

Marek Olšák maraeo at gmail.com
Mon Jul 31 16:21:41 UTC 2017


From: Marek Olšák <marek.olsak at amd.com>

---
 include/GL/internal/dri_interface.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index c314a43..457fc63 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -1023,20 +1023,24 @@ struct __DRIdri2LoaderExtensionRec {
      */
     __DRIbuffer *(*getBuffersWithFormat)(__DRIdrawable *driDrawable,
 					 int *width, int *height,
 					 unsigned int *attachments, int count,
 					 int *out_count, void *loaderPrivate);
 
     /**
      * Return a loader capability value. If the loader doesn't know the enum,
      * it will return 0.
      *
+     * \param loaderPrivate The last parameter of createNewScreen or
+     *                      createNewScreen2.
+     * \param cap           See the enum.
+     *
      * \since 4
      */
     unsigned (*getCapability)(void *loaderPrivate, enum dri_loader_cap cap);
 };
 
 /**
  * This extension provides alternative screen, drawable and context
  * constructors for DRI2.
  */
 #define __DRI_DRI2 "DRI_DRI2"
-- 
2.7.4



More information about the mesa-dev mailing list