diff options
author | Dave Airlie <airlied@redhat.com> | 2009-06-30 16:24:37 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-06-30 16:32:01 +1000 |
commit | e932836691aeaec37794fdaed2dabb22710fd171 (patch) | |
tree | 078de611599b48afe5b6cc3d52175004bc8a3662 /src/radeon_dummy_bufmgr.h | |
parent | bb04b450ed00ca4b1aa44c33085567d47b33b547 (diff) |
radeon: initial preparation for kms patch.
This patch contains most of the changes to the EXA and texture video
accel code.
It adds a few bits of pixmap support but doesn't actually do anything
useful KMS yet.
Testing this should not have any regressions over what we have already,
biggest worries are r6xx, I've fixed a textured video one, but no idea
what other might lurk
It won't build against libdrm radeon yet either
Diffstat (limited to 'src/radeon_dummy_bufmgr.h')
-rw-r--r-- | src/radeon_dummy_bufmgr.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/radeon_dummy_bufmgr.h b/src/radeon_dummy_bufmgr.h new file mode 100644 index 00000000..bf89292c --- /dev/null +++ b/src/radeon_dummy_bufmgr.h @@ -0,0 +1,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 |