summaryrefslogtreecommitdiff
path: root/lib/drmtest.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-11 23:27:06 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-12 16:39:39 +0100
commit556c49f20bf93c32b55f494ec896703293e358cd (patch)
tree668f7afc89fc6db5ca166b21dff9dc7c00485c53 /lib/drmtest.h
parent766c5bc6ae24fe2ec03ada80905ccfb1b18afc26 (diff)
lib/ioctl_wrappers: api doc
Also some tiny polish to function interface: - @caching in gem_set_tiling should be uint32_t to match the ioctl struct. - s/size/length/ for gem_write/read. - move gem_get_num_rings to the other ring feature helpers. v2: Also demote gem_require_ring from static inline and move it, too. v3: Also move gem_handle_to_libdrm_bo. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.h')
-rw-r--r--lib/drmtest.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/drmtest.h b/lib/drmtest.h
index 61b98995..a0b6e9fc 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -46,9 +46,6 @@
#include "ioctl_wrappers.h"
-drm_intel_bo * gem_handle_to_libdrm_bo(drm_intel_bufmgr *bufmgr, int fd,
- const char *name, uint32_t handle);
-
int drm_get_card(void);
int drm_open_any(void);
int drm_open_any_render(void);
@@ -309,30 +306,6 @@ extern enum igt_log_level igt_log_level;
} \
} while (0)
-/* check functions which auto-skip tests by calling igt_skip() */
-void gem_require_caching(int fd);
-static inline void gem_require_ring(int fd, int ring_id)
-{
- switch (ring_id) {
- case I915_EXEC_RENDER:
- return;
- case I915_EXEC_BLT:
- igt_require(HAS_BLT_RING(intel_get_drm_devid(fd)));
- return;
- case I915_EXEC_BSD:
- igt_require(HAS_BSD_RING(intel_get_drm_devid(fd)));
- return;
-#ifdef I915_EXEC_VEBOX
- case I915_EXEC_VEBOX:
- igt_require(gem_has_vebox(fd));
- return;
-#endif
- default:
- assert(0);
- return;
- }
-}
-
/* helpers to automatically reduce test runtime in simulation */
bool igt_run_in_simulation(void);
#define SLOW_QUICK(slow,quick) (igt_run_in_simulation() ? (quick) : (slow))