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/Makefile.sources | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Makefile.sources') diff --git a/lib/Makefile.sources b/lib/Makefile.sources index 86fbfeef..5b13ef88 100644 --- a/lib/Makefile.sources +++ b/lib/Makefile.sources @@ -9,6 +9,8 @@ lib_source_list = \ i915/gem_scheduler.h \ i915/gem_submission.c \ i915/gem_submission.h \ + i915/gem_ring.h \ + i915/gem_ring.c \ i915_3d.h \ i915_reg.h \ i915_pciids.h \ -- cgit v1.2.3