/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/ |
D | hwc_buffer_allocator.cpp | 60 int alloc_flags = INT(GRALLOC_USAGE_PRIVATE_IOMMU_HEAP); in AllocateBuffer() local 68 alloc_flags = GRALLOC_USAGE_HW_CAMERA_WRITE; in AllocateBuffer() 69 alloc_flags |= (GRALLOC_USAGE_PROTECTED | GRALLOC_USAGE_HW_COMPOSER); in AllocateBuffer() 72 alloc_flags = INT(GRALLOC_USAGE_PRIVATE_MM_HEAP); in AllocateBuffer() 73 alloc_flags |= INT(GRALLOC_USAGE_PROTECTED); in AllocateBuffer() 81 alloc_flags |= GRALLOC_USAGE_PRIVATE_UNCACHED; in AllocateBuffer() 84 error = SetBufferInfo(buffer_config.format, &format, &alloc_flags); in AllocateBuffer() 91 uint32_t buffer_size = getBufferSizeAndDimensions(width, height, format, alloc_flags, in AllocateBuffer() 102 error = alloc_controller_->allocate(data, alloc_flags); in AllocateBuffer() 166 int alloc_flags = INT(GRALLOC_USAGE_PRIVATE_IOMMU_HEAP); in GetBufferSize() local [all …]
|
/hardware/qcom/display/msm8909/sdm/libs/hwc/ |
D | hwc_buffer_allocator.cpp | 60 int alloc_flags = INT(GRALLOC_USAGE_PRIVATE_IOMMU_HEAP); in AllocateBuffer() local 68 alloc_flags = GRALLOC_USAGE_HW_CAMERA_WRITE; in AllocateBuffer() 69 alloc_flags |= (GRALLOC_USAGE_PROTECTED | GRALLOC_USAGE_HW_COMPOSER); in AllocateBuffer() 72 alloc_flags = INT(GRALLOC_USAGE_PRIVATE_MM_HEAP); in AllocateBuffer() 73 alloc_flags |= INT(GRALLOC_USAGE_PROTECTED); in AllocateBuffer() 81 alloc_flags |= GRALLOC_USAGE_PRIVATE_UNCACHED; in AllocateBuffer() 84 error = SetBufferInfo(buffer_config.format, &format, &alloc_flags); in AllocateBuffer() 91 uint32_t buffer_size = getBufferSizeAndDimensions(width, height, format, alloc_flags, in AllocateBuffer() 102 error = alloc_controller_->allocate(data, alloc_flags); in AllocateBuffer() 166 int alloc_flags = INT(GRALLOC_USAGE_PRIVATE_IOMMU_HEAP); in GetBufferSize() local [all …]
|
/hardware/qcom/display/msm8998/sdm/libs/hwc2/ |
D | hwc_buffer_allocator.cpp | 67 int alloc_flags = 0; in AllocateBuffer() local 68 int error = SetBufferInfo(buffer_config.format, &format, &alloc_flags); in AllocateBuffer() 74 alloc_flags |= GRALLOC1_PRODUCER_USAGE_PROTECTED; in AllocateBuffer() 79 alloc_flags |= GRALLOC_USAGE_PRIVATE_UNCACHED; in AllocateBuffer() 83 alloc_flags |= GRALLOC1_CONSUMER_USAGE_GPU_TEXTURE; in AllocateBuffer() 86 uint64_t producer_usage = UINT64(alloc_flags); in AllocateBuffer() 87 uint64_t consumer_usage = UINT64(alloc_flags); in AllocateBuffer() 141 int alloc_flags = INT(GRALLOC_USAGE_PRIVATE_IOMMU_HEAP); in GetBufferSize() local 148 alloc_flags |= INT(GRALLOC_USAGE_PROTECTED); in GetBufferSize() 153 alloc_flags |= GRALLOC_USAGE_PRIVATE_UNCACHED; in GetBufferSize() [all …]
|
/hardware/qcom/display/msm8909/sdm/libs/hwc2/ |
D | hwc_buffer_allocator.cpp | 91 uint64_t alloc_flags = 0; in AllocateBuffer() local 92 int error = SetBufferInfo(buffer_config.format, &format, &alloc_flags); in AllocateBuffer() 98 alloc_flags |= GRALLOC1_PRODUCER_USAGE_PROTECTED; in AllocateBuffer() 102 alloc_flags |= GRALLOC1_PRODUCER_USAGE_CAMERA; in AllocateBuffer() 107 alloc_flags |= GRALLOC_USAGE_PRIVATE_UNCACHED; in AllocateBuffer() 111 alloc_flags |= GRALLOC1_CONSUMER_USAGE_GPU_TEXTURE; in AllocateBuffer() 114 uint64_t producer_usage = alloc_flags; in AllocateBuffer() 115 uint64_t consumer_usage = (alloc_flags | GRALLOC1_CONSUMER_USAGE_HWCOMPOSER); in AllocateBuffer() 174 uint64_t alloc_flags = GRALLOC_USAGE_PRIVATE_IOMMU_HEAP; in GetBufferSize() local 181 alloc_flags |= INT(GRALLOC_USAGE_PROTECTED); in GetBufferSize() [all …]
|
/hardware/qcom/display/msm8996/sdm/libs/hwc2/ |
D | hwc_buffer_allocator.cpp | 67 int alloc_flags = 0; in AllocateBuffer() local 68 int error = SetBufferInfo(buffer_config.format, &format, &alloc_flags); in AllocateBuffer() 74 alloc_flags |= GRALLOC1_PRODUCER_USAGE_PROTECTED; in AllocateBuffer() 79 alloc_flags |= GRALLOC_USAGE_PRIVATE_UNCACHED; in AllocateBuffer() 81 uint64_t producer_usage = UINT64(alloc_flags); in AllocateBuffer() 82 uint64_t consumer_usage = UINT64(alloc_flags); in AllocateBuffer() 135 int alloc_flags = INT(GRALLOC_USAGE_PRIVATE_IOMMU_HEAP); in GetBufferSize() local 142 alloc_flags |= INT(GRALLOC_USAGE_PROTECTED); in GetBufferSize() 147 alloc_flags |= GRALLOC_USAGE_PRIVATE_UNCACHED; in GetBufferSize() 150 if (SetBufferInfo(buffer_config.format, &format, &alloc_flags) < 0) { in GetBufferSize() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/ |
D | hwc_buffer_allocator.cpp | 73 uint64_t alloc_flags = 0; in AllocateBuffer() local 74 int error = SetBufferInfo(buffer_config.format, &format, &alloc_flags); in AllocateBuffer() 80 alloc_flags |= GRALLOC1_PRODUCER_USAGE_PROTECTED; in AllocateBuffer() 85 alloc_flags |= GRALLOC_USAGE_PRIVATE_UNCACHED; in AllocateBuffer() 89 alloc_flags |= GRALLOC1_CONSUMER_USAGE_GPU_TEXTURE; in AllocateBuffer() 92 uint64_t producer_usage = alloc_flags; in AllocateBuffer() 93 uint64_t consumer_usage = alloc_flags; in AllocateBuffer() 150 uint64_t alloc_flags = GRALLOC_USAGE_PRIVATE_IOMMU_HEAP; in GetBufferSize() local 157 alloc_flags |= INT(GRALLOC_USAGE_PROTECTED); in GetBufferSize() 162 alloc_flags |= GRALLOC_USAGE_PRIVATE_UNCACHED; in GetBufferSize() [all …]
|
/hardware/qcom/display/msm8996/sdm/libs/hwc/ |
D | hwc_buffer_allocator.cpp | 60 int alloc_flags = INT(GRALLOC_USAGE_PRIVATE_IOMMU_HEAP); in AllocateBuffer() local 68 alloc_flags = INT(GRALLOC_USAGE_PRIVATE_MM_HEAP); in AllocateBuffer() 69 alloc_flags |= INT(GRALLOC_USAGE_PROTECTED); in AllocateBuffer() 77 alloc_flags |= GRALLOC_USAGE_PRIVATE_UNCACHED; in AllocateBuffer() 80 error = SetBufferInfo(buffer_config.format, &format, &alloc_flags); in AllocateBuffer() 87 uint32_t buffer_size = getBufferSizeAndDimensions(width, height, format, alloc_flags, in AllocateBuffer() 98 error = alloc_controller_->allocate(data, alloc_flags); in AllocateBuffer() 158 int alloc_flags = INT(GRALLOC_USAGE_PRIVATE_IOMMU_HEAP); in GetBufferSize() local 165 alloc_flags = INT(GRALLOC_USAGE_PRIVATE_MM_HEAP); in GetBufferSize() 166 alloc_flags |= INT(GRALLOC_USAGE_PROTECTED); in GetBufferSize() [all …]
|
/hardware/qcom/sdm845/display/sdm/libs/hwc2/ |
D | hwc_buffer_allocator.cpp | 74 uint64_t alloc_flags = 0; in AllocateBuffer() local 75 int error = SetBufferInfo(buffer_config.format, &format, &alloc_flags); in AllocateBuffer() 81 alloc_flags |= BufferUsage::PROTECTED; in AllocateBuffer() 85 alloc_flags |= BufferUsage::CAMERA_OUTPUT; in AllocateBuffer() 90 alloc_flags |= GRALLOC_USAGE_PRIVATE_UNCACHED; in AllocateBuffer() 94 alloc_flags |= BufferUsage::GPU_TEXTURE; in AllocateBuffer() 97 alloc_flags |= BufferUsage::COMPOSER_OVERLAY; in AllocateBuffer() 104 descriptor_info.usage = alloc_flags; in AllocateBuffer() 193 uint64_t alloc_flags = GRALLOC_USAGE_PRIVATE_IOMMU_HEAP; in GetBufferSize() local 200 alloc_flags |= INT(GRALLOC_USAGE_PROTECTED); in GetBufferSize() [all …]
|