Home
last modified time | relevance | path

Searched refs:BufferUsage (Results 1 – 25 of 74) sorted by relevance

123

/hardware/google/gchips/gralloc4/src/
Dmali_gralloc_usages.h84 #define GRALLOC_USAGE_SW_WRITE_RARELY static_cast<uint64_t>(hidl_common::BufferUsage::CPU_WRITE_RAR…
85 #define GRALLOC_USAGE_SW_WRITE_OFTEN static_cast<uint64_t>(hidl_common::BufferUsage::CPU_WRITE_OFTE…
86 #define GRALLOC_USAGE_SW_READ_RARELY static_cast<uint64_t>(hidl_common::BufferUsage::CPU_READ_RAREL…
87 #define GRALLOC_USAGE_SW_READ_OFTEN static_cast<uint64_t>(hidl_common::BufferUsage::CPU_READ_OFTEN)
88 #define GRALLOC_USAGE_RENDERSCRIPT static_cast<uint64_t>(hidl_common::BufferUsage::RENDERSCRIPT)
89 #define GRALLOC_USAGE_HW_FB static_cast<uint64_t>(hidl_common::BufferUsage::COMPOSER_CLIENT_TARGET)
94 #define GRALLOC_USAGE_SW_WRITE_MASK static_cast<uint64_t>(hidl_common::BufferUsage::CPU_WRITE_MASK)
95 #define GRALLOC_USAGE_SW_READ_MASK static_cast<uint64_t>(hidl_common::BufferUsage::CPU_READ_MASK)
96 #define GRALLOC_USAGE_PROTECTED static_cast<uint64_t>(hidl_common::BufferUsage::PROTECTED)
97 #define GRALLOC_USAGE_CURSOR static_cast<uint64_t>(hidl_common::BufferUsage::COMPOSER_CURSOR)
[all …]
/hardware/interfaces/graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/
DGralloc1Hal.h31 using android::hardware::graphics::common::V1_1::BufferUsage;
109 uint64_t producerUsage = usage & ~static_cast<uint64_t>(BufferUsage::CPU_READ_MASK | in toProducerUsage()
110 BufferUsage::CPU_WRITE_MASK | in toProducerUsage()
111 BufferUsage::GPU_DATA_BUFFER); in toProducerUsage()
113 switch (usage & BufferUsage::CPU_WRITE_MASK) { in toProducerUsage()
114 case static_cast<uint64_t>(BufferUsage::CPU_WRITE_RARELY): in toProducerUsage()
117 case static_cast<uint64_t>(BufferUsage::CPU_WRITE_OFTEN): in toProducerUsage()
124 switch (usage & BufferUsage::CPU_READ_MASK) { in toProducerUsage()
125 case static_cast<uint64_t>(BufferUsage::CPU_READ_RARELY): in toProducerUsage()
128 case static_cast<uint64_t>(BufferUsage::CPU_READ_OFTEN): in toProducerUsage()
[all …]
/hardware/google/gchips/gralloc4/src/core/
Dmali_gralloc_bufferdescriptor.cpp24 using android::hardware::graphics::common::V1_2::BufferUsage;
26 #define BUFFERUSAGE(n) { static_cast<uint64_t>(BufferUsage::n), #n }
66 switch (static_cast<BufferUsage>(usage & BufferUsage::CPU_READ_MASK)) { in describe_usage()
67 case BufferUsage::CPU_READ_NEVER: in describe_usage()
70 case BufferUsage::CPU_READ_RARELY: in describe_usage()
73 case BufferUsage::CPU_READ_OFTEN: in describe_usage()
81 switch (static_cast<BufferUsage>(usage & BufferUsage::CPU_WRITE_MASK)) { in describe_usage()
82 case BufferUsage::CPU_WRITE_NEVER: in describe_usage()
85 case BufferUsage::CPU_WRITE_RARELY: in describe_usage()
88 case BufferUsage::CPU_WRITE_OFTEN: in describe_usage()
/hardware/google/gchips/gralloc3/src/
Dmali_gralloc_usages.h242 using android::hardware::graphics::common::HIDL_COMMON_NAMESPACE::BufferUsage;
244 #define GRALLOC_USAGE_SW_WRITE_RARELY static_cast<uint64_t>(BufferUsage::CPU_WRITE_RARELY)
245 #define GRALLOC_USAGE_SW_WRITE_OFTEN static_cast<uint64_t>(BufferUsage::CPU_WRITE_OFTEN)
246 #define GRALLOC_USAGE_SW_READ_RARELY static_cast<uint64_t>(BufferUsage::CPU_READ_RARELY)
247 #define GRALLOC_USAGE_SW_READ_OFTEN static_cast<uint64_t>(BufferUsage::CPU_READ_OFTEN)
248 #define GRALLOC_USAGE_HW_FB static_cast<uint64_t>(BufferUsage::COMPOSER_CLIENT_TARGET)
253 #define GRALLOC_USAGE_SW_WRITE_MASK static_cast<uint64_t>(BufferUsage::CPU_WRITE_MASK)
254 #define GRALLOC_USAGE_SW_READ_MASK static_cast<uint64_t>(BufferUsage::CPU_READ_MASK)
255 #define GRALLOC_USAGE_PROTECTED static_cast<uint64_t>(BufferUsage::PROTECTED)
256 #define GRALLOC_USAGE_HW_RENDER static_cast<uint64_t>(BufferUsage::GPU_RENDER_TARGET)
[all …]
DGrallocMapper.cpp130 using android::hardware::graphics::common::HIDL_COMMON_NAMESPACE::BufferUsage; in validateDescriptorInfo()
135 BufferUsage::GPU_CUBE_MAP | in validateDescriptorInfo()
136 BufferUsage::GPU_MIPMAP_COMPLETE | in validateDescriptorInfo()
138 BufferUsage::CPU_READ_MASK | BufferUsage::CPU_WRITE_MASK | in validateDescriptorInfo()
139 BufferUsage::GPU_TEXTURE | BufferUsage::GPU_RENDER_TARGET | in validateDescriptorInfo()
140 BufferUsage::COMPOSER_OVERLAY | BufferUsage::COMPOSER_CLIENT_TARGET | in validateDescriptorInfo()
141 BufferUsage::CAMERA_INPUT | BufferUsage::CAMERA_OUTPUT | in validateDescriptorInfo()
142 BufferUsage::PROTECTED | in validateDescriptorInfo()
143 BufferUsage::COMPOSER_CURSOR | in validateDescriptorInfo()
144 BufferUsage::VIDEO_ENCODER | in validateDescriptorInfo()
[all …]
/hardware/google/gchips/gralloc4/src/hidl_common/
DBufferDescriptor.h39 BufferUsage::GPU_CUBE_MAP |
40 BufferUsage::GPU_MIPMAP_COMPLETE |
41 BufferUsage::CPU_READ_MASK | BufferUsage::CPU_WRITE_MASK |
42 BufferUsage::GPU_TEXTURE | BufferUsage::GPU_RENDER_TARGET |
43 BufferUsage::COMPOSER_OVERLAY | BufferUsage::COMPOSER_CLIENT_TARGET |
44 BufferUsage::CAMERA_INPUT | BufferUsage::CAMERA_OUTPUT |
45 BufferUsage::PROTECTED |
46 BufferUsage::COMPOSER_CURSOR |
47 BufferUsage::VIDEO_ENCODER |
48 BufferUsage::RENDERSCRIPT |
[all …]
/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/
DGralloc0Hal.h39 using common::V1_0::BufferUsage;
179 return BufferUsage::CPU_READ_MASK | BufferUsage::CPU_WRITE_MASK | BufferUsage::GPU_TEXTURE | in getValidBufferUsageMask()
180 BufferUsage::GPU_RENDER_TARGET | BufferUsage::COMPOSER_OVERLAY | in getValidBufferUsageMask()
181 BufferUsage::COMPOSER_CLIENT_TARGET | BufferUsage::PROTECTED | in getValidBufferUsageMask()
182 BufferUsage::COMPOSER_CURSOR | BufferUsage::VIDEO_ENCODER | in getValidBufferUsageMask()
183 BufferUsage::CAMERA_OUTPUT | BufferUsage::CAMERA_INPUT | BufferUsage::RENDERSCRIPT | in getValidBufferUsageMask()
184 BufferUsage::VIDEO_DECODER | BufferUsage::SENSOR_DIRECT_DATA | in getValidBufferUsageMask()
185 BufferUsage::GPU_DATA_BUFFER | BufferUsage::VENDOR_MASK; in getValidBufferUsageMask()
DGralloc1Hal.h40 using common::V1_0::BufferUsage;
128 cpuUsage & ~static_cast<uint64_t>(BufferUsage::CPU_WRITE_MASK); in lock()
153 cpuUsage & ~static_cast<uint64_t>(BufferUsage::CPU_WRITE_MASK); in lockYCbCr()
223 return BufferUsage::CPU_READ_MASK | BufferUsage::CPU_WRITE_MASK | BufferUsage::GPU_TEXTURE | in getValidBufferUsageMask()
224 BufferUsage::GPU_RENDER_TARGET | BufferUsage::COMPOSER_OVERLAY | in getValidBufferUsageMask()
225 BufferUsage::COMPOSER_CLIENT_TARGET | BufferUsage::PROTECTED | in getValidBufferUsageMask()
226 BufferUsage::COMPOSER_CURSOR | BufferUsage::VIDEO_ENCODER | in getValidBufferUsageMask()
227 BufferUsage::CAMERA_OUTPUT | BufferUsage::CAMERA_INPUT | BufferUsage::RENDERSCRIPT | in getValidBufferUsageMask()
228 BufferUsage::VIDEO_DECODER | BufferUsage::SENSOR_DIRECT_DATA | in getValidBufferUsageMask()
229 BufferUsage::GPU_DATA_BUFFER | BufferUsage::VENDOR_MASK | in getValidBufferUsageMask()
[all …]
/hardware/qcom/sdm845/display/gralloc/
Dgr_allocator.cpp202 } else if (usage & BufferUsage::VIDEO_ENCODER) { in GetImplDefinedFormat()
204 } else if (usage & BufferUsage::CAMERA_INPUT) { in GetImplDefinedFormat()
205 if (usage & BufferUsage::CAMERA_OUTPUT) { in GetImplDefinedFormat()
211 } else if (usage & BufferUsage::CAMERA_OUTPUT) { in GetImplDefinedFormat()
221 } else if (usage & BufferUsage::COMPOSER_OVERLAY) { in GetImplDefinedFormat()
238 if ((usage & GRALLOC_USAGE_PRIVATE_UNCACHED) || (usage & BufferUsage::PROTECTED)) { in UseUncached()
243 if ((usage & BufferUsage::CPU_READ_MASK) == static_cast<uint64_t>(BufferUsage::CPU_READ_RARELY)) { in UseUncached()
248 if ((usage & BufferUsage::CPU_WRITE_MASK) == in UseUncached()
249 static_cast<uint64_t>(BufferUsage::CPU_WRITE_RARELY)) { in UseUncached()
253 if ((usage & BufferUsage::SENSOR_DIRECT_DATA) || (usage & BufferUsage::GPU_DATA_BUFFER)) { in UseUncached()
[all …]
Dgr_buf_mgr.cpp258 if (usage & BufferUsage::VIDEO_ENCODER) { in GetHandleFlags()
262 if (usage & BufferUsage::CAMERA_OUTPUT) { in GetHandleFlags()
266 if (usage & BufferUsage::CAMERA_INPUT) { in GetHandleFlags()
270 if (usage & BufferUsage::COMPOSER_OVERLAY) { in GetHandleFlags()
274 if (usage & BufferUsage::GPU_TEXTURE) { in GetHandleFlags()
286 if (usage & (BufferUsage::CPU_READ_MASK | BufferUsage::CPU_WRITE_MASK)) { in GetHandleFlags()
290 if ((usage & (BufferUsage::VIDEO_ENCODER | BufferUsage::VIDEO_DECODER | in GetHandleFlags()
291 BufferUsage::CAMERA_OUTPUT | BufferUsage::GPU_RENDER_TARGET))) { in GetHandleFlags()
/hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/
DGralloc1Hal.h39 using common::V1_0::BufferUsage;
219 uint64_t producerUsage = usage & ~static_cast<uint64_t>(BufferUsage::CPU_READ_MASK | in toProducerUsage()
220 BufferUsage::CPU_WRITE_MASK | in toProducerUsage()
221 BufferUsage::GPU_DATA_BUFFER); in toProducerUsage()
223 switch (usage & BufferUsage::CPU_WRITE_MASK) { in toProducerUsage()
224 case static_cast<uint64_t>(BufferUsage::CPU_WRITE_RARELY): in toProducerUsage()
227 case static_cast<uint64_t>(BufferUsage::CPU_WRITE_OFTEN): in toProducerUsage()
234 switch (usage & BufferUsage::CPU_READ_MASK) { in toProducerUsage()
235 case static_cast<uint64_t>(BufferUsage::CPU_READ_RARELY): in toProducerUsage()
238 case static_cast<uint64_t>(BufferUsage::CPU_READ_OFTEN): in toProducerUsage()
[all …]
/hardware/interfaces/graphics/common/aidl/android/hardware/graphics/common/
DHardwareBufferDescription.aidl19 import android.hardware.graphics.common.BufferUsage;
33 BufferUsage usage = BufferUsage.CPU_READ_NEVER;
/hardware/google/graphics/common/libhwc2.1/libvirtualdisplay/
DExynosVirtualDisplay.cpp26 using vendor::graphics::BufferUsage;
57 mSinkUsage = BufferUsage::COMPOSER_OVERLAY | BufferUsage::VIDEO_ENCODER; in ExynosVirtualDisplay()
385 mSinkUsage = BufferUsage::COMPOSER_OVERLAY | BufferUsage::VIDEO_ENCODER; in setSinkBufferUsage()
387 mSinkUsage |= BufferUsage::CPU_READ_NEVER | in setSinkBufferUsage()
388 BufferUsage::CPU_WRITE_NEVER | in setSinkBufferUsage()
389 BufferUsage::PROTECTED; in setSinkBufferUsage()
430 mSinkUsage = BufferUsage::COMPOSER_OVERLAY | BufferUsage::VIDEO_ENCODER; in initPerFrameData()
496 mSinkUsage = BufferUsage::COMPOSER_OVERLAY | BufferUsage::VIDEO_ENCODER; in handleSkipFrame()
/hardware/qcom/sm7250/display/gralloc/
Dgr_utils.cpp223 if (usage & BufferUsage::CPU_READ_MASK) { in CpuCanRead()
231 if (usage & BufferUsage::CPU_WRITE_MASK) { in CpuCanWrite()
245 if (usage & BufferUsage::PROTECTED) { in GetDataAlignment()
246 if ((usage & BufferUsage::CAMERA_OUTPUT) || (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY)) { in GetDataAlignment()
259 if ((usage & BufferUsage::GPU_MIPMAP_COMPLETE)) { in IsGPUFlagSupported()
264 if ((usage & BufferUsage::GPU_CUBE_MAP)) { in IsGPUFlagSupported()
752 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in IsUBwcPISupported()
776 (usage & BufferUsage::COMPOSER_CLIENT_TARGET)) in IsUBwcEnabled()
780 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in IsUBwcEnabled()
1121 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in GetAlignedWidthAndHeight()
[all …]
Dgr_allocator.cpp215 } else if (usage & BufferUsage::CAMERA_OUTPUT) { in GetIonHeapInfo()
220 if (usage & BufferUsage::COMPOSER_OVERLAY) { in GetIonHeapInfo()
234 if (usage & BufferUsage::SENSOR_DIRECT_DATA) { in GetIonHeapInfo()
/hardware/interfaces/graphics/common/aidl/aidl_api/android.hardware.graphics.common/2/android/hardware/graphics/common/
DHardwareBufferDescription.aidl41 …android.hardware.graphics.common.BufferUsage usage = android.hardware.graphics.common.BufferUsage.…
DBufferUsage.aidl36 enum BufferUsage { enum
/hardware/interfaces/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/
DHardwareBufferDescription.aidl25 …android.hardware.graphics.common.BufferUsage usage = android.hardware.graphics.common.BufferUsage.…
/hardware/qcom/sm8150/display/gralloc/
Dgr_utils.cpp197 if (usage & BufferUsage::CPU_READ_MASK) { in CpuCanRead()
205 if (usage & BufferUsage::CPU_WRITE_MASK) { in CpuCanWrite()
219 if (usage & BufferUsage::PROTECTED) { in GetDataAlignment()
232 if ((usage & BufferUsage::GPU_MIPMAP_COMPLETE)) { in IsGPUFlagSupported()
237 if ((usage & BufferUsage::GPU_CUBE_MAP)) { in IsGPUFlagSupported()
710 if (usage & BufferUsage::COMPOSER_OVERLAY || !(usage & GRALLOC_USAGE_PRIVATE_ALLOC_UBWC_PI)) { in IsUBwcPISupported()
718 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in IsUBwcPISupported()
742 (usage & BufferUsage::COMPOSER_CLIENT_TARGET)) in IsUBwcEnabled()
746 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in IsUBwcEnabled()
1042 if ((usage & BufferUsage::GPU_TEXTURE) || (usage & BufferUsage::GPU_RENDER_TARGET)) { in GetAlignedWidthAndHeight()
[all …]
Dgr_allocator.cpp222 } else if (usage & BufferUsage::CAMERA_OUTPUT) { in GetIonHeapInfo()
227 if (usage & BufferUsage::COMPOSER_OVERLAY) { in GetIonHeapInfo()
241 if (usage & BufferUsage::SENSOR_DIRECT_DATA) { in GetIonHeapInfo()
/hardware/qcom/sdm845/display/sdm/libs/hwc2/
Dhwc_buffer_allocator.cpp81 alloc_flags |= BufferUsage::PROTECTED; in AllocateBuffer()
85 alloc_flags |= BufferUsage::CAMERA_OUTPUT; in AllocateBuffer()
94 alloc_flags |= BufferUsage::GPU_TEXTURE; in AllocateBuffer()
97 alloc_flags |= BufferUsage::COMPOSER_OVERLAY; in AllocateBuffer()
178 usage |= BufferUsage::COMPOSER_CLIENT_TARGET; in GetAlignedWidthAndHeight()
417 mapper_->lock(reinterpret_cast<void *>(hnd), (uint64_t)BufferUsage::CPU_READ_OFTEN, in MapBuffer()
/hardware/qcom/sm8150/display/sdm/libs/hwc2/
Dhwc_buffer_allocator.cpp94 alloc_flags |= BufferUsage::PROTECTED; in AllocateBuffer()
98 alloc_flags |= BufferUsage::CAMERA_OUTPUT; in AllocateBuffer()
107 alloc_flags |= BufferUsage::GPU_TEXTURE; in AllocateBuffer()
110 alloc_flags |= BufferUsage::COMPOSER_OVERLAY; in AllocateBuffer()
264 usage |= BufferUsage::COMPOSER_CLIENT_TARGET; in GetAlignedWidthAndHeight()
513 reinterpret_cast<void *>(hnd), (uint64_t)BufferUsage::CPU_READ_OFTEN, access_region, in MapBuffer()
522 mapper_V2_->lock(reinterpret_cast<void *>(hnd), (uint64_t)BufferUsage::CPU_READ_OFTEN, in MapBuffer()
/hardware/interfaces/graphics/common/aidl/aidl_api/android.hardware.graphics.common/1/android/hardware/graphics/common/
DHardwareBufferDescription.aidl25 android.hardware.graphics.common.BufferUsage usage;
/hardware/google/gchips/libvendorgraphicbuffer/include/
DVendorGraphicBuffer.h38 typedef android::hardware::graphics::common::V1_2::BufferUsage BufferUsage; typedef
/hardware/interfaces/graphics/composer/2.2/utils/vts/
DReadbackVts.cpp203 mUsage = static_cast<uint64_t>(BufferUsage::CPU_READ_OFTEN | BufferUsage::GPU_TEXTURE); in ReadbackBuffer()
264 mUsage = static_cast<uint64_t>(BufferUsage::CPU_READ_OFTEN | BufferUsage::CPU_WRITE_OFTEN |
265 BufferUsage::COMPOSER_OVERLAY | BufferUsage::GPU_TEXTURE);

123