mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 05:13:47 +00:00
Quieten valgrind
Clear all the ioctl structs to zero before use as valgrind does not our ioctls and so complains about undefined bytes being passed to syscalls. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
+2
-1
@@ -77,8 +77,9 @@ static int
|
||||
is_intel(int fd)
|
||||
{
|
||||
struct drm_i915_getparam gp;
|
||||
int devid;
|
||||
int devid = 0;
|
||||
|
||||
memset(&gp, 0, sizeof(gp));
|
||||
gp.param = I915_PARAM_CHIPSET_ID;
|
||||
gp.value = &devid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user