aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-04-21 16:16:07 +0100
committerEmil Velikov <[email protected]>2016-05-24 23:03:00 +0100
commitcb0708c8438390509d0814cda45e7576b7c0555c (patch)
tree0f2e1b2aa843156bdcb67a4f737c81475ef79ffd
parenta3eb8702fb4de03ca132a66e7e8df1a0b8f85e9a (diff)
mesa_glinterop: fix GL interop *_VERSION comments
Using the macro to set the version is wrong and ill-advised. Please don't do it. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Tested-by: Tom Stellard <[email protected]>
-rw-r--r--include/GL/mesa_glinterop.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/GL/mesa_glinterop.h b/include/GL/mesa_glinterop.h
index 5c172c6ca9e..f637409d25d 100644
--- a/include/GL/mesa_glinterop.h
+++ b/include/GL/mesa_glinterop.h
@@ -93,7 +93,8 @@ enum {
* Device information returned by Mesa.
*/
typedef struct _mesa_glinterop_device_info {
- /* The caller should set this to: MESA_GLINTEROP_DEVICE_INFO_VERSION */
+ /* The caller should set this to the version of the struct they support */
+ /* NOTE: Do not use the MESA_GLINTEROP_DEVICE_INFO_VERSION macro */
uint32_t struct_version;
/* PCI location */
@@ -124,7 +125,8 @@ typedef struct _mesa_glinterop_device_info {
* Input parameters to Mesa interop export functions.
*/
typedef struct _mesa_glinterop_export_in {
- /* The caller should set this to: MESA_GLINTEROP_EXPORT_IN_VERSION */
+ /* The caller should set this to the version of the struct they support */
+ /* NOTE: Do not use the MESA_GLINTEROP_EXPORT_IN_VERSION macro */
uint32_t struct_version;
/* One of the following:
@@ -183,7 +185,8 @@ typedef struct _mesa_glinterop_export_in {
* Outputs of Mesa interop export functions.
*/
typedef struct _mesa_glinterop_export_out {
- /* The caller should set this to: MESA_GLINTEROP_EXPORT_OUT_VERSION */
+ /* The caller should set this to the version of the struct they support */
+ /* NOTE: Do not use the MESA_GLINTEROP_EXPORT_OUT_VERSION macro */
uint32_t struct_version;
/* The DMABUF handle. It must be closed by the caller using the POSIX