summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Thilenius <athilenius@chromium.org>2017-10-26 10:23:46 -0600
committerchrome-bot <chrome-bot@chromium.org>2017-10-27 16:14:12 -0700
commitd9354b69f2bb88e4117872c1a17bb7f1db8f7e37 (patch)
treefc421547eca995acd5db7b2af88a5b0d5e122457
parent6061eab81238fddb26e09fe7a1a2f11d12b7904f (diff)
minigbm: amdgpu: Add RGB565 to supported render target formats
Added DRM_FORMAT_RGB565 to the list of supported render_target_formats. BUG=b:67914863 TEST=On Kahlee, sample Android GL application renders a red triangle correctly using the RGB565 render target format. Change-Id: I79c6cafebfb111bb75182fc48ce0216f1bc789fd Reviewed-on: https://chromium-review.googlesource.com/739758 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amdgpu.c b/amdgpu.c
index b5bcbb6..1a1f9fc 100644
--- a/amdgpu.c
+++ b/amdgpu.c
@@ -41,8 +41,8 @@ enum {
};
// clang-format on
-const static uint32_t render_target_formats[] = { DRM_FORMAT_ARGB8888, DRM_FORMAT_XBGR8888,
- DRM_FORMAT_XRGB8888 };
+const static uint32_t render_target_formats[] = { 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 };