renderer/native: Fallback to non-planar API if gbm_bo_get_handle_for_plane fails
Commit c0d9b08e replaced the old GBM API calls with the multi-plane GBM API. However, the call to gbm_bo_get_handle_for_plane fails for some DRI drivers (in particular i915). Due to missing error checks, the subsequent call to drmModeAddFB fails and the screen output locks up.
This commit adds the missing error checks and falls back to the old GBM API (non-planar) if necessary.
v3: collapse fallback into gbm_get_next_fb_id, use (uint32_t)-1 instead of hex value.
Related to: #127 (closed)