nv50_screen.h revision 63a3a3762c8e1a67666d36b35fdb0ada8e4b7d08
1#ifndef __NV50_SCREEN_H__ 2#define __NV50_SCREEN_H__ 3 4#include "pipe/p_screen.h" 5 6struct nv50_screen { 7 struct pipe_screen pipe; 8 9 struct nouveau_winsys *nvws; 10 11 unsigned cur_pctx; 12 13 struct nouveau_grobj *tesla; 14 struct nouveau_grobj *eng2d; 15 struct nouveau_grobj *m2mf; 16 struct nouveau_notifier *sync; 17 18 struct pipe_buffer *constbuf; 19 struct nouveau_resource *vp_data_heap; 20 21 struct pipe_buffer *tic; 22 struct pipe_buffer *tsc; 23 24 struct nouveau_stateobj *static_init; 25}; 26 27static INLINE struct nv50_screen * 28nv50_screen(struct pipe_screen *screen) 29{ 30 return (struct nv50_screen *)screen; 31} 32 33void nv50_transfer_init_screen_functions(struct pipe_screen *); 34 35#endif 36