diff options
author | Sean Callanan <spyffe@google.com> | 2021-02-25 10:35:40 -0800 |
---|---|---|
committer | Sean Callanan <spyffe@google.com> | 2021-02-25 10:40:26 -0800 |
commit | 7aad72a034382403d54d72af0751ae0caba9c4e0 (patch) | |
tree | 7b0c4e1b00f1eef7a6683c1a2ab9b9c4db14f1b1 /gralloc4/src/core/mali_gralloc_bufferallocation.cpp | |
parent | 34d57faf4377aca850d3dd7c7970601056693b15 (diff) | |
download | gchips-7aad72a034382403d54d72af0751ae0caba9c4e0.tar.gz |
Removing VIDEO_EXT usage from our Gralloc
Bug: 181240527
Test: boot
Change-Id: Id72d108cd5f40ccd636adcce0ea94d2583c22269
Diffstat (limited to 'gralloc4/src/core/mali_gralloc_bufferallocation.cpp')
-rw-r--r-- | gralloc4/src/core/mali_gralloc_bufferallocation.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gralloc4/src/core/mali_gralloc_bufferallocation.cpp b/gralloc4/src/core/mali_gralloc_bufferallocation.cpp index 4711005..a28f6b1 100644 --- a/gralloc4/src/core/mali_gralloc_bufferallocation.cpp +++ b/gralloc4/src/core/mali_gralloc_bufferallocation.cpp @@ -60,11 +60,6 @@ LOCAL_CFLAGS += -DBOARD_EXYNOS_S10B_FORMAT_ALIGN=16 endif #endif -/* Exynos W/A for BLOB DRM Contents. - * Assigning additional usage to allocate buffer would be better... - */ -#define BLOB_DRM_WA 1 - #define AFBC_PIXELS_PER_BLOCK 256 #define AFBC_HEADER_BUFFER_BYTES_PER_BLOCKENTRY 16 @@ -1001,19 +996,6 @@ int mali_gralloc_buffer_allocate(const gralloc_buffer_descriptor_t *descriptors, { buffer_descriptor_t * const bufDescriptor = (buffer_descriptor_t *)(descriptors[i]); -#if BLOB_DRM_WA == 1 - // W/A for BLOB DRM Contents. we should add additional usages to allocate buffer - if(bufDescriptor->hal_format == HAL_PIXEL_FORMAT_BLOB) - { - uint64_t usage = bufDescriptor->producer_usage | bufDescriptor->consumer_usage; - if(usage == GRALLOC_USAGE_PROTECTED) - { - bufDescriptor->producer_usage |= GRALLOC_USAGE_DECODER; - bufDescriptor->consumer_usage |= GRALLOC_USAGE_VIDEO_EXT; - } - } -#endif - /* Derive the buffer size from descriptor parameters */ err = mali_gralloc_derive_format_and_size(bufDescriptor); if (err != 0) |