summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Wei Huang <cwhuang@linux.org.tw>2013-09-25 01:33:33 +0800
committerChih-Wei Huang <cwhuang@linux.org.tw>2013-09-25 01:33:33 +0800
commita8eb27db697d3be48936ccb0ace9fb2a7a7e3109 (patch)
tree55b22fa5de2a58a2a54b260993f069f2e72cf9c0
parent53548f35c7492e1da9f30b5d207694dfc31bbd34 (diff)
downloadexternal_drm_gralloc-a8eb27db697d3be48936ccb0ace9fb2a7a7e3109.zip
external_drm_gralloc-a8eb27db697d3be48936ccb0ace9fb2a7a7e3109.tar.gz
external_drm_gralloc-a8eb27db697d3be48936ccb0ace9fb2a7a7e3109.tar.bz2
get rid of HAL pixelformats 5551 and 4444
-rw-r--r--gralloc_drm.h2
-rw-r--r--gralloc_drm_pipe.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/gralloc_drm.h b/gralloc_drm.h
index 904fd96..c32aaf6 100644
--- a/gralloc_drm.h
+++ b/gralloc_drm.h
@@ -66,8 +66,6 @@ static inline int gralloc_drm_get_bpp(int format)
bpp = 3;
break;
case HAL_PIXEL_FORMAT_RGB_565:
- case HAL_PIXEL_FORMAT_RGBA_5551:
- case HAL_PIXEL_FORMAT_RGBA_4444:
case HAL_PIXEL_FORMAT_YCbCr_422_I:
bpp = 2;
break;
diff --git a/gralloc_drm_pipe.c b/gralloc_drm_pipe.c
index 8eda223..ec3e19d 100644
--- a/gralloc_drm_pipe.c
+++ b/gralloc_drm_pipe.c
@@ -74,8 +74,6 @@ static enum pipe_format get_pipe_format(int format)
case HAL_PIXEL_FORMAT_BGRA_8888:
fmt = PIPE_FORMAT_B8G8R8A8_UNORM;
break;
- case HAL_PIXEL_FORMAT_RGBA_5551:
- case HAL_PIXEL_FORMAT_RGBA_4444:
case HAL_PIXEL_FORMAT_YV12:
case HAL_PIXEL_FORMAT_DRM_NV12:
case HAL_PIXEL_FORMAT_YCbCr_422_SP: