From 31a66fca84be4ff1f61ad40ce48f3d07d650447b Mon Sep 17 00:00:00 2001 From: Daniele Ceraolo Spurio Date: Wed, 21 Feb 2018 15:19:38 -0800 Subject: lib/igt_gt: add intel_measure_ring_size The logic to measure the ring size is replicated almost identically in several tests. Adding it as a common function will make the code cleaner. The tests are updated in follow up patches. v2: - Move into a new file: 'gem_ring'. (Chris) v3: - Rename ring measure function. (Chris) Signed-off-by: Daniele Ceraolo Spurio Signed-off-by: Antonio Argenziano Cc: Daniele Ceraolo Spurio Cc: Chris Wilson Reviewed-by: Chris Wilson --- lib/meson.build | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/meson.build') diff --git a/lib/meson.build b/lib/meson.build index 94ea0799..6c77e407 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -5,6 +5,7 @@ lib_headers = [ 'i915/gem_context.h', 'i915/gem_scheduler.h', 'i915/gem_submission.h', + 'i915/gem_ring.h', 'i915_3d.h', 'i915_reg.h', 'i915_pciids.h', @@ -57,6 +58,7 @@ lib_sources = [ 'i915/gem_context.c', 'i915/gem_scheduler.c', 'i915/gem_submission.c', + 'i915/gem_ring.c', 'igt_debugfs.c', 'igt_device.c', 'igt_aux.c', -- cgit v1.2.3