remove hal_tbm_bufmgr_alloc_bo_with_tiled_format 74/255474/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 19 Mar 2021 01:33:53 +0000 (10:33 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 19 Mar 2021 01:33:53 +0000 (10:33 +0900)
The hal_tbm_bufmgr_alloc_bo_with_tiled_format is deprecated.
The backend get to know the requested bo allocation with hal_tbm_bo_memory_type
through hal_tbm_bufmgr_alloc_bo_with_format.

Change-Id: Iffbd666c8d150b72e643bccfdd37385906313455

include/hal-tbm-interface.h
include/hal-tbm.h
src/hal-api-tbm.c

index 2c75986a916ab250b4e2860256e9895088e3520b..883ee03ddc58ae88af04900a7afae43008abc0f3 100644 (file)
@@ -70,8 +70,6 @@ struct _hal_tbm_bufmgr_funcs {
        hal_tbm_bo *(*bufmgr_alloc_bo)(hal_tbm_bufmgr *bufmgr, unsigned int size, hal_tbm_bo_memory_type mem_types, hal_tbm_error *error);
        hal_tbm_bo *(*bufmgr_alloc_bo_with_format)(hal_tbm_bufmgr *bufmgr, int format, int bo_idx, int width, int height,
                                                                                hal_tbm_bo_memory_type mem_types, hal_tbm_error *error);
-       hal_tbm_bo *(*bufmgr_alloc_bo_with_tiled_format)(hal_tbm_bufmgr *bufmgr, int width, int height, int bpp, int format,
-                                                                               hal_tbm_bo_memory_type flags, int bo_idx, hal_tbm_error *error);
        hal_tbm_bo *(*bufmgr_import_fd)(hal_tbm_bufmgr *bufmgr, hal_tbm_fd fd, hal_tbm_error *error);
        hal_tbm_bo *(*bufmgr_import_key)(hal_tbm_bufmgr *bufmgr, hal_tbm_key key, hal_tbm_error *error);
 };
index 85fcefeb33de862025cfe85eedb4e7d050d81e6f..07fe3590d924234474e801329e3f7b26e772bfc8 100644 (file)
@@ -58,8 +58,6 @@ hal_tbm_error              hal_tbm_bufmgr_get_plane_data(hal_tbm_bufmgr *bufmgr,
 hal_tbm_bo                *hal_tbm_bufmgr_alloc_bo(hal_tbm_bufmgr *bufmgr, unsigned int size, hal_tbm_bo_memory_type mem_types, hal_tbm_error *error);
 hal_tbm_bo                *hal_tbm_bufmgr_alloc_bo_with_format(hal_tbm_bufmgr *bufmgr, int format, int bo_idx, int width, int height,
                                           hal_tbm_bo_memory_type mem_types, hal_tbm_error *error);
-hal_tbm_bo                *hal_tbm_bufmgr_alloc_bo_with_tiled_format(hal_tbm_bufmgr *bufmgr, int width, int height, int bpp, int format,
-                                          hal_tbm_bo_memory_type flags, int bo_idx, hal_tbm_error *error);
 hal_tbm_bo                *hal_tbm_bufmgr_import_fd(hal_tbm_bufmgr *bufmgr, hal_tbm_fd fd, hal_tbm_error *error);
 hal_tbm_bo                *hal_tbm_bufmgr_import_key(hal_tbm_bufmgr *bufmgr, hal_tbm_key key, hal_tbm_error *error);
 
index 631549239e80c67eb2d1772ddc67d5cba215e0a8..30c268145c58381ad1282bd3c02f3539601ac5a8 100644 (file)
@@ -302,15 +302,6 @@ hal_tbm_bufmgr_alloc_bo_with_format(hal_tbm_bufmgr *bufmgr, int format, int bo_i
        return bufmgr_funcs->bufmgr_alloc_bo_with_format((hal_tbm_bufmgr *)bufmgr, format, bo_idx, width, height, mem_types, error);
 }
 
-EXTERN hal_tbm_bo *
-hal_tbm_bufmgr_alloc_bo_with_tiled_format(hal_tbm_bufmgr *bufmgr, int width, int height, int bpp, int format,
-                                                                       hal_tbm_bo_memory_type flags, int bo_idx, hal_tbm_error *error)
-{
-       BUFMGR_FUNC_ENTRY_NULL(bufmgr_alloc_bo_with_tiled_format);
-
-       return bufmgr_funcs->bufmgr_alloc_bo_with_tiled_format((hal_tbm_bufmgr *)bufmgr, width, height, bpp, format, flags, bo_idx, error);
-}
-
 EXTERN hal_tbm_bo *
 hal_tbm_bufmgr_import_fd(hal_tbm_bufmgr *bufmgr, hal_tbm_fd fd, hal_tbm_error *error)
 {