mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-24 06:43:01 +00:00
tests: add gem_unfence_active_buffers
Unfortunately this requires slab poisoning to catch anything :( Also add a new helper to drmtest to get the available fence count. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -73,6 +73,21 @@ bool gem_uses_aliasing_ppgtt(int fd)
|
||||
return val;
|
||||
}
|
||||
|
||||
int gem_available_fences(int fd)
|
||||
{
|
||||
struct drm_i915_getparam gp;
|
||||
int val;
|
||||
|
||||
gp.param = I915_PARAM_NUM_FENCES_AVAIL;
|
||||
gp.value = &val;
|
||||
|
||||
if (ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp, sizeof(gp)))
|
||||
return 0;
|
||||
|
||||
return val;
|
||||
}
|
||||
|
||||
|
||||
/* Ensure the gpu is idle by launching a nop execbuf and stalling for it. */
|
||||
void gem_quiescent_gpu(int fd)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user