Path: blob/21.2-virgl/src/gallium/include/frontend/winsys_handle.h
4565 views
1#ifndef _WINSYS_HANDLE_H_2#define _WINSYS_HANDLE_H_34#ifdef __cplusplus5extern "C" {6#endif78#define WINSYS_HANDLE_TYPE_SHARED 09#define WINSYS_HANDLE_TYPE_KMS 110#define WINSYS_HANDLE_TYPE_FD 211#define WINSYS_HANDLE_TYPE_SHMID 312#define WINSYS_HANDLE_TYPE_D3D12_RES 41314/**15* For use with pipe_screen::{texture_from_handle|texture_get_handle}.16*/17struct winsys_handle18{19/**20* Input for texture_from_handle, valid values are21* WINSYS_HANDLE_TYPE_SHARED or WINSYS_HANDLE_TYPE_FD.22* Input to texture_get_handle,23* to select handle for kms, flink, or prime.24*/25unsigned type;26/**27* Input for texture_get_handle, allows to export the offset28* of a specific layer of an array texture.29*/30unsigned layer;31/**32* Input for texture_get_handle, allows to export of a specific plane of a33* texture.34*/35unsigned plane;36/**37* Input to texture_from_handle.38* Output for texture_get_handle.39*/40unsigned handle;41/**42* Input to texture_from_handle.43* Output for texture_get_handle.44*/45unsigned stride;46/**47* Input to texture_from_handle.48* Output for texture_get_handle.49*/50unsigned offset;5152/**53* Input to resource_from_handle.54* Output from resource_get_handle.55*/56uint64_t format;5758/**59* Input to resource_from_handle.60* Output from resource_get_handle.61*/62uint64_t modifier;6364/**65* Input to resource_from_handle.66* Output for resource_get_handle.67*/68void *com_obj;69};7071#ifdef __cplusplus72}73#endif7475#endif /* _WINSYS_HANDLE_H_ */767778