Top | ![]() |
![]() |
![]() |
![]() |
#define | ARRAY_SIZE() |
#define | ALIGN() |
#define | ALIGN_DOWN() |
void | drm_load_module () |
int | drm_open_driver () |
int | drm_open_driver_master () |
int | drm_open_driver_render () |
int | drm_reopen_driver () |
void | igt_require_amdgpu () |
void | igt_require_intel () |
void | igt_require_i915 () |
void | igt_require_nouveau () |
void | igt_require_vc4 () |
void | igt_require_xe () |
bool | is_amdgpu_device () |
bool | is_i915_device () |
bool | is_mtk_device () |
bool | is_msm_device () |
bool | is_nouveau_device () |
bool | is_vc4_device () |
bool | is_xe_device () |
bool | is_intel_device () |
#define | do_or_die() |
#define | do_ioctl() |
#define | do_ioctl_err() |
#define | DRIVER_INTEL |
#define | DRIVER_VC4 |
#define | DRIVER_VGEM |
#define | DRIVER_AMDGPU |
#define | DRIVER_V3D |
#define | DRIVER_PANFROST |
#define | DRIVER_MSM |
#define | DRIVER_XE |
#define | DRIVER_VMWGFX |
#define | DRIVER_ANY |
enum | intel_driver |
This library contains the basic support for writing tests, with the most important part being the helper function to open drm device nodes.
But there's also a bit of other assorted stuff here.
Note that this library's header pulls in the i-g-t core and batchbuffer libraries as dependencies.
#define ARRAY_SIZE(arr) (sizeof(arr)/sizeof(arr[0]))
Macro to compute the size of the static array arr
.
#define ALIGN(v, a) (((v) + (a)-1) & ~((a)-1))
Macro to align a value v
to a specified unit a
.
#define ALIGN_DOWN(x, a) ALIGN((x) - ((a) - 1), (a))
Macro to align down a value v
to a specified unit a
.
int
drm_open_driver (int chipset
);
Open a drm legacy device node. This function always returns a valid file descriptor.
int
drm_open_driver_master (int chipset
);
Open a drm legacy device node and ensure that it is drm master.
int
drm_reopen_driver (int fd
);
Re-opens the drm fd which is useful in instances where a clean default context is needed.
#define do_or_die(x) igt_assert((x) == 0)
Simple macro to execute x and check that it's return value is 0. Presumes
that in any failure case the return value is non-zero and a precise error is
logged into errno. Uses igt_assert()
internally.
#define do_ioctl(fd, ioc, ioc_data)
This macro wraps drmIoctl()
and uses igt_assert to check that it has been
successfully executed.