Merge remote branch 'origin/7.8'
[mesa.git] / src / gallium / drivers / nv50 / nv50_transfer.h
1
2 #ifndef NV50_TRANSFER_H
3 #define NV50_TRANSFER_H
4
5 #include "pipe/p_state.h"
6
7
8 struct pipe_transfer *
9 nv50_miptree_transfer_new(struct pipe_context *pcontext,
10 struct pipe_resource *pt,
11 struct pipe_subresource sr,
12 unsigned usage,
13 const struct pipe_box *box);
14 void
15 nv50_miptree_transfer_del(struct pipe_context *pcontext,
16 struct pipe_transfer *ptx);
17 void *
18 nv50_miptree_transfer_map(struct pipe_context *pcontext,
19 struct pipe_transfer *ptx);
20 void
21 nv50_miptree_transfer_unmap(struct pipe_context *pcontext,
22 struct pipe_transfer *ptx);
23
24 extern void
25 nv50_upload_sifc(struct nv50_context *nv50,
26 struct nouveau_bo *bo, unsigned dst_offset, unsigned reloc,
27 unsigned dst_format, int dst_w, int dst_h, int dst_pitch,
28 void *src, unsigned src_format, int src_pitch,
29 int x, int y, int w, int h, int cpp);
30
31 #endif