summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSooChan Lim <sc1.lim@samsung.com>2021-05-06 17:17:00 +0900
committerSooChan Lim <sc1.lim@samsung.com>2021-05-06 17:17:00 +0900
commitbeb0788583c8022765462e98fd55d5340b740f99 (patch)
treef5c2e2c0e974fe6e5f5f9f5373a06f01f4ba77e7
parentb8151d73e801c4d95ed1fe6785c2a3b4352de7d7 (diff)
downloadtbm-beb0788583c8022765462e98fd55d5340b740f99.tar.gz
tbm-beb0788583c8022765462e98fd55d5340b740f99.tar.bz2
tbm-beb0788583c8022765462e98fd55d5340b740f99.zip
add mem_types as parameter of hal_tbm_bufmgr_alloc_surface
Change-Id: I350fbb902c5a4fb2b073ad1daf63e11567c68f50
-rw-r--r--include/hal-tbm-interface.h2
-rw-r--r--include/hal-tbm.h2
-rw-r--r--src/hal-api-tbm.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/include/hal-tbm-interface.h b/include/hal-tbm-interface.h
index b2480a5..243c4af 100644
--- a/include/hal-tbm-interface.h
+++ b/include/hal-tbm-interface.h
@@ -69,7 +69,7 @@ struct _hal_tbm_bufmgr_funcs {
hal_tbm_error (*bufmgr_get_supported_formats)(hal_tbm_bufmgr *bufmgr, uint32_t **formats, uint32_t *num);
hal_tbm_error (*bufmgr_get_plane_data)(hal_tbm_bufmgr *bufmgr, hal_tbm_format format, int plane_idx, int width, int height,
uint32_t *size, uint32_t *offset, uint32_t *pitch, int *bo_idx);
- hal_tbm_surface *(*bufmgr_alloc_surface)(hal_tbm_bufmgr *bufmgr, uint32_t width, uint32_t height, hal_tbm_format format, uint64_t *modifiers, uint32_t num_modifiers, hal_tbm_error *error);
+ hal_tbm_surface *(*bufmgr_alloc_surface)(hal_tbm_bufmgr *bufmgr, uint32_t width, uint32_t height, hal_tbm_format format, hal_tbm_bo_memory_type mem_types, uint64_t *modifiers, uint32_t num_modifiers, hal_tbm_error *error);
hal_tbm_surface *(*bufmgr_import_surface)(hal_tbm_bufmgr *bufmgr, uint32_t width, uint32_t height, hal_tbm_format format, hal_tbm_surface_buffer_data *buffer_data, hal_tbm_error *error);
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, int bpp,
diff --git a/include/hal-tbm.h b/include/hal-tbm.h
index fcf0c38..72d2830 100644
--- a/include/hal-tbm.h
+++ b/include/hal-tbm.h
@@ -55,7 +55,7 @@ hal_tbm_bufmgr_capability hal_tbm_bufmgr_get_capabilities(hal_tbm_bufmgr *bufmg
hal_tbm_error hal_tbm_bufmgr_get_supported_formats(hal_tbm_bufmgr *bufmgr, uint32_t **formats, uint32_t *num);
hal_tbm_error hal_tbm_bufmgr_get_plane_data(hal_tbm_bufmgr *bufmgr, hal_tbm_format format, int plane_idx, int width, int height,
uint32_t *size, uint32_t *offset, uint32_t *pitch, int *bo_idx);
-hal_tbm_surface *hal_tbm_bufmgr_alloc_surface(hal_tbm_bufmgr *bufmgr, uint32_t width, uint32_t height, hal_tbm_format format, uint64_t *modifiers, uint32_t num_modifiers, hal_tbm_error *error);
+hal_tbm_surface *hal_tbm_bufmgr_alloc_surface(hal_tbm_bufmgr *bufmgr, uint32_t width, uint32_t height, hal_tbm_format format, hal_tbm_bo_memory_type mem_types, uint64_t *modifiers, uint32_t num_modifiers, hal_tbm_error *error);
hal_tbm_surface *hal_tbm_bufmgr_import_surface(hal_tbm_bufmgr *bufmgr, uint32_t width, uint32_t height, hal_tbm_format format, hal_tbm_surface_buffer_data *buffer_data, hal_tbm_error *error);
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, int bpp,
diff --git a/src/hal-api-tbm.c b/src/hal-api-tbm.c
index ecb86bb..69d859e 100644
--- a/src/hal-api-tbm.c
+++ b/src/hal-api-tbm.c
@@ -314,11 +314,11 @@ hal_tbm_bufmgr_get_plane_data(hal_tbm_bufmgr *bufmgr, hal_tbm_format format, int
EXTERN hal_tbm_surface *
-hal_tbm_bufmgr_alloc_surface(hal_tbm_bufmgr *bufmgr, uint32_t width, uint32_t height, hal_tbm_format format, uint64_t *modifiers, uint32_t num_modifiers, hal_tbm_error *error)
+hal_tbm_bufmgr_alloc_surface(hal_tbm_bufmgr *bufmgr, uint32_t width, uint32_t height, hal_tbm_format format, hal_tbm_bo_memory_type mem_types, uint64_t *modifiers, uint32_t num_modifiers, hal_tbm_error *error)
{
BUFMGR_FUNC_ENTRY_NULL(bufmgr_alloc_surface);
- return bufmgr_funcs->bufmgr_alloc_surface((hal_tbm_bufmgr *)bufmgr, width, height, format, modifiers, num_modifiers, error);
+ return bufmgr_funcs->bufmgr_alloc_surface((hal_tbm_bufmgr *)bufmgr, width, height, format, mem_types, modifiers, num_modifiers, error);
}
EXTERN hal_tbm_surface *