/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
D | gr_allocator.cpp | 96 int Allocator::AllocateMem(AllocData *alloc_data, gralloc1_producer_usage_t prod_usage, in AllocateMem() argument 99 alloc_data->uncached = UseUncached(prod_usage, cons_usage); in AllocateMem() 102 GetIonHeapInfo(prod_usage, cons_usage, &alloc_data->heap_id, &alloc_data->alloc_type, in AllocateMem() 188 int Allocator::GetImplDefinedFormat(gralloc1_producer_usage_t prod_usage, in GetImplDefinedFormat() argument 196 if (prod_usage & GRALLOC1_PRODUCER_USAGE_PRIVATE_ALLOC_UBWC) { in GetImplDefinedFormat() 201 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) { in GetImplDefinedFormat() 207 } else if (prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) { in GetImplDefinedFormat() 229 bool Allocator::UseUncached(gralloc1_producer_usage_t prod_usage, in UseUncached() argument 231 if ((prod_usage & GRALLOC1_PRODUCER_USAGE_PRIVATE_UNCACHED) || in UseUncached() 232 (prod_usage & GRALLOC1_PRODUCER_USAGE_PROTECTED)) { in UseUncached() [all …]
|
D | gr_utils.h | 50 format(f), prod_usage(prod), cons_usage(cons) {} in width() 54 gralloc1_producer_usage_t prod_usage; member 66 bool CpuCanAccess(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage); 67 bool CpuCanRead(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage); 68 bool CpuCanWrite(gralloc1_producer_usage_t prod_usage); 78 bool IsUBwcEnabled(int format, gralloc1_producer_usage_t prod_usage,
|
D | gr_allocator.h | 56 int AllocateMem(AllocData *data, gralloc1_producer_usage_t prod_usage, 62 int GetImplDefinedFormat(gralloc1_producer_usage_t prod_usage, 64 bool UseUncached(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage); 67 void GetIonHeapInfo(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage,
|
D | gr_utils.cpp | 152 bool CpuCanAccess(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage) { in CpuCanAccess() argument 153 return CpuCanRead(prod_usage, cons_usage) || CpuCanWrite(prod_usage); in CpuCanAccess() 156 bool CpuCanRead(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage) { in CpuCanRead() argument 157 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CPU_READ) { in CpuCanRead() 168 bool CpuCanWrite(gralloc1_producer_usage_t prod_usage) { in CpuCanWrite() argument 169 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CPU_WRITE) { in CpuCanWrite() 183 gralloc1_producer_usage_t prod_usage = info.prod_usage; in GetSize() local 186 if (IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetSize() 354 gralloc1_producer_usage_t prod_usage = hnd->GetProducerUsage(); in GetYUVPlaneInfo() local 378 prod_usage, cons_usage); in GetYUVPlaneInfo() [all …]
|
D | gr_buf_mgr.cpp | 304 gralloc1_producer_usage_t prod_usage, in LockBuffer() argument 311 if (!CpuCanAccess(prod_usage, cons_usage)) { in LockBuffer() 339 if (!err && CpuCanWrite(prod_usage)) { in LockBuffer() 368 uint32_t BufferManager::GetDataAlignment(int format, gralloc1_producer_usage_t prod_usage, in GetDataAlignment() argument 375 if (prod_usage & GRALLOC1_PRODUCER_USAGE_PROTECTED) { in GetDataAlignment() 376 if ((prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) || in GetDataAlignment() 388 int BufferManager::GetHandleFlags(int format, gralloc1_producer_usage_t prod_usage, in GetHandleFlags() argument 403 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) { in GetHandleFlags() 407 if (prod_usage & GRALLOC1_CONSUMER_USAGE_CAMERA) { in GetHandleFlags() 415 if (prod_usage & GRALLOC1_CONSUMER_USAGE_GPU_TEXTURE) { in GetHandleFlags() [all …]
|
D | gr_buf_mgr.h | 45 gralloc1_error_t LockBuffer(const private_handle_t *hnd, gralloc1_producer_usage_t prod_usage, 78 uint32_t GetDataAlignment(int format, gralloc1_producer_usage_t prod_usage, 80 int GetHandleFlags(int format, gralloc1_producer_usage_t prod_usage,
|
D | gr_buf_descriptor.h | 49 BufferDescriptor(int w, int h, int f, gralloc1_producer_usage_t prod_usage, in BufferDescriptor() argument 54 producer_usage_(prod_usage), in BufferDescriptor()
|
/hardware/qcom/display/msm8909/gralloc/ |
D | gr_allocator.cpp | 96 int Allocator::AllocateMem(AllocData *alloc_data, gralloc1_producer_usage_t prod_usage, in AllocateMem() argument 99 alloc_data->uncached = UseUncached(prod_usage, cons_usage); in AllocateMem() 102 GetIonHeapInfo(prod_usage, cons_usage, &alloc_data->heap_id, &alloc_data->alloc_type, in AllocateMem() 188 int Allocator::GetImplDefinedFormat(gralloc1_producer_usage_t prod_usage, in GetImplDefinedFormat() argument 196 if (prod_usage & GRALLOC1_PRODUCER_USAGE_PRIVATE_ALLOC_UBWC) { in GetImplDefinedFormat() 201 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) { in GetImplDefinedFormat() 207 } else if (prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) { in GetImplDefinedFormat() 229 bool Allocator::UseUncached(gralloc1_producer_usage_t prod_usage, in UseUncached() argument 231 if ((prod_usage & GRALLOC1_PRODUCER_USAGE_PRIVATE_UNCACHED) || in UseUncached() 232 (prod_usage & GRALLOC1_PRODUCER_USAGE_PROTECTED)) { in UseUncached() [all …]
|
D | gr_utils.h | 50 format(f), prod_usage(prod), cons_usage(cons) {} in width() 54 gralloc1_producer_usage_t prod_usage; member 66 bool CpuCanAccess(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage); 67 bool CpuCanRead(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage); 68 bool CpuCanWrite(gralloc1_producer_usage_t prod_usage); 78 bool IsUBwcEnabled(int format, gralloc1_producer_usage_t prod_usage,
|
D | gr_allocator.h | 56 int AllocateMem(AllocData *data, gralloc1_producer_usage_t prod_usage, 62 int GetImplDefinedFormat(gralloc1_producer_usage_t prod_usage, 64 bool UseUncached(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage); 67 void GetIonHeapInfo(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage,
|
D | gr_utils.cpp | 152 bool CpuCanAccess(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage) { in CpuCanAccess() argument 153 return CpuCanRead(prod_usage, cons_usage) || CpuCanWrite(prod_usage); in CpuCanAccess() 156 bool CpuCanRead(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage) { in CpuCanRead() argument 157 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CPU_READ) { in CpuCanRead() 168 bool CpuCanWrite(gralloc1_producer_usage_t prod_usage) { in CpuCanWrite() argument 169 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CPU_WRITE) { in CpuCanWrite() 183 gralloc1_producer_usage_t prod_usage = info.prod_usage; in GetSize() local 186 if (IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetSize() 354 gralloc1_producer_usage_t prod_usage = hnd->GetProducerUsage(); in GetYUVPlaneInfo() local 378 prod_usage, cons_usage); in GetYUVPlaneInfo() [all …]
|
D | gr_buf_mgr.cpp | 303 gralloc1_producer_usage_t prod_usage, in LockBuffer() argument 310 if (!CpuCanAccess(prod_usage, cons_usage)) { in LockBuffer() 342 if (!err && CpuCanWrite(prod_usage)) { in LockBuffer() 371 uint32_t BufferManager::GetDataAlignment(int format, gralloc1_producer_usage_t prod_usage, in GetDataAlignment() argument 378 if (prod_usage & GRALLOC1_PRODUCER_USAGE_PROTECTED) { in GetDataAlignment() 379 if ((prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) || in GetDataAlignment() 391 int BufferManager::GetHandleFlags(int format, gralloc1_producer_usage_t prod_usage, in GetHandleFlags() argument 406 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) { in GetHandleFlags() 410 if (prod_usage & GRALLOC1_CONSUMER_USAGE_CAMERA) { in GetHandleFlags() 418 if (prod_usage & GRALLOC1_CONSUMER_USAGE_GPU_TEXTURE) { in GetHandleFlags() [all …]
|
D | gr_buf_mgr.h | 45 gralloc1_error_t LockBuffer(const private_handle_t *hnd, gralloc1_producer_usage_t prod_usage, 78 uint32_t GetDataAlignment(int format, gralloc1_producer_usage_t prod_usage, 80 int GetHandleFlags(int format, gralloc1_producer_usage_t prod_usage,
|
D | gr_buf_descriptor.h | 49 BufferDescriptor(int w, int h, int f, gralloc1_producer_usage_t prod_usage, in BufferDescriptor() argument 54 producer_usage_(prod_usage), in BufferDescriptor()
|
/hardware/qcom/display/msm8996/libgralloc1/ |
D | gr_utils.cpp | 139 bool CpuCanAccess(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage) { in CpuCanAccess() argument 140 return CpuCanRead(prod_usage, cons_usage) || CpuCanWrite(prod_usage); in CpuCanAccess() 143 bool CpuCanRead(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage) { in CpuCanRead() argument 144 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CPU_READ) { in CpuCanRead() 155 bool CpuCanWrite(gralloc1_producer_usage_t prod_usage) { in CpuCanWrite() argument 156 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CPU_WRITE) { in CpuCanWrite()
|
D | gr_allocator.cpp | 104 int Allocator::AllocateMem(AllocData *alloc_data, gralloc1_producer_usage_t prod_usage, in AllocateMem() argument 107 alloc_data->uncached = UseUncached(prod_usage, cons_usage); in AllocateMem() 110 GetIonHeapInfo(prod_usage, cons_usage, &alloc_data->heap_id, &alloc_data->alloc_type, in AllocateMem() 196 uint32_t Allocator::GetDataAlignment(int format, gralloc1_producer_usage_t prod_usage, in GetDataAlignment() argument 203 if (prod_usage & GRALLOC1_PRODUCER_USAGE_PROTECTED) { in GetDataAlignment() 204 if ((prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) || in GetDataAlignment() 224 gralloc1_producer_usage_t prod_usage = descriptor.GetProducerUsage(); in GetSize() local 227 if (IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetSize() 308 uint32_t align = GetDataAlignment(format, prod_usage, cons_usage); in GetSize() 374 gralloc1_producer_usage_t prod_usage = hnd->GetProducerUsage(); in GetYUVPlaneInfo() local [all …]
|
D | gr_allocator.h | 57 int AllocateMem(AllocData *data, gralloc1_producer_usage_t prod_usage, 63 int GetImplDefinedFormat(gralloc1_producer_usage_t prod_usage, 74 bool UseUncached(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage); 77 bool IsUBwcEnabled(int format, gralloc1_producer_usage_t prod_usage, 79 uint32_t GetDataAlignment(int format, gralloc1_producer_usage_t prod_usage, 93 void GetIonHeapInfo(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage,
|
D | gr_utils.h | 56 bool CpuCanAccess(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage); 57 bool CpuCanRead(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage); 58 bool CpuCanWrite(gralloc1_producer_usage_t prod_usage);
|
D | gr_buf_mgr.cpp | 313 gralloc1_producer_usage_t prod_usage, in LockBuffer() argument 320 if (!CpuCanAccess(prod_usage, cons_usage)) { in LockBuffer() 348 if (!err && CpuCanWrite(prod_usage)) { in LockBuffer() 377 int BufferManager::GetHandleFlags(int format, gralloc1_producer_usage_t prod_usage, in GetHandleFlags() argument 392 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) { in GetHandleFlags() 396 if (prod_usage & GRALLOC1_CONSUMER_USAGE_CAMERA) { in GetHandleFlags() 404 if (prod_usage & GRALLOC1_CONSUMER_USAGE_GPU_TEXTURE) { in GetHandleFlags() 408 if (prod_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY) { in GetHandleFlags() 412 if (allocator_->IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetHandleFlags() 416 if (prod_usage & (GRALLOC1_PRODUCER_USAGE_CPU_READ | GRALLOC1_PRODUCER_USAGE_CPU_WRITE)) { in GetHandleFlags() [all …]
|
D | gr_buf_descriptor.h | 48 BufferDescriptor(int w, int h, int f, gralloc1_producer_usage_t prod_usage, in BufferDescriptor() argument 53 producer_usage_(prod_usage), in BufferDescriptor()
|
/hardware/qcom/display/msm8998/libgralloc1/ |
D | gr_utils.cpp | 139 bool CpuCanAccess(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage) { in CpuCanAccess() argument 140 return CpuCanRead(prod_usage, cons_usage) || CpuCanWrite(prod_usage); in CpuCanAccess() 143 bool CpuCanRead(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage) { in CpuCanRead() argument 144 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CPU_READ) { in CpuCanRead() 155 bool CpuCanWrite(gralloc1_producer_usage_t prod_usage) { in CpuCanWrite() argument 156 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CPU_WRITE) { in CpuCanWrite()
|
D | gr_allocator.cpp | 105 int Allocator::AllocateMem(AllocData *alloc_data, gralloc1_producer_usage_t prod_usage, in AllocateMem() argument 108 alloc_data->uncached = UseUncached(prod_usage, cons_usage); in AllocateMem() 111 GetIonHeapInfo(prod_usage, cons_usage, &alloc_data->heap_id, &alloc_data->alloc_type, in AllocateMem() 197 uint32_t Allocator::GetDataAlignment(int format, gralloc1_producer_usage_t prod_usage, in GetDataAlignment() argument 204 if (prod_usage & GRALLOC1_PRODUCER_USAGE_PROTECTED) { in GetDataAlignment() 205 if ((prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) || in GetDataAlignment() 225 gralloc1_producer_usage_t prod_usage = descriptor.GetProducerUsage(); in GetSize() local 228 if (IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetSize() 309 uint32_t align = GetDataAlignment(format, prod_usage, cons_usage); in GetSize() 375 gralloc1_producer_usage_t prod_usage = hnd->GetProducerUsage(); in GetYUVPlaneInfo() local [all …]
|
D | gr_allocator.h | 57 int AllocateMem(AllocData *data, gralloc1_producer_usage_t prod_usage, 63 int GetImplDefinedFormat(gralloc1_producer_usage_t prod_usage, 74 bool UseUncached(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage); 77 bool IsUBwcEnabled(int format, gralloc1_producer_usage_t prod_usage, 79 uint32_t GetDataAlignment(int format, gralloc1_producer_usage_t prod_usage, 93 void GetIonHeapInfo(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage,
|
D | gr_utils.h | 56 bool CpuCanAccess(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage); 57 bool CpuCanRead(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage); 58 bool CpuCanWrite(gralloc1_producer_usage_t prod_usage);
|
D | gr_buf_mgr.cpp | 305 gralloc1_producer_usage_t prod_usage, in LockBuffer() argument 312 if (!CpuCanAccess(prod_usage, cons_usage)) { in LockBuffer() 340 if (!err && CpuCanWrite(prod_usage)) { in LockBuffer() 369 int BufferManager::GetHandleFlags(int format, gralloc1_producer_usage_t prod_usage, in GetHandleFlags() argument 384 if (prod_usage & GRALLOC1_PRODUCER_USAGE_CAMERA) { in GetHandleFlags() 388 if (prod_usage & GRALLOC1_CONSUMER_USAGE_CAMERA) { in GetHandleFlags() 396 if (prod_usage & GRALLOC1_CONSUMER_USAGE_GPU_TEXTURE) { in GetHandleFlags() 400 if (prod_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY) { in GetHandleFlags() 404 if (allocator_->IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetHandleFlags() 408 if (prod_usage & (GRALLOC1_PRODUCER_USAGE_CPU_READ | GRALLOC1_PRODUCER_USAGE_CPU_WRITE)) { in GetHandleFlags() [all …]
|