aboutsummaryrefslogtreecommitdiff
path: root/libdrm/intel/intel_bufmgr_priv.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-09-08 08:51:40 -0700
committerEric Anholt <eric@anholt.net>2008-09-10 14:07:18 -0700
commitf9d98beefc9e7b8d06a29f5b69a19f10fd3c435f (patch)
tree58dd81bc98ba03e9b402240d2ce0eb735710140e /libdrm/intel/intel_bufmgr_priv.h
parent869d8bebedddf2075c59d6bffea8ee640cb80353 (diff)
intel: move drm calls to exec buffers to libdrm_intel.
This avoids duplicating the effort in 3 places. Also, added emit/wait fence callbacks back in bufmgr_fake since we need it for non-drm 2d. Sigh.
Diffstat (limited to 'libdrm/intel/intel_bufmgr_priv.h')
-rw-r--r--libdrm/intel/intel_bufmgr_priv.h23
1 files changed, 6 insertions, 17 deletions
diff --git a/libdrm/intel/intel_bufmgr_priv.h b/libdrm/intel/intel_bufmgr_priv.h
index 8a5741fa..7f39bfc2 100644
--- a/libdrm/intel/intel_bufmgr_priv.h
+++ b/libdrm/intel/intel_bufmgr_priv.h
@@ -103,23 +103,6 @@ struct _dri_bufmgr {
*/
void (*destroy)(dri_bufmgr *bufmgr);
- /**
- * Processes the relocations, either in userland or by converting the list
- * for use in batchbuffer submission.
- *
- * Kernel-based implementations will return a pointer to the arguments
- * to be handed with batchbuffer submission to the kernel. The userland
- * implementation performs the buffer validation and emits relocations
- * into them the appopriate order.
- *
- * \param batch_buf buffer at the root of the tree of relocations
- * \return argument to be completed and passed to the execbuffers ioctl
- * (if any).
- */
- void *(*process_relocs)(dri_bo *batch_buf);
-
- void (*post_submit)(dri_bo *batch_buf);
-
/**
* Add relocation entry in reloc_buf, which will be updated with the
* target buffer's real offset on on command submission.
@@ -140,6 +123,12 @@ struct _dri_bufmgr {
int (*bo_emit_reloc)(dri_bo *reloc_buf,
uint32_t read_domains, uint32_t write_domain,
uint32_t delta, uint32_t offset, dri_bo *target);
+
+ /** Executes the command buffer pointed to by bo. */
+ int (*bo_exec)(dri_bo *bo, int used,
+ drm_clip_rect_t *cliprects, int num_cliprects,
+ int DR4);
+
/**
* Pin a buffer to the aperture and fix the offset until unpinned
*