nouveau: replace vtxbuf/idxbuf caps with BO_ flags in nouveau_screen and fix uncached...
[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 #include "nvfx_context.h"
8
9 struct nvfx_screen {
10 struct nouveau_screen base;
11
12 struct nouveau_winsys *nvws;
13
14 struct nvfx_context *cur_ctx;
15
16 unsigned is_nv4x; /* either 0 or ~0 */
17 boolean force_swtnl;
18 unsigned vertex_buffer_reloc_flags;
19 unsigned index_buffer_reloc_flags;
20
21 /* HW graphics objects */
22 struct nv04_surface_2d *eng2d;
23 struct nouveau_grobj *eng3d;
24 struct nouveau_notifier *sync;
25
26 /* Query object resources */
27 struct nouveau_notifier *query;
28 struct nouveau_resource *query_heap;
29 struct list_head query_list;
30
31 /* Vtxprog resources */
32 struct nouveau_resource *vp_exec_heap;
33 struct nouveau_resource *vp_data_heap;
34 };
35
36 static INLINE struct nvfx_screen *
37 nvfx_screen(struct pipe_screen *screen)
38 {
39 return (struct nvfx_screen *)screen;
40 }
41
42 #endif