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"
7 #include "nvfx_context.h"
10 struct nouveau_screen base
;
12 struct nouveau_winsys
*nvws
;
14 struct nvfx_context
*cur_ctx
;
16 unsigned is_nv4x
; /* either 0 or ~0 */
18 unsigned vertex_buffer_reloc_flags
;
19 unsigned index_buffer_reloc_flags
;
21 /* HW graphics objects */
22 struct nv04_surface_2d
*eng2d
;
23 struct nouveau_grobj
*eng3d
;
24 struct nouveau_notifier
*sync
;
26 /* Query object resources */
27 struct nouveau_notifier
*query
;
28 struct nouveau_resource
*query_heap
;
29 struct list_head query_list
;
31 /* Vtxprog resources */
32 struct nouveau_resource
*vp_exec_heap
;
33 struct nouveau_resource
*vp_data_heap
;
36 static INLINE
struct nvfx_screen
*
37 nvfx_screen(struct pipe_screen
*screen
)
39 return (struct nvfx_screen
*)screen
;