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:
+6
-4
@@ -130,15 +130,17 @@ intel_get_pci_device(void)
|
||||
uint32_t
|
||||
intel_get_drm_devid(int fd)
|
||||
{
|
||||
int ret;
|
||||
struct drm_i915_getparam gp;
|
||||
uint32_t devid;
|
||||
char *override;
|
||||
uint32_t devid = 0;
|
||||
const char *override;
|
||||
|
||||
override = getenv("INTEL_DEVID_OVERRIDE");
|
||||
if (override) {
|
||||
devid = strtod(override, NULL);
|
||||
} else {
|
||||
struct drm_i915_getparam gp;
|
||||
int ret;
|
||||
|
||||
memset(&gp, 0, sizeof(gp));
|
||||
gp.param = I915_PARAM_CHIPSET_ID;
|
||||
gp.value = (int *)&devid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user