Merge branch 'master' into gallium-texture-transfer
[mesa.git] / src / gallium / drivers / nv50 / nv50_screen.h
1 #ifndef __NV50_SCREEN_H__
2 #define __NV50_SCREEN_H__
3
4 #include "pipe/p_screen.h"
5
6 struct nv50_screen {
7 struct pipe_screen pipe;
8
9 struct nouveau_winsys *nvws;
10
11 unsigned cur_pctx;
12
13 struct nouveau_grobj *tesla;
14 struct nouveau_grobj *eng2d;
15 struct nouveau_notifier *sync;
16
17 struct pipe_buffer *constbuf;
18 struct nouveau_resource *vp_data_heap;
19
20 struct pipe_buffer *tic;
21 struct pipe_buffer *tsc;
22
23 struct nouveau_stateobj *static_init;
24 };
25
26 static INLINE struct nv50_screen *
27 nv50_screen(struct pipe_screen *screen)
28 {
29 return (struct nv50_screen *)screen;
30 }
31
32 void nv50_surface_init_screen_functions(struct pipe_screen *);
33
34 #endif