benchmarks: Add a set-domain benchmark

Benchmark the overhead of changing from GTT to CPU domains and vice
versa. Effectively this measures the cost of a clflush, and how well the
driver can avoid them.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2015-11-22 20:50:31 +00:00
parent 59f076a089
commit b68a6428db
3 changed files with 121 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ benchmarks_PROGRAMS = \
gem_exec_trace \
gem_mmap \
gem_prw \
gem_set_domain \
gem_userptr_benchmark \
gem_wait \
kms_vblank \