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