blob: 167c1a937fda696f123207b7a63b1bdca7be8831 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#ifndef _WINSYS_HANDLE_H_
#define _WINSYS_HANDLE_H_
#ifdef __cplusplus
extern "C" {
#endif
#define WINSYS_HANDLE_TYPE_SHARED 0
#define WINSYS_HANDLE_TYPE_KMS 1
#define WINSYS_HANDLE_TYPE_FD 2
#define WINSYS_HANDLE_TYPE_SHMID 3
/**
* For use with pipe_screen::{texture_from_handle|texture_get_handle}.
*/
struct winsys_handle
{
/**
* Input for texture_from_handle, valid values are
* WINSYS_HANDLE_TYPE_SHARED or WINSYS_HANDLE_TYPE_FD.
* Input to texture_get_handle,
* to select handle for kms, flink, or prime.
*/
unsigned type;
/**
* Input for texture_get_handle, allows to export the offset
* of a specific layer of an array texture.
*/
unsigned layer;
/**
* Input to texture_from_handle.
* Output for texture_get_handle.
*/
unsigned handle;
/**
* Input to texture_from_handle.
* Output for texture_get_handle.
*/
unsigned stride;
/**
* Input to texture_from_handle.
* Output for texture_get_handle.
*/
unsigned offset;
/**
* Input to resource_from_handle.
* Output from resource_get_handle.
*/
uint64_t modifier;
};
#ifdef __cplusplus
}
#endif
#endif /* _WINSYS_HANDLE_H_ */
|