diff options
author | Dave Airlie <airlied@redhat.com> | 2009-07-06 14:45:07 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-07-06 15:11:15 +1000 |
commit | d78d50591851d14543f0935d051a59ef29751bbc (patch) | |
tree | 973a85b4d6df847813a50e9dcb4f2fe94e689bc7 /src/radeon_dummy_bufmgr.h | |
parent | e1200cb89218930d01330ba0114e013438655cce (diff) |
radeon: port to new space checking in libdrm interface
This uses a new libdrm interface which shares code with mesa.
It also fixes the bo to flush when full instead of never flushing.
It survives gtkperf -a here which the driver didn't before now
Diffstat (limited to 'src/radeon_dummy_bufmgr.h')
-rw-r--r-- | src/radeon_dummy_bufmgr.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/radeon_dummy_bufmgr.h b/src/radeon_dummy_bufmgr.h index bf89292c..b3ff9910 100644 --- a/src/radeon_dummy_bufmgr.h +++ b/src/radeon_dummy_bufmgr.h @@ -39,19 +39,24 @@ static inline struct radeon_bo *radeon_bo_unref(struct radeon_bo *bo) {return NU 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; +} -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) +static inline int radeon_cs_space_check(Bool cs) { return 0; } -#define RADEON_CS_SPACE_OP_TO_BIG 0 -#define RADEON_CS_SPACE_FLUSH 1 + +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 |