Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4358 | Serge | 1 | |
2 | #define INTEL_DRM_WINSYS_H |
||
3 | |||
4 | |||
5 | |||
6 | |||
7 | #include "intel_bufmgr.h" |
||
8 | |||
9 | |||
10 | |||
11 | * Winsys |
||
12 | */ |
||
13 | |||
14 | |||
15 | |||
16 | { |
||
17 | struct i915_winsys base; |
||
18 | |||
19 | |||
20 | const char *dump_raw_file; |
||
21 | boolean send_cmd; |
||
22 | |||
23 | |||
24 | |||
25 | |||
26 | |||
27 | |||
28 | }; |
||
29 | |||
30 | |||
31 | i915_drm_winsys(struct i915_winsys *iws) |
||
32 | { |
||
33 | return (struct i915_drm_winsys *)iws; |
||
34 | } |
||
35 | |||
36 | |||
37 | |||
38 | |||
39 | void i915_drm_winsys_init_buffer_functions(struct i915_drm_winsys *idws); |
||
40 | void i915_drm_winsys_init_fence_functions(struct i915_drm_winsys *idws); |
||
41 | |||
42 | |||
43 | |||
44 | * Buffer |
||
45 | */ |
||
46 | |||
47 | |||
48 | |||
49 | unsigned magic; |
||
50 | |||
51 | |||
52 | |||
53 | |||
54 | unsigned map_count; |
||
55 | |||
56 | |||
57 | unsigned flink; |
||
58 | }; |
||
59 | |||
60 | |||
61 | i915_drm_buffer(struct i915_winsys_buffer *buffer) |
||
62 | { |
||
63 | return (struct i915_drm_buffer *)buffer; |
||
64 | } |
||
65 | |||
66 | |||
67 | intel_bo(struct i915_winsys_buffer *buffer) |
||
68 | { |
||
69 | return i915_drm_buffer(buffer)->bo; |
||
70 | } |
||
71 | |||
72 | |||
73 |