/hardware/intel/img/hwcomposer/merrifield/common/buffers/ |
H A D | GraphicBuffer.cpp | 34 bool GraphicBuffer::isProtectedUsage(uint32_t usage) argument 36 if (usage == USAGE_INVALID) { 40 return (usage & GRALLOC_USAGE_PROTECTED) != 0; 52 bool GraphicBuffer::isCompressionUsage(uint32_t usage) argument 54 if (usage == USAGE_INVALID) {
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/buffers/ |
H A D | GraphicBuffer.cpp | 34 bool GraphicBuffer::isProtectedUsage(uint32_t usage) argument 36 if (usage == USAGE_INVALID) { 40 return (usage & GRALLOC_USAGE_PROTECTED) != 0; 52 bool GraphicBuffer::isCompressionUsage(uint32_t usage) argument 54 if (usage == USAGE_INVALID) {
|
/hardware/qcom/display/msm8226/libgralloc/ |
H A D | gpu.cpp | 54 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, argument 72 if ((usage & GRALLOC_USAGE_PROTECTED) && 73 (usage & GRALLOC_USAGE_PRIVATE_MM_HEAP)) { 81 err = mAllocCtrl->allocate(data, usage); 97 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 104 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 114 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { 115 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { 127 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { 131 if (usage 192 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument 252 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument 262 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, unsigned int bufferSize) argument 355 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 365 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
H A D | gpu.h | 38 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,
|
H A D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
H A D | alloc_controller.cpp | 57 static bool canFallback(int usage, bool triedSystem) argument 71 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) 73 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) 79 static bool useUncached(int usage) argument 81 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) 83 if(((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) 84 ||((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) 282 int IonController::allocate(alloc_data& data, int usage) argument 287 data.uncached = useUncached(usage); 290 if(usage 364 isMacroTileEnabled(int format, int usage) argument 520 getBufferSizeAndDimensions(int width, int height, int format, int usage, int& alignedw, int &alignedh) argument 539 getBufferAttributes(int width, int height, int format, int usage, int& alignedw, int &alignedh, int& tileEnabled, unsigned int& size) argument 621 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument [all...] |
/hardware/qcom/display/msm8960/libgralloc/ |
H A D | gpu.cpp | 55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument 73 qdutils::MDSS_V5) && (usage & GRALLOC_USAGE_PROTECTED)) { 79 err = mAllocCtrl->allocate(data, usage); 95 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK) { 101 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_CC) { 107 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 112 if (usage & (GRALLOC_USAGE_HW_TEXTURE | 115 else if (usage & GRALLOC_USAGE_HW_CAMERA_ZSL) 123 if (usage 175 gralloc_alloc_framebuffer_locked(size_t size, int usage, buffer_handle_t* pHandle) argument 235 gralloc_alloc_framebuffer(size_t size, int usage, buffer_handle_t* pHandle) argument 245 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, size_t bufferSize) argument 339 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 349 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
H A D | gpu.h | 39 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,
|
H A D | alloc_controller.cpp | 56 static bool canFallback(int usage, bool triedSystem) argument 70 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) 72 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) 78 static bool useUncached(int usage) argument 81 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP) 83 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) 179 int IonController::allocate(alloc_data& data, int usage) argument 184 data.uncached = useUncached(usage); 187 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) 190 if(usage 353 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument [all...] |
H A D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
/hardware/qcom/display/msm8084/libgralloc/ |
H A D | gpu.h | 38 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,
|
H A D | gpu.cpp | 55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument 73 if (usage & GRALLOC_USAGE_PROTECTED) { 81 err = mAllocCtrl->allocate(data, usage); 97 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 104 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 114 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { 115 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { 127 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { 131 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 135 if (usage 188 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument 248 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument 258 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, size_t bufferSize) argument 351 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 361 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
H A D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
H A D | alloc_controller.cpp | 57 static bool canFallback(int usage, bool triedSystem) argument 71 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) 73 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) 79 static bool useUncached(int usage) argument 81 if (usage & GRALLOC_USAGE_PROTECTED) 83 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) 85 if(((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) 86 ||((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) 285 int IonController::allocate(alloc_data& data, int usage) argument 290 data.uncached = useUncached(usage); 361 isMacroTileEnabled(int format, int usage) argument 521 getBufferSizeAndDimensions(int width, int height, int format, int usage, int& alignedw, int &alignedh) argument 540 getBufferAttributes(int width, int height, int format, int usage, int& alignedw, int &alignedh, int& tileEnabled, size_t& size) argument 623 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument [all...] |
/hardware/qcom/display/msm8909/libgralloc/ |
H A D | gpu.h | 38 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,
|
H A D | gpu.cpp | 51 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, argument 69 if ((usage & GRALLOC_USAGE_PROTECTED) && 70 (usage & GRALLOC_USAGE_PRIVATE_MM_HEAP)) { 78 err = mAllocCtrl->allocate(data, usage); 94 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 97 if (usage & GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY) { 104 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 114 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { 115 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { 127 if (usage 203 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument 265 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument 275 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, unsigned int bufferSize) argument 368 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 378 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
H A D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
/hardware/qcom/display/msm8994/libgralloc/ |
H A D | gpu.h | 38 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,
|
H A D | gpu.cpp | 51 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, argument 69 if (usage & GRALLOC_USAGE_PROTECTED) { 77 err = mAllocCtrl->allocate(data, usage); 93 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 100 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 110 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { 111 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { 123 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { 127 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 131 if (usage 200 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument 262 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument 272 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, unsigned int bufferSize) argument 369 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 379 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
H A D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
/hardware/qcom/display/msm8996/libgralloc/ |
H A D | gpu.h | 38 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,
|
H A D | gpu.cpp | 50 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, argument 66 if (usage & GRALLOC_USAGE_PROTECTED) { 67 if (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) { 78 err = mAllocCtrl->allocate(data, usage); 94 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 98 if (usage & GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY) { 102 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { 106 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 110 if (usage & GRALLOC_USAGE_HW_CAMERA_READ) { 114 if (usage 188 gralloc_alloc_framebuffer_locked(int usage, buffer_handle_t* pHandle) argument 247 gralloc_alloc_framebuffer(int usage, buffer_handle_t* pHandle) argument 257 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, unsigned int bufferSize) argument 368 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 378 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
/hardware/intel/img/hwcomposer/merrifield/ips/penwell/ |
H A D | PnwPrimaryPlane.cpp | 46 uint32_t usage; local 50 usage = tmpBuf.getUsage(); 51 if (!handle || (GRALLOC_USAGE_HW_FB & usage)) {
|
/hardware/intel/img/hwcomposer/merrifield/include/ |
H A D | GraphicBuffer.h | 40 static bool isProtectedUsage(uint32_t usage); 43 static bool isCompressionUsage(uint32_t usage);
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/include/ |
H A D | GraphicBuffer.h | 40 static bool isProtectedUsage(uint32_t usage); 43 static bool isCompressionUsage(uint32_t usage);
|