mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
lib: Share common __gem_execbuf()
An oft-repeated function to check EXECBUFFER2 for a particular fail condition. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
@@ -65,14 +65,6 @@ out:
|
||||
return ts.tv_sec + 1e-9*ts.tv_nsec;
|
||||
}
|
||||
|
||||
static int __gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *eb)
|
||||
{
|
||||
int err = 0;
|
||||
if (drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, eb))
|
||||
err = -errno;
|
||||
return err;
|
||||
}
|
||||
|
||||
static void
|
||||
sync_ring(int fd, int ring, unsigned flags)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user