summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-07-18 13:45:14 -0700
committerEric Anholt <eric@anholt.net>2012-08-02 11:20:17 -0700
commit7e3f08b463bcbae6950c07cc9ea29a7057f28e69 (patch)
tree3baad2a238f025fdd63f488ace2c42d30ea3e212
parentc10b08d95954aecd331e5a43b4861c6c04b8aadd (diff)
intel: Quiet valgrind warnings in context creation.
-rw-r--r--intel/intel_bufmgr_gem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 43c49a9c..a484b120 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -2911,6 +2911,7 @@ drm_intel_gem_context_create(drm_intel_bufmgr *bufmgr)
drm_intel_context *context = NULL;
int ret;
+ VG_CLEAR(create);
ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_CONTEXT_CREATE, &create);
if (ret != 0) {
DBG("DRM_IOCTL_I915_GEM_CONTEXT_CREATE failed: %s\n",