diff options
author | Jesse Natalie <jenatali@microsoft.com> | 2022-10-21 15:15:30 -0700 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-11-02 18:11:41 +0000 |
commit | 6ab615f183b8d13d168f8c5fc2ccb773c1275611 (patch) | |
tree | 0be24202b215eb1dd3ebc055ce9384801205018c /include | |
parent | f35c8b4dbf15dbdfaedc5fb107d808377b15a6e9 (diff) | |
download | mesa-6ab615f183b8d13d168f8c5fc2ccb773c1275611.tar.gz |
include: Add driver data to v2 of mesa_glinterop_device_info
Reviewed-by: Adam Jackson <ajax@redhat.com>
Acked-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19242>
Diffstat (limited to 'include')
-rw-r--r-- | include/GL/mesa_glinterop.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/GL/mesa_glinterop.h b/include/GL/mesa_glinterop.h index 4a7da7479a0..385c65af6f0 100644 --- a/include/GL/mesa_glinterop.h +++ b/include/GL/mesa_glinterop.h @@ -101,7 +101,7 @@ enum { MESA_GLINTEROP_ACCESS_WRITE_ONLY }; -#define MESA_GLINTEROP_DEVICE_INFO_VERSION 1 +#define MESA_GLINTEROP_DEVICE_INFO_VERSION 2 /** * Device information returned by Mesa. @@ -127,6 +127,18 @@ struct mesa_glinterop_device_info { uint32_t device_id; /* Structure version 1 ends here. */ + + /* Size of memory pointed to by out_driver_data. */ + uint32_t driver_data_size; + + /* If the caller wants to query driver-specific data about the OpenGL + * object, this should point to the memory where that data will be stored. + * This is expected to be a temporary staging memory. The pointer is not + * allowed to be saved for later use by Mesa. + */ + void *driver_data; + + /* Structure version 2 ends here. */ }; #define MESA_GLINTEROP_EXPORT_IN_VERSION 1 |