baa848c47aaedf6dd3a9db95dd5c5ea0807fea83
[profile/ivi/mesa.git] / src / gallium / drivers / nvfx / nvfx_screen.h
1 #ifndef __NVFX_SCREEN_H__
2 #define __NVFX_SCREEN_H__
3
4 #include "nouveau/nouveau_screen.h"
5 #include "nv04_surface_2d.h"
6
7 struct nvfx_screen {
8         struct nouveau_screen base;
9
10         struct nouveau_winsys *nvws;
11
12         struct nvfx_context *cur_ctx;
13
14         unsigned is_nv4x; /* either 0 or ~0 */
15         int vertex_buffer_flags;
16
17         /* HW graphics objects */
18         struct nv04_surface_2d *eng2d;
19         struct nouveau_grobj *eng3d;
20         struct nouveau_notifier *sync;
21
22         /* Query object resources */
23         struct nouveau_notifier *query;
24         struct nouveau_resource *query_heap;
25
26         /* Vtxprog resources */
27         struct nouveau_resource *vp_exec_heap;
28         struct nouveau_resource *vp_data_heap;
29
30         /* Current 3D state of channel */
31         struct nouveau_stateobj *state[NVFX_STATE_MAX];
32 };
33
34 static INLINE struct nvfx_screen *
35 nvfx_screen(struct pipe_screen *screen)
36 {
37         return (struct nvfx_screen *)screen;
38 }
39
40 #endif