nouveau_context.h revision 1ba8e9510812f155359d380bda6876cdee5ba21e
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, void *); 18}; 19 20static INLINE struct nouveau_context * 21nouveau_context(struct pipe_context *pipe) 22{ 23 return (struct nouveau_context *)pipe; 24} 25 26#endif 27