~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/r300/radeon_bocs_wrapper.h

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef RADEON_CS_WRAPPER_H
2
 
#define RADEON_CS_WRAPPER_H
3
 
 
4
 
/* to be used to build locally in mesa with no libdrm bits */
5
 
#include "../radeon/radeon_bo_drm.h"
6
 
#include "../radeon/radeon_cs_drm.h"
7
 
 
8
 
#ifdef HAVE_LIBDRM_RADEON
9
 
 
10
 
#include "radeon_bo.h"
11
 
#include "radeon_bo_gem.h"
12
 
#include "radeon_cs.h"
13
 
#include "radeon_cs_gem.h"
14
 
 
15
 
#else
16
 
#include <stdint.h>
17
 
 
18
 
#define RADEON_GEM_DOMAIN_CPU 0x1   // Cached CPU domain
19
 
#define RADEON_GEM_DOMAIN_GTT 0x2   // GTT or cache flushed
20
 
#define RADEON_GEM_DOMAIN_VRAM 0x4  // VRAM domain
21
 
 
22
 
#define RADEON_TILING_MACRO 0x1
23
 
#define RADEON_TILING_MICRO 0x2
24
 
#define RADEON_TILING_SWAP 0x4
25
 
 
26
 
#ifndef RADEON_TILING_SURFACE
27
 
#define RADEON_TILING_SURFACE 0x8 /* this object requires a surface
28
 
                                   * when mapped - i.e. front buffer */
29
 
#endif
30
 
 
31
 
#ifndef DRM_RADEON_GEM_INFO
32
 
#define DRM_RADEON_GEM_INFO 0x1c
33
 
 
34
 
struct drm_radeon_gem_info {
35
 
        uint64_t gart_size;
36
 
        uint64_t vram_size;
37
 
        uint64_t vram_visible;
38
 
};
39
 
 
40
 
struct drm_radeon_info {
41
 
        uint32_t request;
42
 
        uint32_t pad;
43
 
        uint32_t value;
44
 
};
45
 
#endif
46
 
 
47
 
#ifndef RADEON_PARAM_DEVICE_ID
48
 
#define RADEON_PARAM_DEVICE_ID 16
49
 
#endif
50
 
 
51
 
#ifndef RADEON_PARAM_NUM_Z_PIPES
52
 
#define RADEON_PARAM_NUM_Z_PIPES 17
53
 
#endif
54
 
 
55
 
#ifndef RADEON_INFO_DEVICE_ID
56
 
#define RADEON_INFO_DEVICE_ID 0
57
 
#endif
58
 
#ifndef RADEON_INFO_NUM_GB_PIPES
59
 
#define RADEON_INFO_NUM_GB_PIPES 0
60
 
#endif
61
 
 
62
 
#ifndef RADEON_INFO_NUM_Z_PIPES
63
 
#define RADEON_INFO_NUM_Z_PIPES 0
64
 
#endif
65
 
 
66
 
#ifndef DRM_RADEON_INFO
67
 
#define DRM_RADEON_INFO 0x1
68
 
#endif
69
 
 
70
 
static inline void radeon_gem_get_kernel_name(struct radeon_bo *dummy, uint32_t *value)
71
 
{
72
 
}
73
 
 
74
 
static inline uint32_t radeon_gem_name_bo(struct radeon_bo *dummy)
75
 
{
76
 
  return 0;
77
 
}
78
 
 
79
 
static inline void *radeon_bo_manager_gem_ctor(int fd)
80
 
{
81
 
  return NULL;
82
 
}
83
 
 
84
 
static inline void radeon_bo_manager_gem_dtor(void *dummy)
85
 
{
86
 
}
87
 
 
88
 
static inline void *radeon_cs_manager_gem_ctor(int fd)
89
 
{
90
 
  return NULL;
91
 
}
92
 
 
93
 
static inline void radeon_cs_manager_gem_dtor(void *dummy)
94
 
{
95
 
}
96
 
 
97
 
static inline void radeon_tracker_print(void *ptr, int io)
98
 
{
99
 
}
100
 
#endif
101
 
 
102
 
#include "radeon_bo_legacy.h"
103
 
#include "radeon_cs_legacy.h"
104
 
 
105
 
#endif