Home
last modified time | relevance | path

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

12

/aosp12/hardware/qcom/display/msm8909w_3100/libgralloc1/
H A 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()
263 if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY) { in GetIonHeapInfo()
[all …]
H A 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,
H A Dgr_buf_mgr.cpp311 if (!CpuCanAccess(prod_usage, cons_usage)) { in LockBuffer()
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()
432 if ((cons_usage & in GetHandleFlags()
438 if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetHandleFlags()
442 if (!allocator_->UseUncached(prod_usage, cons_usage)) { in GetHandleFlags()
484 data.align = GetDataAlignment(format, prod_usage, cons_usage); in AllocateBuffer()
490 err = allocator_->AllocateMem(&data, prod_usage, cons_usage); in AllocateBuffer()
509 flags = GetHandleFlags(format, prod_usage, cons_usage); in AllocateBuffer()
[all …]
H A Dgr_utils.h50 format(f), prod_usage(prod), cons_usage(cons) {}
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);
H A Dgr_utils.cpp153 return CpuCanRead(prod_usage, cons_usage) || CpuCanWrite(prod_usage); in CpuCanAccess()
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()
522 if (enable && !(CpuCanAccess(prod_usage, cons_usage))) { in IsUBwcEnabled()
677 gralloc1_consumer_usage_t cons_usage = info.cons_usage; in GetAlignedWidthAndHeight() local
[all …]
H A Dgr_buf_mgr.h46 gralloc1_consumer_usage_t cons_usage);
79 gralloc1_consumer_usage_t cons_usage);
81 gralloc1_consumer_usage_t cons_usage);
H A Dgr_buf_descriptor.h50 gralloc1_consumer_usage_t cons_usage) in BufferDescriptor() argument
55 consumer_usage_(cons_usage), in BufferDescriptor()
/aosp12/hardware/qcom/display/msm8909/gralloc/
H A 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()
263 if (cons_usage & GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY) { in GetIonHeapInfo()
[all …]
H A Dgr_buf_mgr.cpp310 if (!CpuCanAccess(prod_usage, cons_usage)) { in LockBuffer()
402 if (cons_usage & GRALLOC1_CONSUMER_USAGE_VIDEO_ENCODER) { in GetHandleFlags()
414 if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetHandleFlags()
426 if (IsUBwcEnabled(format, prod_usage, cons_usage)) { in GetHandleFlags()
435 if ((cons_usage & in GetHandleFlags()
441 if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetHandleFlags()
445 if (!allocator_->UseUncached(prod_usage, cons_usage)) { in GetHandleFlags()
486 data.align = GetDataAlignment(format, prod_usage, cons_usage); in AllocateBuffer()
493 err = allocator_->AllocateMem(&data, prod_usage, cons_usage); in AllocateBuffer()
512 flags = GetHandleFlags(format, prod_usage, cons_usage); in AllocateBuffer()
[all …]
H A 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,
H A Dgr_utils.h50 format(f), prod_usage(prod), cons_usage(cons) {}
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);
H A Dgr_utils.cpp153 return CpuCanRead(prod_usage, cons_usage) || CpuCanWrite(prod_usage); in CpuCanAccess()
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()
522 if (enable && !(CpuCanAccess(prod_usage, cons_usage))) { in IsUBwcEnabled()
677 gralloc1_consumer_usage_t cons_usage = info.cons_usage; in GetAlignedWidthAndHeight() local
[all …]
H A Dgr_buf_mgr.h46 gralloc1_consumer_usage_t cons_usage);
79 gralloc1_consumer_usage_t cons_usage);
81 gralloc1_consumer_usage_t cons_usage);
/aosp12/hardware/qcom/display/msm8996/libgralloc1/
H A Dgr_allocator.cpp105 gralloc1_consumer_usage_t cons_usage) { in AllocateMem() argument
107 alloc_data->uncached = UseUncached(prod_usage, cons_usage); in AllocateMem()
227 if (IsUBwcEnabled(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()
475 } else if (cons_usage & GRALLOC1_CONSUMER_USAGE_CAMERA) { in GetImplDefinedFormat()
488 } else if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetImplDefinedFormat()
553 (cons_usage & GRALLOC1_CONSUMER_USAGE_GPU_DATA_BUFFER)) { in UseUncached()
576 if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetIonHeapInfo()
625 (cons_usage & GRALLOC1_CONSUMER_USAGE_GPU_DATA_BUFFER)) { in IsUBwcEnabled()
[all …]
H A 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,
H A 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()
H A Dgr_buf_mgr.cpp320 if (!CpuCanAccess(prod_usage, cons_usage)) { in LockBuffer()
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()
431 if (!allocator_->UseUncached(prod_usage, cons_usage)) { in GetHandleFlags()
474 data.uncached = allocator_->UseUncached(prod_usage, cons_usage); in AllocateBuffer()
477 err = allocator_->AllocateMem(&data, prod_usage, cons_usage); in AllocateBuffer()
496 flags = GetHandleFlags(format, prod_usage, cons_usage); in AllocateBuffer()
[all …]
H A 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);
H A Dgr_buf_descriptor.h49 gralloc1_consumer_usage_t cons_usage) in BufferDescriptor() argument
54 consumer_usage_(cons_usage), in BufferDescriptor()
/aosp12/hardware/qcom/display/msm8998/libgralloc1/
H A Dgr_allocator.cpp106 gralloc1_consumer_usage_t cons_usage) { in AllocateMem() argument
108 alloc_data->uncached = UseUncached(prod_usage, cons_usage); in AllocateMem()
228 if (IsUBwcEnabled(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()
476 } else if (cons_usage & GRALLOC1_CONSUMER_USAGE_CAMERA) { in GetImplDefinedFormat()
489 } else if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetImplDefinedFormat()
555 (cons_usage & GRALLOC1_CONSUMER_USAGE_GPU_DATA_BUFFER)) { in UseUncached()
578 if (cons_usage & GRALLOC1_CONSUMER_USAGE_HWCOMPOSER) { in GetIonHeapInfo()
627 (cons_usage & GRALLOC1_CONSUMER_USAGE_GPU_DATA_BUFFER)) { in IsUBwcEnabled()
[all …]
H A 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,
H A Dgr_buf_mgr.cpp312 if (!CpuCanAccess(prod_usage, cons_usage)) { in LockBuffer()
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()
423 if (!allocator_->UseUncached(prod_usage, cons_usage)) { in GetHandleFlags()
466 data.uncached = allocator_->UseUncached(prod_usage, cons_usage); in AllocateBuffer()
469 err = allocator_->AllocateMem(&data, prod_usage, cons_usage); in AllocateBuffer()
488 flags = GetHandleFlags(format, prod_usage, cons_usage); in AllocateBuffer()
[all …]
H A 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()
H A 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);
H A Dgr_buf_descriptor.h49 gralloc1_consumer_usage_t cons_usage) in BufferDescriptor() argument
54 consumer_usage_(cons_usage), in BufferDescriptor()

12