Home
last modified time | relevance | path

Searched refs:usage (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/hardware/qcom/display/msm8909w_3100/libgralloc/
Dgpu.cpp51 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, in gralloc_alloc_buffer() argument
63 usage, in gralloc_alloc_buffer()
77 if (usage & GRALLOC_USAGE_PROTECTED) { in gralloc_alloc_buffer()
78 if ((usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) || in gralloc_alloc_buffer()
79 (usage & GRALLOC_USAGE_HW_CAMERA_MASK)) { in gralloc_alloc_buffer()
90 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer()
106 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer()
110 if (usage & GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY) { in gralloc_alloc_buffer()
114 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer()
118 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer()
[all …]
Dgpu.h38 int gralloc_alloc_buffer(unsigned int size, int usage,
45 int alloc_impl(int w, int h, int format, int usage,
50 int format, int usage,
53 int gralloc_alloc_framebuffer_locked(int usage,
56 int gralloc_alloc_framebuffer(int usage,
63 int usage, buffer_handle_t* pHandle,
/hardware/qcom/display/msm8909/libgralloc/
Dgpu.cpp51 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, in gralloc_alloc_buffer() argument
63 usage, in gralloc_alloc_buffer()
77 if (usage & GRALLOC_USAGE_PROTECTED) { in gralloc_alloc_buffer()
78 if ((usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) || in gralloc_alloc_buffer()
79 (usage & GRALLOC_USAGE_HW_CAMERA_MASK)) { in gralloc_alloc_buffer()
90 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer()
106 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer()
110 if (usage & GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY) { in gralloc_alloc_buffer()
114 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer()
118 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer()
[all …]
Dgpu.h38 int gralloc_alloc_buffer(unsigned int size, int usage,
45 int alloc_impl(int w, int h, int format, int usage,
50 int format, int usage,
53 int gralloc_alloc_framebuffer_locked(int usage,
56 int gralloc_alloc_framebuffer(int usage,
63 int usage, buffer_handle_t* pHandle,
/hardware/qcom/display/msm8084/libgralloc/
Dgpu.cpp55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, in gralloc_alloc_buffer() argument
73 if ((usage & GRALLOC_USAGE_PROTECTED) && in gralloc_alloc_buffer()
74 (usage & GRALLOC_USAGE_PRIVATE_MM_HEAP)) { in gralloc_alloc_buffer()
82 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer()
98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer()
105 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer()
115 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { in gralloc_alloc_buffer()
116 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { in gralloc_alloc_buffer()
128 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer()
132 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer()
[all …]
Dalloc_controller.cpp57 static bool canFallback(int usage, bool triedSystem) in canFallback() argument
71 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) in canFallback()
73 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) in canFallback()
79 static bool useUncached(int usage) in useUncached() argument
81 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) in useUncached()
83 if(((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) in useUncached()
84 ||((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) in useUncached()
283 int IonController::allocate(alloc_data& data, int usage) in allocate() argument
288 data.uncached = useUncached(usage); in allocate()
291 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) in allocate()
[all …]
Dgpu.h38 int gralloc_alloc_buffer(size_t size, int usage,
45 int alloc_impl(int w, int h, int format, int usage,
50 int format, int usage,
53 int gralloc_alloc_framebuffer_locked(int usage,
56 int gralloc_alloc_framebuffer(int usage,
63 int usage, buffer_handle_t* pHandle,
/hardware/qcom/display/msm8226/libgralloc/
Dgpu.cpp54 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, in gralloc_alloc_buffer() argument
72 if ((usage & GRALLOC_USAGE_PROTECTED) && in gralloc_alloc_buffer()
73 (usage & GRALLOC_USAGE_PRIVATE_MM_HEAP)) { in gralloc_alloc_buffer()
81 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer()
97 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer()
104 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer()
114 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { in gralloc_alloc_buffer()
115 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { in gralloc_alloc_buffer()
127 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer()
131 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer()
[all …]
Dalloc_controller.cpp57 static bool canFallback(int usage, bool triedSystem) in canFallback() argument
71 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) in canFallback()
73 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) in canFallback()
79 static bool useUncached(int usage) in useUncached() argument
81 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) in useUncached()
83 if(((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) in useUncached()
84 ||((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) in useUncached()
282 int IonController::allocate(alloc_data& data, int usage) in allocate() argument
287 data.uncached = useUncached(usage); in allocate()
290 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) in allocate()
[all …]
Dgpu.h38 int gralloc_alloc_buffer(unsigned int size, int usage,
45 int alloc_impl(int w, int h, int format, int usage,
50 int format, int usage,
53 int gralloc_alloc_framebuffer_locked(int usage,
56 int gralloc_alloc_framebuffer(int usage,
63 int usage, buffer_handle_t* pHandle,
/hardware/qcom/display/msm8996/libgralloc/
Dgpu.cpp58 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, in gralloc_alloc_buffer() argument
74 if (usage & GRALLOC_USAGE_PROTECTED) { in gralloc_alloc_buffer()
75 if (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) { in gralloc_alloc_buffer()
86 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer()
102 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer()
106 if (usage & GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY) { in gralloc_alloc_buffer()
110 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer()
114 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer()
118 if (usage & GRALLOC_USAGE_HW_CAMERA_READ) { in gralloc_alloc_buffer()
122 if (usage & GRALLOC_USAGE_HW_COMPOSER) { in gralloc_alloc_buffer()
[all …]
Dalloc_controller.cpp90 static bool useUncached(const int& usage) { in useUncached() argument
91 if ((usage & GRALLOC_USAGE_PROTECTED) or in useUncached()
92 (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) or in useUncached()
93 ((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) or in useUncached()
94 ((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) in useUncached()
168 int usage = 0; in getAlignedWidthAndHeight() local
171 usage = GRALLOC_USAGE_PRIVATE_ALLOC_UBWC; in getAlignedWidthAndHeight()
174 getAlignedWidthAndHeight(w, h, f, usage, aligned_w, aligned_h); in getAlignedWidthAndHeight()
218 int usage, int& aligned_w, int& aligned_h) in getAlignedWidthAndHeight() argument
220 bool ubwc_enabled = isUBwcEnabled(format, usage); in getAlignedWidthAndHeight()
[all …]
Dgpu.h38 int gralloc_alloc_buffer(unsigned int size, int usage,
45 int alloc_impl(int w, int h, int format, int usage,
50 int format, int usage,
53 int gralloc_alloc_framebuffer_locked(int usage,
56 int gralloc_alloc_framebuffer(int usage,
63 int usage, buffer_handle_t* pHandle,
/hardware/libhardware/include/hardware/
Dgralloc.h226 buffer_handle_t handle, int usage,
265 buffer_handle_t handle, int usage,
280 buffer_handle_t handle, int usage,
310 buffer_handle_t handle, int usage,
343 int w, int h, int format, int usage,
393 static inline const char* map_usage_to_memtrack(uint32_t usage) { in map_usage_to_memtrack() argument
394 usage &= GRALLOC_USAGE_ALLOC_MASK; in map_usage_to_memtrack()
396 if ((usage & GRALLOC_USAGE_HW_CAMERA_WRITE) != 0) { in map_usage_to_memtrack()
398 } else if ((usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) != 0 || in map_usage_to_memtrack()
399 (usage & GRALLOC_USAGE_EXTERNAL_DISP) != 0) { in map_usage_to_memtrack()
[all …]
/hardware/qcom/display/msm8960/libgralloc/
Dgpu.cpp55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, in gralloc_alloc_buffer() argument
73 qdutils::MDSS_V5) && (usage & GRALLOC_USAGE_PROTECTED)) { in gralloc_alloc_buffer()
79 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer()
95 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer()
98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK) { in gralloc_alloc_buffer()
101 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_CC) { in gralloc_alloc_buffer()
107 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer()
112 if (usage & (GRALLOC_USAGE_HW_TEXTURE | in gralloc_alloc_buffer()
115 else if (usage & GRALLOC_USAGE_HW_CAMERA_ZSL) in gralloc_alloc_buffer()
123 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer()
[all …]
Dalloc_controller.cpp56 static bool canFallback(int usage, bool triedSystem) in canFallback() argument
70 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) in canFallback()
72 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) in canFallback()
78 static bool useUncached(int usage) in useUncached() argument
81 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP) in useUncached()
83 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) in useUncached()
179 int IonController::allocate(alloc_data& data, int usage) in allocate() argument
184 data.uncached = useUncached(usage); in allocate()
187 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) in allocate()
190 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP) in allocate()
[all …]
Dgpu.h39 int gralloc_alloc_buffer(size_t size, int usage,
46 int alloc_impl(int w, int h, int format, int usage,
51 int format, int usage,
54 int gralloc_alloc_framebuffer_locked(size_t size, int usage,
57 int gralloc_alloc_framebuffer(size_t size, int usage,
64 int usage, buffer_handle_t* pHandle,
/hardware/qcom/display/msm8994/libgralloc/
Dgpu.cpp59 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, in gralloc_alloc_buffer() argument
77 if (usage & GRALLOC_USAGE_PROTECTED) { in gralloc_alloc_buffer()
85 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer()
101 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer()
108 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer()
118 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { in gralloc_alloc_buffer()
119 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { in gralloc_alloc_buffer()
131 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer()
135 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer()
139 if (usage & GRALLOC_USAGE_HW_CAMERA_READ) { in gralloc_alloc_buffer()
[all …]
Dgpu.h38 int gralloc_alloc_buffer(unsigned int size, int usage,
45 int alloc_impl(int w, int h, int format, int usage,
50 int format, int usage,
53 int gralloc_alloc_framebuffer_locked(int usage,
56 int gralloc_alloc_framebuffer(int usage,
63 int usage, buffer_handle_t* pHandle,
/hardware/intel/img/hwcomposer/merrifield/include/pvr/hal/
Dhal_public.h107 (const hw_device_t *d, int w, int h, int format, int usage, in gralloc_device_alloc_img() argument
111 usage = (usage | ((usage & 0x33) << 1)) & ~0x11; in gralloc_device_alloc_img()
113 usage, handle, stride); in gralloc_device_alloc_img()
116 usage, handle, stride); in gralloc_device_alloc_img()
129 (const hw_device_t *d, buffer_handle_t handle, int usage, in gralloc_lock_async_img() argument
133 usage = (usage | ((usage & 0x33) << 1)) & ~0x11; in gralloc_lock_async_img()
135 handle, usage, r, vaddr, acquireFence); in gralloc_lock_async_img()
138 handle, usage, r, vaddr, acquireFence); in gralloc_lock_async_img()
/hardware/intel/img/hwcomposer/moorefield_hdmi/include/pvr/hal/
Dhal_public.h107 (const hw_device_t *d, int w, int h, int format, int usage, in gralloc_device_alloc_img() argument
111 usage = (usage | ((usage & 0x33) << 1)) & ~0x11; in gralloc_device_alloc_img()
113 usage, handle, stride); in gralloc_device_alloc_img()
116 usage, handle, stride); in gralloc_device_alloc_img()
129 (const hw_device_t *d, buffer_handle_t handle, int usage, in gralloc_lock_async_img() argument
133 usage = (usage | ((usage & 0x33) << 1)) & ~0x11; in gralloc_lock_async_img()
135 handle, usage, r, vaddr, acquireFence); in gralloc_lock_async_img()
138 handle, usage, r, vaddr, acquireFence); in gralloc_lock_async_img()
/hardware/interfaces/graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/
DGralloc1Hal.h48 bufferDescriptorInfo.consumerUsage = toConsumerUsage(descriptorInfo.usage); in validateBufferSize()
49 bufferDescriptorInfo.producerUsage = toProducerUsage(descriptorInfo.usage); in validateBufferSize()
78 static_cast<common::V1_0::PixelFormat>(descriptorInfo.format), descriptorInfo.usage, in createDescriptor_2_1()
104 static uint64_t toProducerUsage(uint64_t usage) { in toProducerUsage() argument
107 uint64_t producerUsage = usage & ~static_cast<uint64_t>(BufferUsage::CPU_READ_MASK | in toProducerUsage()
111 switch (usage & BufferUsage::CPU_WRITE_MASK) { in toProducerUsage()
122 switch (usage & BufferUsage::CPU_READ_MASK) { in toProducerUsage()
138 static uint64_t toConsumerUsage(uint64_t usage) { in toConsumerUsage() argument
142 usage & in toConsumerUsage()
146 switch (usage & BufferUsage::CPU_READ_MASK) { in toConsumerUsage()
[all …]
/hardware/intel/img/hwcomposer/merrifield/common/buffers/
DGraphicBuffer.cpp34 bool GraphicBuffer::isProtectedUsage(uint32_t usage) in isProtectedUsage() argument
36 if (usage == USAGE_INVALID) { in isProtectedUsage()
40 return (usage & GRALLOC_USAGE_PROTECTED) != 0; in isProtectedUsage()
52 bool GraphicBuffer::isCompressionUsage(uint32_t usage) in isCompressionUsage() argument
54 if (usage == USAGE_INVALID) { in isCompressionUsage()
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/buffers/
DGraphicBuffer.cpp34 bool GraphicBuffer::isProtectedUsage(uint32_t usage) in isProtectedUsage() argument
36 if (usage == USAGE_INVALID) { in isProtectedUsage()
40 return (usage & GRALLOC_USAGE_PROTECTED) != 0; in isProtectedUsage()
52 bool GraphicBuffer::isCompressionUsage(uint32_t usage) in isCompressionUsage() argument
54 if (usage == USAGE_INVALID) { in isCompressionUsage()
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3HALHeader.h45 #define IS_USAGE_VIDEO(usage) (((usage) & (GRALLOC_USAGE_HW_VIDEO_ENCODER)) \ argument
47 #define IS_USAGE_PREVIEW(usage) (((usage) & (GRALLOC_USAGE_HW_TEXTURE)) \ argument
49 #define IS_USAGE_ZSL(usage) (((usage) & (GRALLOC_USAGE_HW_CAMERA_ZSL)) \ argument

12345678910>>...13