mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 22:02:57 +00:00
tests: Use gem_available_fences()
lib/drmtest.c provides gem_available_fences(). Use it where appropriate. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
committed by
Daniel Vetter
parent
e37eb35e19
commit
1d1f68316f
@@ -88,13 +88,9 @@ batch_create (int fd)
|
||||
|
||||
static int get_num_fences(int fd)
|
||||
{
|
||||
drm_i915_getparam_t gp;
|
||||
int ret, val;
|
||||
int val;
|
||||
|
||||
gp.param = I915_PARAM_NUM_FENCES_AVAIL;
|
||||
gp.value = &val;
|
||||
ret = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
|
||||
assert (ret == 0);
|
||||
val = gem_available_fences(fd);
|
||||
|
||||
printf ("total %d fences\n", val);
|
||||
assert(val > 4);
|
||||
|
||||
Reference in New Issue
Block a user