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:
@@ -35,14 +35,6 @@
|
||||
#define I915_PARAM_CMD_PARSER_VERSION 28
|
||||
#endif
|
||||
|
||||
static int __gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf)
|
||||
{
|
||||
if (drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf))
|
||||
return -errno;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void exec_batch_patched(int fd, uint32_t cmd_bo, uint32_t *cmds,
|
||||
int size, int patch_offset, uint64_t expected_value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user