summaryrefslogtreecommitdiff
path: root/tests/i915/gem_exec_latency.c
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2019-03-13 14:06:40 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2019-03-28 08:01:45 +0000
commit0e5e892e6e381a9452e7f69fa43621639bd995ec (patch)
treedac67e20ec1283a63ea8b554693f561619050860 /tests/i915/gem_exec_latency.c
parent7df3eeb4f3360cd2b511c31acc1c52bd7ce6587f (diff)
gem_exec_latency: Initialize variance to zero
It's just added to in a loop later without any initialization or direct assignment. Signed-off-by: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/i915/gem_exec_latency.c')
-rw-r--r--tests/i915/gem_exec_latency.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/i915/gem_exec_latency.c b/tests/i915/gem_exec_latency.c
index f308e085..a8fc3534 100644
--- a/tests/i915/gem_exec_latency.c
+++ b/tests/i915/gem_exec_latency.c
@@ -602,6 +602,7 @@ rthog_latency_on_ring(int fd, unsigned int engine, const char *name, unsigned in
igt_stats_init_with_size(&stats, NPASS);
+ variance = 0;
for (unsigned int pass = 2; pass < NPASS; pass++) {
struct rt_pkt *rt = &results[NPASS * child + pass];