/device/linaro/hikey/gralloc960/ |
D | mali_gralloc_formats.cpp | 172 static bool is_afbc_format(uint64_t internal_format) in is_afbc_format() argument 174 return (internal_format & MALI_GRALLOC_FORMAT_CAPABILITY_AFBCENABLE_MASK) != 0; in is_afbc_format() 182 uint64_t internal_format = req_format; in determine_best_format() local 201 internal_format |= MALI_GRALLOC_INTFMT_AFBC_SPLITBLK; in determine_best_format() 206 internal_format |= MALI_GRALLOC_INTFMT_AFBC_BASIC; in determine_best_format() 211 internal_format |= MALI_GRALLOC_INTFMT_AFBC_TILED_HEADERS; in determine_best_format() 222 internal_format |= MALI_GRALLOC_INTFMT_AFBC_BASIC; in determine_best_format() 227 internal_format |= MALI_GRALLOC_INTFMT_AFBC_TILED_HEADERS; in determine_best_format() 234 …if (internal_format == HAL_PIXEL_FORMAT_YV12 || internal_format == MALI_GRALLOC_FORMAT_INTERNAL_NV… in determine_best_format() 239 internal_format |= MALI_GRALLOC_INTFMT_AFBC_BASIC; in determine_best_format() [all …]
|
D | mali_gralloc_bufferaccess.cpp | 100 !(hnd->internal_format & MALI_GRALLOC_INTFMT_EXT_MASK)) in mali_gralloc_lock_ycbcr() 113 uint64_t base_format = hnd->internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_lock_ycbcr() 148 AERR("Can't lock buffer %p: wrong format %" PRIx64, hnd, hnd->internal_format); in mali_gralloc_lock_ycbcr() 161 AERR("Don't support to lock buffer %p: with format %" PRIx64, hnd, hnd->internal_format); in mali_gralloc_lock_ycbcr() 203 uint64_t base_format = hnd->internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_get_num_flex_planes() 214 AERR("Can't get planes number of buffer %p: with format %" PRIx64, hnd, hnd->internal_format); in mali_gralloc_get_num_flex_planes() 282 !(hnd->internal_format & MALI_GRALLOC_INTFMT_EXT_MASK)) in mali_gralloc_lock_flex_async() 290 uint64_t base_format = hnd->internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_lock_flex_async() 390 AERR("Can't lock buffer %p: wrong format %" PRIx64, hnd, hnd->internal_format); in mali_gralloc_lock_flex_async() 396 AERR("Don't support to lock buffer %p: with format %" PRIx64, hnd, hnd->internal_format); in mali_gralloc_lock_flex_async()
|
D | mali_gralloc_private_interface.cpp | 36 uint64_t *internal_format) in mali_gralloc_private_get_buff_int_fmt() argument 40 if (private_handle_t::validate(handle) < 0 || internal_format == NULL) in mali_gralloc_private_get_buff_int_fmt() 46 *internal_format = hnd->internal_format; in mali_gralloc_private_get_buff_int_fmt() 247 uint64_t internal_format) in mali_gralloc_private_set_priv_fmt() argument 258 priv_desc->hal_format = internal_format; in mali_gralloc_private_set_priv_fmt()
|
D | mali_gralloc_formats.h | 165 …uint64_t internal_format = (uint64_t)(((((uint64_t)(x)) & 0xff000000) << 24) | // Regular modifier… in mali_gralloc_format_unwrap() local 169 uint64_t base_format = internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_format_unwrap() 170 uint64_t modifiers = internal_format & MALI_GRALLOC_INTFMT_EXT_MASK; in mali_gralloc_format_unwrap()
|
D | mali_gralloc_bufferallocation.cpp | 904 bufDescriptor->internal_format = mali_gralloc_select_format( in mali_gralloc_buffer_allocate() 907 if (bufDescriptor->internal_format == 0) in mali_gralloc_buffer_allocate() 915 if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBCENABLE_MASK) in mali_gralloc_buffer_allocate() 917 if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_TILED_HEADERS) in mali_gralloc_buffer_allocate() 919 if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_WIDEBLK) in mali_gralloc_buffer_allocate() 923 else if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_BASIC) in mali_gralloc_buffer_allocate() 927 else if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_SPLITBLK) in mali_gralloc_buffer_allocate() 937 else if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_WIDEBLK) in mali_gralloc_buffer_allocate() 947 uint64_t base_format = bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_buffer_allocate() 1186 …if ((bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_FMT_MASK) == MALI_GRALLOC_FORMAT_INTERNA… in mali_gralloc_buffer_allocate()
|
D | mali_gralloc_private_interface.h | 48 uint64_t *internal_format); 67 uint64_t internal_format);
|
D | mali_gralloc_ion.cpp | 68 static void init_afbc(uint8_t *buf, uint64_t internal_format, int w, int h) in init_afbc() argument 79 if (internal_format & MALI_GRALLOC_INTFMT_AFBC_TILED_HEADERS) in init_afbc() 84 uint64_t base_format = internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in init_afbc() 561 …bufDescriptor->internal_format, bufDescriptor->byte_stride, bufDescriptor->width, bufDescriptor->h… in mali_gralloc_ion_allocate() 607 …bufDescriptor->internal_format, bufDescriptor->byte_stride, bufDescriptor->width, bufDescriptor->h… in mali_gralloc_ion_allocate() 642 …if ((bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBCENABLE_MASK) && (!(*shared_backend))) in mali_gralloc_ion_allocate() 644 init_afbc(cpu_ptr, bufDescriptor->internal_format, bufDescriptor->width, bufDescriptor->height); in mali_gralloc_ion_allocate()
|
D | mali_gralloc_debug.cpp | 99 … hnd, hnd->width, hnd->height, hnd->stride, hnd->req_format, hnd->internal_format, in mali_gralloc_dump_buffers() 101 … (hnd->internal_format & MALI_GRALLOC_INTFMT_AFBCENABLE_MASK) ? true : false); in mali_gralloc_dump_buffers()
|
D | mali_gralloc_buffer.h | 105 uint64_t internal_format; member 201 , internal_format(_internal_format) in private_handle_t()
|
D | mali_gralloc_bufferdescriptor.h | 49 uint64_t internal_format; member
|
D | mali_gralloc_public_interface.cpp | 214 hnd->internal_format = format; in mali_gralloc_allocate()
|
/device/amlogic/yukawa/hal/gralloc/ |
D | mali_gralloc_formats.cpp | 172 static bool is_afbc_format(uint64_t internal_format) in is_afbc_format() argument 174 return (internal_format & MALI_GRALLOC_FORMAT_CAPABILITY_AFBCENABLE_MASK) != 0; in is_afbc_format() 182 uint64_t internal_format = req_format; in determine_best_format() local 201 internal_format |= MALI_GRALLOC_INTFMT_AFBC_SPLITBLK; in determine_best_format() 206 internal_format |= MALI_GRALLOC_INTFMT_AFBC_BASIC; in determine_best_format() 211 internal_format |= MALI_GRALLOC_INTFMT_AFBC_TILED_HEADERS; in determine_best_format() 222 internal_format |= MALI_GRALLOC_INTFMT_AFBC_BASIC; in determine_best_format() 227 internal_format |= MALI_GRALLOC_INTFMT_AFBC_TILED_HEADERS; in determine_best_format() 234 …if (internal_format == HAL_PIXEL_FORMAT_YV12 || internal_format == MALI_GRALLOC_FORMAT_INTERNAL_NV… in determine_best_format() 239 internal_format |= MALI_GRALLOC_INTFMT_AFBC_BASIC; in determine_best_format() [all …]
|
D | mali_gralloc_bufferaccess.cpp | 100 !(hnd->internal_format & MALI_GRALLOC_INTFMT_EXT_MASK)) in mali_gralloc_lock_ycbcr() 113 uint64_t base_format = hnd->internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_lock_ycbcr() 148 AERR("Can't lock buffer %p: wrong format %" PRIx64, hnd, hnd->internal_format); in mali_gralloc_lock_ycbcr() 161 AERR("Don't support to lock buffer %p: with format %" PRIx64, hnd, hnd->internal_format); in mali_gralloc_lock_ycbcr() 203 uint64_t base_format = hnd->internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_get_num_flex_planes() 214 AERR("Can't get planes number of buffer %p: with format %" PRIx64, hnd, hnd->internal_format); in mali_gralloc_get_num_flex_planes() 282 !(hnd->internal_format & MALI_GRALLOC_INTFMT_EXT_MASK)) in mali_gralloc_lock_flex_async() 290 uint64_t base_format = hnd->internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_lock_flex_async() 390 AERR("Can't lock buffer %p: wrong format %" PRIx64, hnd, hnd->internal_format); in mali_gralloc_lock_flex_async() 396 AERR("Don't support to lock buffer %p: with format %" PRIx64, hnd, hnd->internal_format); in mali_gralloc_lock_flex_async()
|
D | mali_gralloc_private_interface.cpp | 36 uint64_t *internal_format) in mali_gralloc_private_get_buff_int_fmt() argument 40 if (private_handle_t::validate(handle) < 0 || internal_format == NULL) in mali_gralloc_private_get_buff_int_fmt() 46 *internal_format = hnd->internal_format; in mali_gralloc_private_get_buff_int_fmt() 247 uint64_t internal_format) in mali_gralloc_private_set_priv_fmt() argument 258 priv_desc->hal_format = internal_format; in mali_gralloc_private_set_priv_fmt()
|
D | mali_gralloc_bufferallocation.cpp | 904 bufDescriptor->internal_format = mali_gralloc_select_format( in mali_gralloc_buffer_allocate() 907 if (bufDescriptor->internal_format == 0) in mali_gralloc_buffer_allocate() 915 if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBCENABLE_MASK) in mali_gralloc_buffer_allocate() 917 if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_TILED_HEADERS) in mali_gralloc_buffer_allocate() 919 if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_WIDEBLK) in mali_gralloc_buffer_allocate() 923 else if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_BASIC) in mali_gralloc_buffer_allocate() 927 else if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_SPLITBLK) in mali_gralloc_buffer_allocate() 937 else if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBC_WIDEBLK) in mali_gralloc_buffer_allocate() 947 uint64_t base_format = bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_buffer_allocate() 1143 if (bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBCENABLE_MASK) in mali_gralloc_buffer_allocate() [all …]
|
D | mali_gralloc_formats.h | 165 …uint64_t internal_format = (uint64_t)(((((uint64_t)(x)) & 0xff000000) << 24) | // Regular modifier… in mali_gralloc_format_unwrap() local 169 uint64_t base_format = internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in mali_gralloc_format_unwrap() 170 uint64_t modifiers = internal_format & MALI_GRALLOC_INTFMT_EXT_MASK; in mali_gralloc_format_unwrap()
|
D | mali_gralloc_private_interface.h | 48 uint64_t *internal_format); 67 uint64_t internal_format);
|
D | mali_gralloc_ion.cpp | 59 static void init_afbc(uint8_t *buf, uint64_t internal_format, int w, int h) in init_afbc() argument 70 if (internal_format & MALI_GRALLOC_INTFMT_AFBC_TILED_HEADERS) in init_afbc() 75 uint64_t base_format = internal_format & MALI_GRALLOC_INTFMT_FMT_MASK; in init_afbc() 501 …bufDescriptor->internal_format, bufDescriptor->byte_stride, bufDescriptor->width, bufDescriptor->h… in mali_gralloc_ion_allocate() 564 …bufDescriptor->internal_format, bufDescriptor->byte_stride, bufDescriptor->width, bufDescriptor->h… in mali_gralloc_ion_allocate() 600 …if ((bufDescriptor->internal_format & MALI_GRALLOC_INTFMT_AFBCENABLE_MASK) && (!(*shared_backend))) in mali_gralloc_ion_allocate() 602 init_afbc(cpu_ptr, bufDescriptor->internal_format, bufDescriptor->width, bufDescriptor->height); in mali_gralloc_ion_allocate()
|
D | mali_gralloc_debug.cpp | 99 … hnd, hnd->width, hnd->height, hnd->stride, hnd->req_format, hnd->internal_format, in mali_gralloc_dump_buffers() 101 … (hnd->internal_format & MALI_GRALLOC_INTFMT_AFBCENABLE_MASK) ? true : false); in mali_gralloc_dump_buffers()
|
D | mali_gralloc_buffer.h | 105 uint64_t internal_format; member 216 , internal_format(_internal_format) in private_handle_t()
|
D | mali_gralloc_bufferdescriptor.h | 50 uint64_t internal_format; member
|
D | mali_gralloc_public_interface.cpp | 215 hnd->internal_format = format; in mali_gralloc_allocate()
|
/device/amlogic/yukawa/hal/gralloc/legacy/ |
D | alloc_device.cpp | 93 hnd->internal_format = format; in alloc_device_alloc()
|
/device/linaro/hikey/gralloc960/legacy/ |
D | alloc_device.cpp | 93 hnd->internal_format = format; in alloc_device_alloc()
|
/device/linaro/hikey/gralloc/ |
D | gralloc_priv.h | 174 int internal_format; member
|