Merge commit 'origin/gallium-0.1' into gallium-0.2
[mesa.git] / src / gallium / drivers / nv40 / nv40_screen.h
1 #ifndef __NV40_SCREEN_H__
2 #define __NV40_SCREEN_H__
3
4 #include "pipe/p_screen.h"
5
6 struct nv40_screen {
7 struct pipe_screen pipe;
8
9 struct nouveau_winsys *nvws;
10
11 unsigned cur_pctx;
12
13 /* HW graphics objects */
14 struct nouveau_grobj *curie;
15 struct nouveau_notifier *sync;
16
17 /* Query object resources */
18 struct nouveau_notifier *query;
19 struct nouveau_resource *query_heap;
20
21 /* Vtxprog resources */
22 struct nouveau_resource *vp_exec_heap;
23 struct nouveau_resource *vp_data_heap;
24
25 /* Current 3D state of channel */
26 struct nouveau_stateobj *state[NV40_STATE_MAX];
27 };
28
29 static INLINE struct nv40_screen *
30 nv40_screen(struct pipe_screen *screen)
31 {
32 return (struct nv40_screen *)screen;
33 }
34
35 #endif