Home
last modified time | relevance | path

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

/device/linaro/hikey/gralloc960/
Dmali_gralloc_formats.cpp172 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 …]
Dmali_gralloc_bufferaccess.cpp100 !(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()
Dmali_gralloc_private_interface.cpp36 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()
Dmali_gralloc_formats.h165 …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()
Dmali_gralloc_bufferallocation.cpp904 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()
Dmali_gralloc_private_interface.h48 uint64_t *internal_format);
67 uint64_t internal_format);
Dmali_gralloc_ion.cpp68 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()
Dmali_gralloc_debug.cpp99 … 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()
Dmali_gralloc_buffer.h105 uint64_t internal_format; member
201 , internal_format(_internal_format) in private_handle_t()
Dmali_gralloc_bufferdescriptor.h49 uint64_t internal_format; member
Dmali_gralloc_public_interface.cpp214 hnd->internal_format = format; in mali_gralloc_allocate()
/device/amlogic/yukawa/hal/gralloc/
Dmali_gralloc_formats.cpp172 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 …]
Dmali_gralloc_bufferaccess.cpp100 !(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()
Dmali_gralloc_private_interface.cpp36 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()
Dmali_gralloc_bufferallocation.cpp904 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 …]
Dmali_gralloc_formats.h165 …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()
Dmali_gralloc_private_interface.h48 uint64_t *internal_format);
67 uint64_t internal_format);
Dmali_gralloc_ion.cpp59 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()
Dmali_gralloc_debug.cpp99 … 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()
Dmali_gralloc_buffer.h105 uint64_t internal_format; member
216 , internal_format(_internal_format) in private_handle_t()
Dmali_gralloc_bufferdescriptor.h50 uint64_t internal_format; member
Dmali_gralloc_public_interface.cpp215 hnd->internal_format = format; in mali_gralloc_allocate()
/device/amlogic/yukawa/hal/gralloc/legacy/
Dalloc_device.cpp93 hnd->internal_format = format; in alloc_device_alloc()
/device/linaro/hikey/gralloc960/legacy/
Dalloc_device.cpp93 hnd->internal_format = format; in alloc_device_alloc()
/device/linaro/hikey/gralloc/
Dgralloc_priv.h174 int internal_format; member