• Chris Wilson's avatar
    igt: Check drmModeGetResources() · 519003ca
    Chris Wilson authored
    If KMS is not supported on the device, drmModeGetResources() will return
    NULL, often this is an indication that we should not attempt to run the
    test. Although it would be preferred to use something like
    igt_require_display() as the canonical check and assert that
    drmModeGetResources() did not hit an error, it is not always practical
    as the tests do not utilize the common igt_display abstraction.
    Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
kms_tv_load_detect.c 2.74 KB