summaryrefslogtreecommitdiffstats
path: root/libgralloc
diff options
context:
space:
mode:
authorradhakrishna <radhakrishna@codeaurora.org>2015-10-13 12:32:30 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2015-10-29 00:00:58 -0700
commitd7131e66d7365a7c5d953ad60325ef4825606f0d (patch)
tree6b3e913fb5ff0c5318a76c7775b8ab3b6b65438e /libgralloc
parent5fb6d407cf7c8406909fb1797e1e862e6a9c9ff8 (diff)
downloadhardware_qcom_display-d7131e66d7365a7c5d953ad60325ef4825606f0d.tar.gz
hardware_qcom_display-d7131e66d7365a7c5d953ad60325ef4825606f0d.tar.bz2
hardware_qcom_display-d7131e66d7365a7c5d953ad60325ef4825606f0d.zip
sdm: Add support for UBWC in C2D
Add support for UBWC in gralloc alloc_buffer api and copybit Change-Id: I264114d51c2d3caeb1611139641d99ddb006a7ce
Diffstat (limited to 'libgralloc')
-rw-r--r--libgralloc/alloc_controller.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgralloc/alloc_controller.cpp b/libgralloc/alloc_controller.cpp
index 1b59fde10..4e9e26465 100644
--- a/libgralloc/alloc_controller.cpp
+++ b/libgralloc/alloc_controller.cpp
@@ -844,6 +844,10 @@ int alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage)
return -ENOMEM;
}
+ if(isUBwcEnabled(format, usage)) {
+ data.allocType |= private_handle_t::PRIV_FLAGS_UBWC_ALIGNED;
+ }
+
private_handle_t* hnd = new private_handle_t(data.fd, data.size,
data.allocType, 0, format,
alignedw, alignedh);