From d9354b69f2bb88e4117872c1a17bb7f1db8f7e37 Mon Sep 17 00:00:00 2001 From: Alec Thilenius Date: Thu, 26 Oct 2017 10:23:46 -0600 Subject: 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 Tested-by: Alec Thilenius Reviewed-by: Gurchetan Singh --- amdgpu.c | 4 ++-- 1 file 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 }; -- cgit v1.2.3