summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Thilenius <athilenius@chromium.org>2017-10-31 14:39:16 -0600
committerchrome-bot <chrome-bot@chromium.org>2017-11-01 14:06:31 -0700
commita29bf678db525bf0e11105f9f660fbb4e062750d (patch)
treee48b64c8218d810dfb335ef56b35f84546cde31a
parent29ed8d2c3eb6f0cef4e4a4f7392f961379325fdf (diff)
minigbm: amdgpu: Add ABGR8888 to supported render target formats
Added DRM_FORMAT_ABGR8888 to the list of supported render_target_formats. BUG=b:67707215 TEST=teravest@chromium.org confirmed that this worked. Change-Id: I0d1578f9a0ca98f28ebf60d396d1dbdae25435f1 Reviewed-on: https://chromium-review.googlesource.com/747723 Commit-Ready: Alec Thilenius <athilenius@chromium.org> Tested-by: Alec Thilenius <athilenius@chromium.org> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
-rw-r--r--amdgpu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/amdgpu.c b/amdgpu.c
index 1a1f9fc..d91006d 100644
--- a/amdgpu.c
+++ b/amdgpu.c
@@ -41,8 +41,9 @@ enum {
};
// clang-format on
-const static uint32_t render_target_formats[] = { DRM_FORMAT_ARGB8888, DRM_FORMAT_RGB565,
- DRM_FORMAT_XBGR8888, DRM_FORMAT_XRGB8888 };
+const static uint32_t render_target_formats[] = { DRM_FORMAT_ABGR8888, DRM_FORMAT_ARGB8888,
+ DRM_FORMAT_RGB565, DRM_FORMAT_XBGR8888,
+ DRM_FORMAT_XRGB8888 };
const static uint32_t texture_source_formats[] = { DRM_FORMAT_GR88, DRM_FORMAT_R8, DRM_FORMAT_NV21,
DRM_FORMAT_NV12 };