diff options
Diffstat (limited to 'lib/drmtest.h')
-rw-r--r-- | lib/drmtest.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/drmtest.h b/lib/drmtest.h index 7d20d770..96863682 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -38,6 +38,16 @@ #include "intel_batchbuffer.h" +#define DRIVER_ANY 0x1 +#define DRIVER_INTEL (0x1 << 1) + +/* provide the deprecated drm_open_any*() calls */ +#define drm_open_any() drm_open_driver(DRIVER_ANY) +#define drm_open_any_master() drm_open_driver_master(DRIVER_ANY) +#define drm_open_any_render() drm_open_driver_render(DRIVER_ANY) +#define __drm_open_any() __drm_open_driver(DRIVER_ANY) + + #ifdef ANDROID #if (!(defined HAVE_MMAP64)) && (!(defined __x86_64__)) extern void* __mmap2(void *, size_t, int, int, int, off_t); @@ -71,10 +81,10 @@ static inline void *igt_mmap64(void *addr, size_t length, int prot, int flags, #define ALIGN(v, a) (((v) + (a)-1) & ~((a)-1)) int drm_get_card(void); -int __drm_open_any(void); -int drm_open_any(void); -int drm_open_any_master(void); -int drm_open_any_render(void); +int drm_open_driver(int chipset); +int drm_open_driver_master(int chipset); +int drm_open_driver_render(int chipset); +int __drm_open_driver(int chipset); void gem_quiescent_gpu(int fd); |