Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
[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 /* HW graphics objects */
12 struct nouveau_grobj *rankine;
13 struct nouveau_notifier *sync;
14
15 /* Query object resources */
16 struct nouveau_notifier *query;
17 struct nouveau_resource *query_heap;
18
19 /* Vtxprog resources */
20 struct nouveau_resource *vp_exec_heap;
21 struct nouveau_resource *vp_data_heap;
22
23 /* Current 3D state of channel */
24 struct nouveau_stateobj *state[NV30_STATE_MAX];
25 };
26
27 static INLINE struct nv30_screen *
28 nv30_screen(struct pipe_screen *screen)
29 {
30 return (struct nv30_screen *)screen;
31 }
32
33 #endif