summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-06-01 21:30:34 (GMT)
committerRob Herring <robh@kernel.org>2016-06-01 21:30:34 (GMT)
commitc51c10f68da33a0cee0f6db3145e371b33bed163 (patch)
treefcd2f559216632d81ab8249ec5e4a97c91951107
parentf4a52c35ececdb13f1ac806daccb413501a462ea (diff)
downloaddrm_gralloc-c51c10f68da33a0cee0f6db3145e371b33bed163.tar.gz
drm_gralloc-c51c10f68da33a0cee0f6db3145e371b33bed163.tar.xz
Fix RGB565 pixel format type
The component ordering was wrong causing GBM allocation failures. Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--gralloc_gbm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gralloc_gbm.cpp b/gralloc_gbm.cpp
index 9a7a111..1ff3465 100644
--- a/gralloc_gbm.cpp
+++ b/gralloc_gbm.cpp
@@ -77,7 +77,7 @@ static uint32_t get_gbm_format(int format)
fmt = GBM_FORMAT_RGB888;
break;
case HAL_PIXEL_FORMAT_RGB_565:
- fmt = GBM_FORMAT_BGR565;
+ fmt = GBM_FORMAT_RGB565;
break;
case HAL_PIXEL_FORMAT_BGRA_8888:
fmt = GBM_FORMAT_ARGB8888;