glsl2: Add and use new variable mode ir_var_temporary
[mesa/nouveau-pmpeg.git] / src / gallium / drivers / nvfx / nvfx_screen.h
blob5e1c3945aef8cf6a68ad16508335c30a7743c70f
1 #ifndef __NVFX_SCREEN_H__
2 #define __NVFX_SCREEN_H__
4 #include "util/u_double_list.h"
5 #include "nouveau/nouveau_screen.h"
6 #include "nv04_surface_2d.h"
8 struct nvfx_context;
10 struct nvfx_screen {
11 struct nouveau_screen base;
13 struct nouveau_winsys *nvws;
15 struct nvfx_context *cur_ctx;
17 unsigned is_nv4x; /* either 0 or ~0 */
18 boolean force_swtnl;
19 unsigned vertex_buffer_reloc_flags;
20 unsigned index_buffer_reloc_flags;
22 /* HW graphics objects */
23 struct nv04_surface_2d *eng2d;
24 struct nouveau_grobj *eng3d;
25 struct nouveau_notifier *sync;
27 /* Query object resources */
28 struct nouveau_notifier *query;
29 struct nouveau_resource *query_heap;
30 struct list_head query_list;
32 /* Vtxprog resources */
33 struct nouveau_resource *vp_exec_heap;
34 struct nouveau_resource *vp_data_heap;
37 static INLINE struct nvfx_screen *
38 nvfx_screen(struct pipe_screen *screen)
40 return (struct nvfx_screen *)screen;
43 #endif