i965: Fix ENDLOOP to only patch up this loop's BREAK and CONT.
[mesa.git] / src / gallium / drivers / nv30 / nv30_screen.h
1 #ifndef __NV30_SCREEN_H__
2 #define __NV30_SCREEN_H__
3
4 #include "nouveau/nouveau_screen.h"
5
6 #include "nouveau/nv04_surface_2d.h"
7
8 struct nv30_screen {
9 struct nouveau_screen base;
10
11 struct nouveau_winsys *nvws;
12
13 struct nv30_context *cur_ctx;
14
15 /* HW graphics objects */
16 struct nv04_surface_2d *eng2d;
17 struct nouveau_grobj *rankine;
18 struct nouveau_notifier *sync;
19
20 /* Query object resources */
21 struct nouveau_notifier *query;
22 struct nouveau_resource *query_heap;
23
24 /* Vtxprog resources */
25 struct nouveau_resource *vp_exec_heap;
26 struct nouveau_resource *vp_data_heap;
27
28 /* Current 3D state of channel */
29 struct nouveau_stateobj *state[NV30_STATE_MAX];
30 };
31
32 static INLINE struct nv30_screen *
33 nv30_screen(struct pipe_screen *screen)
34 {
35 return (struct nv30_screen *)screen;
36 }
37
38 void
39 nv30_screen_init_transfer_functions(struct pipe_screen *pscreen);
40
41 #endif