diff options
author | Dave Airlie <airlied@redhat.com> | 2007-10-03 15:50:46 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2007-10-03 15:50:46 +1000 |
commit | 4cd3ef58a989f61ff22669648e4117426c6e603c (patch) | |
tree | dc57ac2d98d3b7c718ee2c0feb9247cdc2b1df6b /src/mesa/drivers/dri/i915/intel_batchbuffer.h | |
parent | de1d725f442caa4d8ecbac3256b5a33d1f4a1257 (diff) |
i915/drmbuf: attempt to push relocations into buffer manager
This moves the relocations into the buffer manager in prepration for
a superioctl move.
Diffstat (limited to 'src/mesa/drivers/dri/i915/intel_batchbuffer.h')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_batchbuffer.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_batchbuffer.h b/src/mesa/drivers/dri/i915/intel_batchbuffer.h index 850a91e1c9..3cb272d734 100644 --- a/src/mesa/drivers/dri/i915/intel_batchbuffer.h +++ b/src/mesa/drivers/dri/i915/intel_batchbuffer.h @@ -2,6 +2,9 @@ #define INTEL_BATCHBUFFER_H #include "mtypes.h" + +#include "intel_drmbuf.h" + #include "dri_bufmgr.h" struct intel_context; @@ -9,19 +12,9 @@ struct intel_context; #define BATCH_SZ 16384 #define BATCH_RESERVED 16 -#define MAX_RELOCS 4096 - #define INTEL_BATCH_NO_CLIPRECTS 0x1 #define INTEL_BATCH_CLIPRECTS 0x2 -struct buffer_reloc -{ - dri_bo *buf; - GLuint offset; - GLuint delta; /* not needed? */ - GLuint validate_flags; -}; - struct intel_batchbuffer { struct intel_context *intel; @@ -30,13 +23,9 @@ struct intel_batchbuffer dri_fence *last_fence; GLuint flags; - drmBOList list; - GLuint list_count; GLubyte *map; GLubyte *ptr; - struct buffer_reloc reloc[MAX_RELOCS]; - GLuint nr_relocs; GLuint size; }; |