14bd6339206468a84cd3b4269d712e45ac98cbd0
[mesa.git] / src / gallium / drivers / nvfx / nvfx_screen.h
1 #ifndef __NVFX_SCREEN_H__
2 #define __NVFX_SCREEN_H__
3
4 #include "nouveau/nouveau_screen.h"
5 #include "nv04_surface_2d.h"
6 #include "nvfx_context.h"
7
8 struct nvfx_screen {
9 struct nouveau_screen base;
10
11 struct nouveau_winsys *nvws;
12
13 struct nvfx_context *cur_ctx;
14
15 unsigned is_nv4x; /* either 0 or ~0 */
16 int vertex_buffer_flags;
17
18 /* HW graphics objects */
19 struct nv04_surface_2d *eng2d;
20 struct nouveau_grobj *eng3d;
21 struct nouveau_notifier *sync;
22
23 /* Query object resources */
24 struct nouveau_notifier *query;
25 struct nouveau_resource *query_heap;
26
27 /* Vtxprog resources */
28 struct nouveau_resource *vp_exec_heap;
29 struct nouveau_resource *vp_data_heap;
30 };
31
32 static INLINE struct nvfx_screen *
33 nvfx_screen(struct pipe_screen *screen)
34 {
35 return (struct nvfx_screen *)screen;
36 }
37
38 #endif