From: Mauro Rossi Date: Fri, 4 Jan 2019 12:51:58 +0000 (+0100) Subject: minigbm: nouveau: add RGB{A,X}8888 to supported render target formats X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fexternal-minigbm.git;a=commitdiff_plain;h=99446100b0f70a9c37421c90d997f062137e5f4e minigbm: nouveau: add RGB{A,X}8888 to supported render target formats 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 --- diff --git a/nouveau.c b/nouveau.c index d0f25d4..6237dbd 100644 --- a/nouveau.c +++ b/nouveau.c @@ -8,7 +8,8 @@ #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) {