diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-23 13:35:09 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-23 13:47:09 +0100 |
commit | f5daeec724aea1613334f14d58b101a5c8e430b4 (patch) | |
tree | 055ceaf0a430f9d028653cfef0913e0bfb0ee241 /tests/gem_ctx_exec.c | |
parent | 018f8c3c457d1609b18867a48a512e3639979dc9 (diff) |
lib: extract igt_aux.[hc]
And shovel all the various helpers in there.
Also move igt_set_vt_graphics_mode to igt_kms.h since the function is
implemented in igt_kms.c. And it fits better. I kinda missed this in
the prep work.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_ctx_exec.c')
-rw-r--r-- | tests/gem_ctx_exec.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/gem_ctx_exec.c b/tests/gem_ctx_exec.c index 3afa7652..9eddd925 100644 --- a/tests/gem_ctx_exec.c +++ b/tests/gem_ctx_exec.c @@ -40,9 +40,12 @@ #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/time.h> -#include "drm.h" + +#include <drm.h> + #include "ioctl_wrappers.h" #include "drmtest.h" +#include "igt_aux.h" struct local_drm_i915_gem_context_destroy { __u32 ctx_id; @@ -56,6 +59,7 @@ static void context_destroy(int fd, uint32_t ctx_id) struct local_drm_i915_gem_context_destroy destroy; destroy.ctx_id = ctx_id; do_ioctl(fd, CONTEXT_DESTROY_IOCTL, &destroy); +#include "igt_aux.h" } /* Copied from gem_exec_nop.c */ |