libdrm
libdrm copied to clipboard
libdrm fork for open-source NVIDIA Tegra driver
Among others, it is refer to from drm-kms(7)
The requested BO flags may not match the imported BO flags, what should we do? We can either enforce flags using drm_tegra_bo_set_flags or return -EINVAL.
``` tegra.c: In function 'lookup_bo': tegra.c:48:2: warning: dereferencing type-punned pointer might break strict-aliasing rules [-Wstrict-aliasing] if (drmHashLookup(table, key, (void **)&bo)) ```
``drmAvailable()`` calls ``drmOpenMinor(0, 1, DRM_NODE_PRIMARY)``, which opens ``/dev/dri/card0`` the call fails if the only available device is ``/dev/dri/card1``