Revert " Add image 1.1 API changes to current code base"
Currently HSA HW Profiler is failing to build due to this patch This reverts commit91866d4bbb. Change-Id: Iabb2b958f33ba614a24b61bb370905b3b7362708 [ROCm/ROCR-Runtime commit:5162a76616]
This commit is contained in:
@@ -126,7 +126,7 @@ public:
|
||||
hsa_agent_t agent,
|
||||
hsa_access_permission_t image_permission,
|
||||
const hsa_ext_image_descriptor_t *image_descriptor,
|
||||
void *image_data,
|
||||
const void *image_data,
|
||||
hsa_ext_image_t *image_handle) = 0;
|
||||
|
||||
virtual hsa_status_t ImageDestroy(
|
||||
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
|
||||
hsa_status_t ImageCreate(hsa_agent_t agent, hsa_access_permission_t image_permission,
|
||||
const hsa_ext_image_descriptor_t* image_descriptor,
|
||||
void* image_data, hsa_ext_image_t* image_handle) override;
|
||||
const void* image_data, hsa_ext_image_t* image_handle) override;
|
||||
|
||||
hsa_status_t ImageDestroy(hsa_agent_t agent, hsa_ext_image_t image_handle) override;
|
||||
|
||||
|
||||
@@ -561,7 +561,7 @@ bool LoaderContext::ImageExtensionSupported() {
|
||||
|
||||
hsa_status_t LoaderContext::ImageCreate(
|
||||
hsa_agent_t agent, hsa_access_permission_t image_permission,
|
||||
const hsa_ext_image_descriptor_t *image_descriptor, void *image_data,
|
||||
const hsa_ext_image_descriptor_t *image_descriptor, const void *image_data,
|
||||
hsa_ext_image_t *image_handle) {
|
||||
assert(agent.handle);
|
||||
assert(image_descriptor);
|
||||
|
||||
@@ -528,7 +528,7 @@ hsa_status_t hsa_ext_image_data_get_info(
|
||||
|
||||
hsa_status_t hsa_ext_image_create(
|
||||
hsa_agent_t agent, const hsa_ext_image_descriptor_t* image_descriptor,
|
||||
void* image_data, hsa_access_permission_t access_permission,
|
||||
const void* image_data, hsa_access_permission_t access_permission,
|
||||
hsa_ext_image_t* image) {
|
||||
return core::Runtime::runtime_singleton_->extensions_.image_api
|
||||
.hsa_ext_image_create_fn(agent, image_descriptor, image_data,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -185,7 +185,7 @@ namespace loader {
|
||||
hsa_agent_t agent,
|
||||
hsa_access_permission_t image_permission,
|
||||
const hsa_ext_image_descriptor_t *image_descriptor,
|
||||
void *image_data,
|
||||
const void *image_data,
|
||||
hsa_ext_image_t *image_handle)
|
||||
{
|
||||
void* ptr = alignedMalloc(256, 8);
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace loader {
|
||||
hsa_agent_t agent,
|
||||
hsa_access_permission_t image_permission,
|
||||
const hsa_ext_image_descriptor_t *image_descriptor,
|
||||
void *image_data,
|
||||
const void *image_data,
|
||||
hsa_ext_image_t *image_handle) override;
|
||||
|
||||
hsa_status_t ImageDestroy(
|
||||
|
||||
Reference in New Issue
Block a user