diff options
author | Saurabh Dubey <sdubey@codeaurora.org> | 2018-07-25 19:16:25 +0530 |
---|---|---|
committer | Saurabh Dubey <sdubey@codeaurora.org> | 2018-07-30 11:56:12 +0530 |
commit | 11df8e18200f5319d2339d35a2a8fcadf07be485 (patch) | |
tree | f26cd621148288766ad91adc398d3f04f6b0ea29 /gralloc/gr_utils.cpp | |
parent | 0d282436ace29a7df29f59f2e2e129e23331bc9d (diff) |
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
Diffstat (limited to 'gralloc/gr_utils.cpp')
-rw-r--r-- | gralloc/gr_utils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gralloc/gr_utils.cpp b/gralloc/gr_utils.cpp index d91da928..16cdce81 100644 --- a/gralloc/gr_utils.cpp +++ b/gralloc/gr_utils.cpp @@ -546,6 +546,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; |