diff from V1:
V1: On some platform frequent calls of the drmPrimeFDToHandle/drmModeAddFB2 may cause tremendous performance degradation. In case, if DRM driver has only a primary plane(i.e. all composition done by OpenGL) there is no practical sense to import/release the same render targets per each frame. This patch utilizes specific Imagination field ui64Stamp of the IMG_native_handle_t to clearly identify buffer on which native handle points. Display hotplug event handling is needed to deallocate all handles/gem connected with a display.
Comments and suggestions are very appreciated.
Signed-off-by: Andrii Chepurnyi email@example.com