aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-05-06 01:21:31 +0100
committerThomas White <taw@bitwiz.org.uk>2009-05-06 01:21:31 +0100
commite8950ddf2823a4b2698870b057409fd98abb3aae (patch)
tree60ea79facadebd338a935d67626ff7c60b0436d2 /include
parentcd1da974e3e53be130cda68a4fd97f943ad7e5c8 (diff)
Buffer relocation stuff
This allows command sequences to make use of buffer objects by providing their GEM handles. It also reorganises the code a bit, and adds a lot of missing security stuff. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/drm/glamo_drm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/drm/glamo_drm.h b/include/drm/glamo_drm.h
index 2b0a81146d5..c14873d6527 100644
--- a/include/drm/glamo_drm.h
+++ b/include/drm/glamo_drm.h
@@ -65,8 +65,11 @@
#define DRM_IOCTL_GLAMO_GEM_WAIT_RENDERING DRM_IOW(DRM_COMMAND_BASE + DRM_GLAMO_GEM_WAIT_RENDERING, struct drm_glamo_gem_wait_rendering)
typedef struct drm_glamo_cmd_buffer {
- int bufsz; /* Size of buffer, in bytes */
+ unsigned int bufsz; /* Size of buffer, in bytes */
char __user *buf; /* Buffer of stuff to go onto the ring buffer */
+ unsigned int *obj_pos; /* Offsets (in bytes) at which to put objs */
+ uint32_t *objs; /* List of buffer object (handles) to use */
+ unsigned int nobjs; /* Number of objects referenced */
int nbox;
struct drm_clip_rect __user *boxes;
} drm_glamo_cmd_buffer_t;