Tizen 2.0 Release
[profile/ivi/osmesa.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 struct pipe_transfer *
8 nv50_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 nv50_miptree_transfer_del(struct pipe_context *pcontext,
15                           struct pipe_transfer *ptx);
16 void *
17 nv50_miptree_transfer_map(struct pipe_context *pcontext,
18                           struct pipe_transfer *ptx);
19 void
20 nv50_miptree_transfer_unmap(struct pipe_context *pcontext,
21                             struct pipe_transfer *ptx);
22
23 struct nv50_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;
36 };
37
38 #endif