summaryrefslogtreecommitdiff
path: root/cros_gralloc
diff options
context:
space:
mode:
authorYiwei Zhang <zzyiwei@chromium.org>2021-09-17 05:38:32 +0000
committerCommit Bot <commit-bot@chromium.org>2021-09-17 16:25:51 +0000
commitff4ff226506e1acd9ae48af0a124a3a0ea729ea6 (patch)
tree163a78dc45d85c5da6eba3982d0787321124688e /cros_gralloc
parentdfe5ac6b587771996e22c883e9020574d3a64151 (diff)
downloadminigbm-ff4ff226506e1acd9ae48af0a124a3a0ea729ea6.tar.gz
gralloc: only advertise fp16 and rgba1010102 support for Android 10+
The 2 formats were falsely required in Android 10. This patch is to fix crrev/c/3158977. BUG=b:200123244 TEST=Pie android.graphics.cts.BitmapColorSpaceTest#test16bitHardware Change-Id: I31aef2b153b6b9a634cbca333dd73b189db0929d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/3166774 Commit-Queue: Yiwei Zhang <zzyiwei@chromium.org> Commit-Queue: Kazuhiro Inaba <kinaba@chromium.org> Tested-by: Yiwei Zhang <zzyiwei@chromium.org> Auto-Submit: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Kazuhiro Inaba <kinaba@chromium.org>
Diffstat (limited to 'cros_gralloc')
-rw-r--r--cros_gralloc/cros_gralloc_helpers.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cros_gralloc/cros_gralloc_helpers.cc b/cros_gralloc/cros_gralloc_helpers.cc
index 0f984c7..baafda1 100644
--- a/cros_gralloc/cros_gralloc_helpers.cc
+++ b/cros_gralloc/cros_gralloc_helpers.cc
@@ -48,7 +48,7 @@ uint32_t cros_gralloc_convert_format(int format)
*/
case HAL_PIXEL_FORMAT_BLOB:
return DRM_FORMAT_R8;
-#if ANDROID_API_LEVEL >= 26
+#if ANDROID_API_LEVEL >= 29
case HAL_PIXEL_FORMAT_RGBA_1010102:
return DRM_FORMAT_ABGR2101010;
case HAL_PIXEL_FORMAT_RGBA_FP16: