Merge branch 'remove-copyteximage-hook'
[mesa.git] / src / gallium / drivers / nouveau / nouveau_context.h
1 #ifndef __NOUVEAU_CONTEXT_H__
2 #define __NOUVEAU_CONTEXT_H__
3
4 #include "pipe/p_context.h"
5
6 struct 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
20 static INLINE struct nouveau_context *
21 nouveau_context(struct pipe_context *pipe)
22 {
23 return (struct nouveau_context *)pipe;
24 }
25
26 void
27 nouveau_context_init_vdec(struct nouveau_context *);
28
29 #endif