Add image 1.1 API changes to current code base
Initial work to import the latest (1.1) hsa_ext_image extension. Change-Id: I4d55adb09ba4d4dbd43d47a4bc54077d4bc531d2
Este cometimento está contido em:
@@ -126,7 +126,7 @@ public:
|
||||
hsa_agent_t agent,
|
||||
hsa_access_permission_t image_permission,
|
||||
const hsa_ext_image_descriptor_t *image_descriptor,
|
||||
const void *image_data,
|
||||
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,
|
||||
const void* image_data, hsa_ext_image_t* image_handle) override;
|
||||
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, const void *image_data,
|
||||
const hsa_ext_image_descriptor_t *image_descriptor, 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,
|
||||
const void* image_data, hsa_access_permission_t access_permission,
|
||||
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,
|
||||
|
||||
A apresentação das diferenças no ficheiro foi suprimida por ser demasiado grande
Carregar 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,
|
||||
const void *image_data,
|
||||
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,
|
||||
const void *image_data,
|
||||
void *image_data,
|
||||
hsa_ext_image_t *image_handle) override;
|
||||
|
||||
hsa_status_t ImageDestroy(
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador