summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurabh Dubey <sdubey@codeaurora.org>2018-07-25 19:16:25 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-07-30 01:59:14 -0700
commit5cd2d36e7f252e10c1063a965e3991647e41a9d2 (patch)
tree0fabaf0d110481249d806e835da437faa95a76ea
parent857a4439d6875ac209ea2d0b37d777849b7be507 (diff)
downloaddisplay-5cd2d36e7f252e10c1063a965e3991647e41a9d2.tar.gz
Gralloc: Add UBWC support for AHWB formats.
Update list of UBWC supported formats to include the newly added AHARDWAREBUFFER formats. Change-Id: I32043e3accc36e56af163f14e4b9713d77873d35 CRs-Fixed: 2287039
-rw-r--r--gralloc/gr_utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gralloc/gr_utils.cpp b/gralloc/gr_utils.cpp
index baba0ec6..8fd29066 100644
--- a/gralloc/gr_utils.cpp
+++ b/gralloc/gr_utils.cpp
@@ -567,6 +567,11 @@ bool IsUBwcSupported(int format) {
case HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS:
case HAL_PIXEL_FORMAT_RGBA_1010102:
case HAL_PIXEL_FORMAT_RGBX_1010102:
+ case HAL_PIXEL_FORMAT_DEPTH_16:
+ case HAL_PIXEL_FORMAT_DEPTH_24:
+ case HAL_PIXEL_FORMAT_DEPTH_24_STENCIL_8:
+ case HAL_PIXEL_FORMAT_DEPTH_32F:
+ case HAL_PIXEL_FORMAT_STENCIL_8:
return true;
default:
break;