Merge commit 'origin/gallium-0.1' into gallium-0.2
[mesa.git] / src / gallium / drivers / nv30 / nv30_screen.h
1 #ifndef __NV30_SCREEN_H__
2 #define __NV30_SCREEN_H__
3
4 #include "pipe/p_screen.h"
5
6 struct nv30_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 *rankine;
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[NV30_STATE_MAX];
27 };
28
29 static INLINE struct nv30_screen *
30 nv30_screen(struct pipe_screen *screen)
31 {
32 return (struct nv30_screen *)screen;
33 }
34
35 #endif