diff options
author | Christopher James Halse Rogers <raof@ubuntu.com> | 2013-11-21 15:11:39 +1100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-12-10 09:46:05 +0100 |
commit | d5a3a2d2fbc42da04ff7ea09356ada134a42d6dd (patch) | |
tree | 78713128416960253fd27072b8197f598e91dd13 /src/gallium/include | |
parent | 343133167f4ae127a375791790c982bde12025c4 (diff) | |
download | external_mesa3d-d5a3a2d2fbc42da04ff7ea09356ada134a42d6dd.zip external_mesa3d-d5a3a2d2fbc42da04ff7ea09356ada134a42d6dd.tar.gz external_mesa3d-d5a3a2d2fbc42da04ff7ea09356ada134a42d6dd.tar.bz2 |
gallium/winsys/drm: Prepare for passing prime fds in winsys_handle
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/state_tracker/drm_driver.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/include/state_tracker/drm_driver.h b/src/gallium/include/state_tracker/drm_driver.h index f9bd222..5b76d87 100644 --- a/src/gallium/include/state_tracker/drm_driver.h +++ b/src/gallium/include/state_tracker/drm_driver.h @@ -10,6 +10,8 @@ struct pipe_resource; #define DRM_API_HANDLE_TYPE_SHARED 0 #define DRM_API_HANDLE_TYPE_KMS 1 +#define DRM_API_HANDLE_TYPE_FD 2 + /** * For use with pipe_screen::{texture_from_handle|texture_get_handle}. @@ -17,9 +19,10 @@ struct pipe_resource; struct winsys_handle { /** - * Unused for texture_from_handle, always - * DRM_API_HANDLE_TYPE_SHARED. Input to texture_get_handle, - * use TEXTURE_USAGE to select handle for kms or ipc. + * Input for texture_from_handle, valid values are + * DRM_API_HANDLE_TYPE_SHARED or DRM_API_HANDLE_TYPE_FD. + * Input to texture_get_handle, + * to select handle for kms, flink, or prime. */ unsigned type; /** |