nouveau_context.h revision 150bb0fb34b74055c7dd6d2925ce9c5a1d7decf5
1#ifndef __NOUVEAU_CONTEXT_H__ 2#define __NOUVEAU_CONTEXT_H__ 3 4#include "pipe/p_context.h" 5 6struct nouveau_context { 7 struct pipe_context pipe; 8 struct nouveau_screen *screen; 9 10 boolean vbo_dirty; 11 12 void (*copy_data)(struct nouveau_context *, 13 struct nouveau_bo *dst, unsigned, unsigned, 14 struct nouveau_bo *src, unsigned, unsigned, unsigned); 15 void (*push_data)(struct nouveau_context *, 16 struct nouveau_bo *dst, unsigned, unsigned, 17 unsigned, const void *); 18}; 19 20static INLINE struct nouveau_context * 21nouveau_context(struct pipe_context *pipe) 22{ 23 return (struct nouveau_context *)pipe; 24} 25 26void 27nouveau_context_init_vdec(struct nouveau_context *); 28 29#endif 30