summaryrefslogtreecommitdiff
path: root/src/radeon_dummy_bufmgr.h
blob: bf89292cd447ed1d341b319270cb4b9ae83b3636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57

#ifndef RADEON_DUMMY_BUFMGR_H
#define RADEON_DUMMY_BUFMGR_H
/* when we don't have modesetting but we still need these functions */

struct radeon_bo {
  int dummy;
  void *ptr;
};

static inline int radeon_cs_begin(Bool dummy, int d2, const char *file,
				   const char *func, int line)
{
  return 0;
}

static inline int radeon_cs_end(Bool dummy, const char *file,
				const char *func, int line)
{
  return 0;
}

static inline void radeon_cs_write_dword(Bool cs, uint32_t dword)
{
}

static inline int radeon_cs_write_reloc(Bool cs,
                                        struct radeon_bo *bo,
                                        uint32_t read_domain,
                                        uint32_t write_domain,
                                        uint32_t flags)
{
  return 0;
}

static inline int radeon_bo_map(struct radeon_bo *bo, int write) {return 0;}
static inline void radeon_bo_ref(struct radeon_bo *bo) {return;}
static inline struct radeon_bo *radeon_bo_unref(struct radeon_bo *bo) {return NULL;}
static inline void radeon_bo_unmap(struct radeon_bo *bo) {return;}
static inline int radeon_bo_wait(struct radeon_bo *bo) {return 0;}


struct radeon_cs_space_check {
  struct radeon_bo *bo;
  int read_domains;
  int write_domain;
  int new_accounted;
};

static inline int radeon_cs_space_check(Bool cs, struct radeon_cs_space_check *bos, int num)
{
  return 0;
}
#define RADEON_CS_SPACE_OP_TO_BIG 0
#define RADEON_CS_SPACE_FLUSH 1

#endif