aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-08-20 17:28:17 +0100
committerThomas White <taw@bitwiz.org.uk>2010-05-23 09:51:34 +0200
commitaceb604fdf783c97d32021a4003afbaa52f88f6f (patch)
treefe6683d0802b807d49fb5b070eeea8f2e7f675ee
parent1aa6eee32ad923aa96e745231adf48e0c272ed27 (diff)
Tweak to buffer wait
-rw-r--r--glamo/glamo_bo_gem.c1
-rw-r--r--include/drm/glamo_drm.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/glamo/glamo_bo_gem.c b/glamo/glamo_bo_gem.c
index 8b2838af..5bda1c4c 100644
--- a/glamo/glamo_bo_gem.c
+++ b/glamo/glamo_bo_gem.c
@@ -259,6 +259,7 @@ static int bo_wait(struct glamo_bo *bo)
int ret;
args.handle = bo->handle;
+ args.have_handle = 1;
do {
ret = drmCommandWriteRead(bo->bom->fd,
DRM_GLAMO_GEM_WAIT_RENDERING,
diff --git a/include/drm/glamo_drm.h b/include/drm/glamo_drm.h
index c0bc0e5a..ecf35505 100644
--- a/include/drm/glamo_drm.h
+++ b/include/drm/glamo_drm.h
@@ -94,6 +94,7 @@ struct drm_glamo_gem_mmap {
struct drm_glamo_gem_wait_rendering {
uint32_t handle;
+ int have_handle;
};
struct drm_glamo_gem_pin {