Necessary to avoid following errors in Android:
E [minigbm:gralloc0.cc(123)]: Unsupported combination -- HAL format: 1, HAL usage: 2304, drv_format: AB24, use_flags: 131072
E GraphicBufferAllocator: Failed to allocate (1024 x 24) layerCount 1 format 1 usage 900: 3
#include "helpers.h"
#include "util.h"
-static const uint32_t render_target_formats[] = { DRM_FORMAT_ARGB8888, DRM_FORMAT_XRGB8888 };
+static const uint32_t render_target_formats[] = { DRM_FORMAT_ABGR8888, DRM_FORMAT_XBGR8888,
+ DRM_FORMAT_ARGB8888, DRM_FORMAT_XRGB8888 };
static int nouveau_init(struct driver *drv)
{