st/mesa: fix incorrect RowStride computation
[mesa.git] / src / gallium / drivers / nv40 / nv40_screen.h
1 #ifndef __NV40_SCREEN_H__
2 #define __NV40_SCREEN_H__
3
4 #include "nouveau/nouveau_screen.h"
5 #include "nouveau/nv04_surface_2d.h"
6
7 struct nv40_screen {
8 struct nouveau_screen base;
9
10 struct nouveau_winsys *nvws;
11
12 struct nv40_context *cur_ctx;
13
14 /* HW graphics objects */
15 struct nv04_surface_2d *eng2d;
16 struct nouveau_grobj *curie;
17 struct nouveau_notifier *sync;
18
19 /* Query object resources */
20 struct nouveau_notifier *query;
21 struct nouveau_resource *query_heap;
22
23 /* Vtxprog resources */
24 struct nouveau_resource *vp_exec_heap;
25 struct nouveau_resource *vp_data_heap;
26
27 /* Current 3D state of channel */
28 struct nouveau_stateobj *state[NV40_STATE_MAX];
29 };
30
31 static INLINE struct nv40_screen *
32 nv40_screen(struct pipe_screen *screen)
33 {
34 return (struct nv40_screen *)screen;
35 }
36
37 void
38 nv40_screen_init_transfer_functions(struct pipe_screen *pscreen);
39
40 #endif