Home
last modified time | relevance | path

Searched refs:cons_usage (Results 1 – 25 of 44) sorted by relevance

12

/hardware/qcom/display/msm8909/gralloc/
Dgr_allocator.cpp97 gralloc1_consumer_usage_t cons_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()
189 gralloc1_consumer_usage_t cons_usage, int format) { in GetImplDefinedFormat() argument
198 } else if (cons_usage & GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER) { in GetImplDefinedFormat()
200 } else if (cons_usage & GRALLOC1_CONSUMER_USAGE_CAMERA) { in GetImplDefinedFormat()
213 } else if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetImplDefinedFormat()
230 gralloc1_consumer_usage_t cons_usage) { in UseUncached() argument
249 (cons_usage & GRALLOC1_CONSUMER_USAGE_GPU_DATA_BUFFER)) { in UseUncached()
257 gralloc1_consumer_usage_t cons_usage, unsigned int *ion_heap_id, in GetIonHeapInfo() argument
[all …]
Dgr_allocator.h57 gralloc1_consumer_usage_t cons_usage);
63 gralloc1_consumer_usage_t cons_usage, int format);
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,
Dgr_utils.h50 format(f), prod_usage(prod), cons_usage(cons) {} in width()
55 gralloc1_consumer_usage_t cons_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);
79 gralloc1_consumer_usage_t cons_usage);
Dgr_buf_mgr.cpp304 gralloc1_consumer_usage_t cons_usage) { in LockBuffer() argument
310 if (!CpuCanAccess(prod_usage, cons_usage)) { in LockBuffer()
331 if ((cons_usage & (GRALLOC1_CONSUMER_USAGE_CPU_READ | GRALLOC1_CONSUMER_USAGE_CPU_READ_OFTEN)) in LockBuffer()
372 gralloc1_consumer_usage_t cons_usage) { in GetDataAlignment() argument
380 (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY)) { in GetDataAlignment()
392 gralloc1_consumer_usage_t cons_usage) { in GetHandleFlags() argument
394 if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_EXTERNAL_ONLY) { in GetHandleFlags()
398 if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_INTERNAL_ONLY) { in GetHandleFlags()
402 if (cons_usage & GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER) { in GetHandleFlags()
414 if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetHandleFlags()
[all …]
Dgr_utils.cpp152 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
161 if (cons_usage & GRALLOC1_CONSUMER_USAGE_CPU_READ) { in CpuCanRead()
184 gralloc1_consumer_usage_t cons_usage = info.cons_usage; in GetSize() local
186 if (IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetSize()
355 gralloc1_consumer_usage_t cons_usage = hnd->GetConsumerUsage(); in GetYUVPlaneInfo() local
378 prod_usage, cons_usage); in GetYUVPlaneInfo()
502 gralloc1_consumer_usage_t cons_usage) { in IsUBwcEnabled() argument
514 if ((cons_usage & GRALLOC1_CONSUMER_USAGE_GPU_TEXTURE) || in IsUBwcEnabled()
[all …]
Dgr_buf_mgr.h46 gralloc1_consumer_usage_t cons_usage);
79 gralloc1_consumer_usage_t cons_usage);
81 gralloc1_consumer_usage_t cons_usage);
Dgr_buf_descriptor.h50 gralloc1_consumer_usage_t cons_usage) in BufferDescriptor() argument
55 consumer_usage_(cons_usage), in BufferDescriptor()
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_allocator.cpp97 gralloc1_consumer_usage_t cons_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()
189 gralloc1_consumer_usage_t cons_usage, int format) { in GetImplDefinedFormat() argument
198 } else if (cons_usage & GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER) { in GetImplDefinedFormat()
200 } else if (cons_usage & GRALLOC1_CONSUMER_USAGE_CAMERA) { in GetImplDefinedFormat()
213 } else if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetImplDefinedFormat()
230 gralloc1_consumer_usage_t cons_usage) { in UseUncached() argument
249 (cons_usage & GRALLOC1_CONSUMER_USAGE_GPU_DATA_BUFFER)) { in UseUncached()
257 gralloc1_consumer_usage_t cons_usage, unsigned int *ion_heap_id, in GetIonHeapInfo() argument
[all …]
Dgr_allocator.h57 gralloc1_consumer_usage_t cons_usage);
63 gralloc1_consumer_usage_t cons_usage, int format);
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,
Dgr_utils.h50 format(f), prod_usage(prod), cons_usage(cons) {} in width()
55 gralloc1_consumer_usage_t cons_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);
79 gralloc1_consumer_usage_t cons_usage);
Dgr_buf_mgr.cpp305 gralloc1_consumer_usage_t cons_usage) { in LockBuffer() argument
311 if (!CpuCanAccess(prod_usage, cons_usage)) { in LockBuffer()
369 gralloc1_consumer_usage_t cons_usage) { in GetDataAlignment() argument
377 (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY)) { in GetDataAlignment()
389 gralloc1_consumer_usage_t cons_usage) { in GetHandleFlags() argument
391 if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_EXTERNAL_ONLY) { in GetHandleFlags()
395 if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_INTERNAL_ONLY) { in GetHandleFlags()
399 if (cons_usage & GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER) { in GetHandleFlags()
411 if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetHandleFlags()
423 if (IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetHandleFlags()
[all …]
Dgr_utils.cpp152 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
161 if (cons_usage & GRALLOC1_CONSUMER_USAGE_CPU_READ) { in CpuCanRead()
184 gralloc1_consumer_usage_t cons_usage = info.cons_usage; in GetSize() local
186 if (IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetSize()
355 gralloc1_consumer_usage_t cons_usage = hnd->GetConsumerUsage(); in GetYUVPlaneInfo() local
378 prod_usage, cons_usage); in GetYUVPlaneInfo()
502 gralloc1_consumer_usage_t cons_usage) { in IsUBwcEnabled() argument
514 if ((cons_usage & GRALLOC1_CONSUMER_USAGE_GPU_TEXTURE) || in IsUBwcEnabled()
[all …]
Dgr_buf_mgr.h46 gralloc1_consumer_usage_t cons_usage);
79 gralloc1_consumer_usage_t cons_usage);
81 gralloc1_consumer_usage_t cons_usage);
Dgr_buf_descriptor.h50 gralloc1_consumer_usage_t cons_usage) in BufferDescriptor() argument
55 consumer_usage_(cons_usage), in BufferDescriptor()
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_allocator.h58 gralloc1_consumer_usage_t cons_usage);
64 gralloc1_consumer_usage_t cons_usage, int format);
74 bool UseUncached(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage);
78 gralloc1_consumer_usage_t cons_usage);
80 gralloc1_consumer_usage_t cons_usage);
93 void GetIonHeapInfo(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage,
Dgr_allocator.cpp106 gralloc1_consumer_usage_t cons_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()
198 gralloc1_consumer_usage_t cons_usage) { in GetDataAlignment() argument
206 (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY)) { in GetDataAlignment()
226 gralloc1_consumer_usage_t cons_usage = descriptor.GetConsumerUsage(); 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()
376 gralloc1_consumer_usage_t cons_usage = hnd->GetConsumerUsage(); in GetYUVPlaneInfo() local
398 prod_usage, cons_usage); in GetYUVPlaneInfo()
[all …]
Dgr_utils.cpp139 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
148 if (cons_usage & GRALLOC1_CONSUMER_USAGE_CPU_READ) { in CpuCanRead()
Dgr_buf_mgr.cpp306 gralloc1_consumer_usage_t cons_usage) { in LockBuffer() argument
312 if (!CpuCanAccess(prod_usage, cons_usage)) { in LockBuffer()
370 gralloc1_consumer_usage_t cons_usage) { in GetHandleFlags() argument
372 if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_EXTERNAL_ONLY) { in GetHandleFlags()
376 if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_INTERNAL_ONLY) { in GetHandleFlags()
380 if (cons_usage & GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER) { in GetHandleFlags()
392 if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetHandleFlags()
404 if (allocator_->IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetHandleFlags()
413 if ((cons_usage & in GetHandleFlags()
419 if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetHandleFlags()
[all …]
Dgr_utils.h56 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);
Dgr_buf_descriptor.h49 gralloc1_consumer_usage_t cons_usage) in BufferDescriptor() argument
54 consumer_usage_(cons_usage), in BufferDescriptor()
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_allocator.h58 gralloc1_consumer_usage_t cons_usage);
64 gralloc1_consumer_usage_t cons_usage, int format);
74 bool UseUncached(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage);
78 gralloc1_consumer_usage_t cons_usage);
80 gralloc1_consumer_usage_t cons_usage);
93 void GetIonHeapInfo(gralloc1_producer_usage_t prod_usage, gralloc1_consumer_usage_t cons_usage,
Dgr_allocator.cpp105 gralloc1_consumer_usage_t cons_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()
197 gralloc1_consumer_usage_t cons_usage) { in GetDataAlignment() argument
205 (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY)) { in GetDataAlignment()
225 gralloc1_consumer_usage_t cons_usage = descriptor.GetConsumerUsage(); 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()
375 gralloc1_consumer_usage_t cons_usage = hnd->GetConsumerUsage(); in GetYUVPlaneInfo() local
397 prod_usage, cons_usage); in GetYUVPlaneInfo()
[all …]
Dgr_utils.cpp139 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
148 if (cons_usage & GRALLOC1_CONSUMER_USAGE_CPU_READ) { in CpuCanRead()
Dgr_buf_mgr.cpp314 gralloc1_consumer_usage_t cons_usage) { in LockBuffer() argument
320 if (!CpuCanAccess(prod_usage, cons_usage)) { in LockBuffer()
378 gralloc1_consumer_usage_t cons_usage) { in GetHandleFlags() argument
380 if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_EXTERNAL_ONLY) { in GetHandleFlags()
384 if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_INTERNAL_ONLY) { in GetHandleFlags()
388 if (cons_usage & GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER) { in GetHandleFlags()
400 if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetHandleFlags()
412 if (allocator_->IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetHandleFlags()
421 if ((cons_usage & in GetHandleFlags()
427 if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetHandleFlags()
[all …]
Dgr_utils.h56 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);

12