summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-03-13 16:49:53 -0700
committerEric Anholt <eric@anholt.net>2012-03-13 16:49:53 -0700
commit5de5b7484a3a41554e16c02a544a45db5516b031 (patch)
treea818e9240f73f1d8e4f38093fa4651aa55ca207a
parent9d18ad254afc2afc41a919b86cd51ea40cfd8f0b (diff)
intel: Quiet two more valgrind complaints with recent changes.
These are more cases where valgrind doesn't understand what gets read or written by our ioctls.
-rw-r--r--intel/intel_bufmgr_gem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 51b963f8..3c910904 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -2647,6 +2647,7 @@ get_pci_device_id(drm_intel_bufmgr_gem *bufmgr_gem)
}
}
+ VG_CLEAR(devid);
VG_CLEAR(gp);
gp.param = I915_PARAM_CHIPSET_ID;
gp.value = &devid;
@@ -2790,6 +2791,7 @@ drm_intel_bufmgr_gem_init(int fd, int batch_size)
bufmgr_gem->gtt_size -= 256*1024*1024;
}
+ VG_CLEAR(gp);
gp.value = &tmp;
gp.param = I915_PARAM_HAS_EXECBUF2;