Add new 1.1 image APIs

Note: Implementation same as 1.0 APIs for now.
      The followup change will have the complete implementation.

Change-Id: Ife633f74ff27eee0bb9b0c46952cf5233b0114e8


[ROCm/ROCR-Runtime commit: a324f21a46]
This commit is contained in:
Christophe Paquot
2017-01-18 16:39:34 -08:00
parent 0bb7f56486
commit 4bb9fb4469
4 changed files with 76 additions and 1 deletions
@@ -109,6 +109,9 @@ struct ImageExtTable {
decltype(hsa_ext_image_destroy)* hsa_ext_image_destroy_fn;
decltype(hsa_ext_sampler_create)* hsa_ext_sampler_create_fn;
decltype(hsa_ext_sampler_destroy)* hsa_ext_sampler_destroy_fn;
decltype(hsa_ext_image_get_capability_with_layout)* hsa_ext_image_get_capability_with_layout_fn;
decltype(hsa_ext_image_data_get_info_with_layout)* hsa_ext_image_data_get_info_with_layout_fn;
decltype(hsa_ext_image_create_with_layout)* hsa_ext_image_create_with_layout_fn;
};
// Table to export AMD Extension Apis
@@ -655,6 +655,7 @@ hsa_status_t HSA_API hsa_ext_image_data_get_info(
* or @p image_data_info is NULL.
*/
hsa_status_t HSA_API hsa_ext_image_data_get_info_with_layout(
hsa_agent_t agent,
const hsa_ext_image_descriptor_t *image_descriptor,
hsa_access_permission_t access_permission,
hsa_ext_image_data_layout_t image_data_layout,
@@ -1425,6 +1426,7 @@ typedef struct hsa_ext_images_1_pfn_s {
uint32_t *capability_mask);
hsa_status_t (*hsa_ext_image_data_get_info_with_layout)(
hsa_agent_t agent,
const hsa_ext_image_descriptor_t *image_descriptor,
hsa_access_permission_t access_permission,
hsa_ext_image_data_layout_t image_data_layout,