diff options
author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-06-01 03:16:16 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-06-01 03:16:16 -0700 |
commit | 1f52f7e5170bca9f64581ac33885e08abfad9ea3 (patch) | |
tree | 0a3c7aa7dced268e7c6953189e7fc23e40871a48 /sdm/libs/hwc2/hwc_buffer_allocator.cpp | |
parent | 50269e8c67f0212af18eddc003e5fd3ac746fe69 (diff) | |
parent | 51be3d18764d80b701cc99383612b392269c2c56 (diff) |
Merge "hwc2: Add support for HDR and HWC tonemapping"
Diffstat (limited to 'sdm/libs/hwc2/hwc_buffer_allocator.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_buffer_allocator.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_buffer_allocator.cpp b/sdm/libs/hwc2/hwc_buffer_allocator.cpp index 3e2247fa..da40a346 100644 --- a/sdm/libs/hwc2/hwc_buffer_allocator.cpp +++ b/sdm/libs/hwc2/hwc_buffer_allocator.cpp @@ -80,6 +80,11 @@ DisplayError HWCBufferAllocator::AllocateBuffer(BufferInfo *buffer_info) { // Allocate uncached buffers alloc_flags |= GRALLOC_USAGE_PRIVATE_UNCACHED; } + + if (buffer_config.gfx_client) { + alloc_flags |= GRALLOC1_CONSUMER_USAGE_GPU_TEXTURE; + } + uint64_t producer_usage = alloc_flags; uint64_t consumer_usage = alloc_flags; // CreateBuffer |