diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-05-22 10:34:12 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-05-24 22:08:48 +0100 |
commit | 719ffef7c39386c453614bc71e1af97904d3671b (patch) | |
tree | b441f3febb142a910be8e33e2318360146e6a21b /lib/intel_batchbuffer.h | |
parent | d73cdde45afc41fb7b36829eda1af763af682ada (diff) |
gem_stress: Add render copyfunc for SandyBridge
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/intel_batchbuffer.h')
-rw-r--r-- | lib/intel_batchbuffer.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h index 7ed110e3..2beccc4e 100644 --- a/lib/intel_batchbuffer.h +++ b/lib/intel_batchbuffer.h @@ -3,13 +3,11 @@ #include <assert.h> #include "intel_bufmgr.h" -#include "intel_reg.h" #define BATCH_SZ 4096 #define BATCH_RESERVED 16 -struct intel_batchbuffer -{ +struct intel_batchbuffer { drm_intel_bufmgr *bufmgr; uint32_t devid; @@ -93,13 +91,8 @@ intel_batchbuffer_require_space(struct intel_batchbuffer *batch, #define ADVANCE_BATCH() do { \ } while(0) - -static inline void -intel_batchbuffer_emit_mi_flush(struct intel_batchbuffer *batch) -{ - intel_batchbuffer_require_space(batch, 4); - intel_batchbuffer_emit_dword(batch, MI_FLUSH); -} +void +intel_batchbuffer_emit_mi_flush(struct intel_batchbuffer *batch); void intel_copy_bo(struct intel_batchbuffer *batch, drm_intel_bo *dst_bo, drm_intel_bo *src_bo, |