From 7a2df9085b91ddbd85d6c3d8c1760dac1b7f54b6 Mon Sep 17 00:00:00 2001 From: Daniele Castagna Date: Wed, 18 Oct 2017 16:15:44 -0400 Subject: [PATCH] minigbm: i915: add XR30 and XB30 formats. i915 supports 30bit per component formats. This CL adds XR30 and XB30 to minigbm i915 backend. This CL also sorts render_target_formats alphabetically. BUG=chromium:776093 TEST=Ran a modifier version of null_platform_test that will be uploaded soon. Change-Id: If4f2f74cb10a0534023b9b6142ee84ced0ed8a38 Reviewed-on: https://chromium-review.googlesource.com/726318 Commit-Ready: Daniele Castagna Tested-by: Daniele Castagna Reviewed-by: Gurchetan Singh --- i915.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/i915.c b/i915.c index 8933d8f..e3886a6 100644 --- a/i915.c +++ b/i915.c @@ -20,9 +20,10 @@ #define I915_CACHELINE_SIZE 64 #define I915_CACHELINE_MASK (I915_CACHELINE_SIZE - 1) -static const uint32_t render_target_formats[] = { DRM_FORMAT_ARGB1555, DRM_FORMAT_ABGR8888, +static const uint32_t render_target_formats[] = { DRM_FORMAT_ABGR8888, DRM_FORMAT_ARGB1555, DRM_FORMAT_ARGB8888, DRM_FORMAT_RGB565, - DRM_FORMAT_XBGR8888, DRM_FORMAT_XRGB1555, + DRM_FORMAT_XBGR2101010, DRM_FORMAT_XBGR8888, + DRM_FORMAT_XRGB1555, DRM_FORMAT_XRGB2101010, DRM_FORMAT_XRGB8888 }; static const uint32_t tileable_texture_source_formats[] = { DRM_FORMAT_GR88, DRM_FORMAT_NV12, -- 2.11.0