tests/gem_evict_everything: Factor out eviction logic
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 3 Feb 2014 10:59:40 +0000 (10:59 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Feb 2014 11:36:53 +0000 (12:36 +0100)
commite1dea7e2e190307056a05a2945e59b59fe5b6fc0
tree4020ef36b4e204618b66a37401d5af23ed403bcc
parentd8ea09f24d9e0c75593bc6e89c742998c23087fc
tests/gem_evict_everything: Factor out eviction logic

In preparation for userptr test we move the eviction logic
into a common file so it can be used from both test cases.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/eviction_common.c [new file with mode: 0644]
tests/gem_evict_everything.c