revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / mesa / src / gallium / drivers / nvc0 / nvc0_transfer.h
blob803ee3463ec7998c3c6d0cdd4c1abbfdffb3858a
2 #ifndef __NVC0_TRANSFER_H__
3 #define __NVC0_TRANSFER_H__
5 #include "pipe/p_state.h"
7 struct pipe_transfer *
8 nvc0_miptree_transfer_new(struct pipe_context *pcontext,
9 struct pipe_resource *pt,
10 unsigned level,
11 unsigned usage,
12 const struct pipe_box *box);
13 void
14 nvc0_miptree_transfer_del(struct pipe_context *pcontext,
15 struct pipe_transfer *ptx);
16 void *
17 nvc0_miptree_transfer_map(struct pipe_context *pcontext,
18 struct pipe_transfer *ptx);
19 void
20 nvc0_miptree_transfer_unmap(struct pipe_context *pcontext,
21 struct pipe_transfer *ptx);
23 struct nvc0_m2mf_rect {
24 struct nouveau_bo *bo;
25 uint32_t base;
26 unsigned domain;
27 uint32_t pitch;
28 uint32_t width;
29 uint32_t x;
30 uint32_t height;
31 uint32_t y;
32 uint16_t depth;
33 uint16_t z;
34 uint16_t tile_mode;
35 uint16_t cpp;
38 void
39 nvc0_m2mf_transfer_rect(struct pipe_screen *pscreen,
40 const struct nvc0_m2mf_rect *dst,
41 const struct nvc0_m2mf_rect *src,
42 uint32_t nblocksx, uint32_t nblocksy);
44 #endif