summaryrefslogtreecommitdiff
path: root/src/radeon_dummy_bufmgr.h
blob: e08e65691733380ce1db772bf77c1527562addcd (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
58
59
60
61
62

#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;}

static inline int radeon_cs_space_add_persistent_bo(Bool cs, struct radeon_bo *bo,
						    uint32_t read_domains, uint32_t write_domain)
{
  return 0;
}

static inline int radeon_cs_space_check(Bool cs)
{
  return 0;
}

static inline void radeon_cs_flush_indirect(ScrnInfoPtr pScrn)
{
}

static inline void radeon_ddx_cs_start(ScrnInfoPtr pScrn, int n,
				       const char *file, const char *func, int line)
{
}

#endif