Skip to content

Commit

Permalink
Correct size calculation in ImageInitialize()
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirpich30000 committed Sep 22, 2016
1 parent 28e64bb commit a73e6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hexl/hexl_hsaruntime/HsailRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ void HsaQueueErrorCallback(hsa_status_t status, hsa_queue_t *source, void *data)
cbuff += initValue.Size();
}
hsa_status_t status = Runtime()->Hsa()->hsa_ext_image_import(Runtime()->Agent(), buff,
imageParams->width, imageParams->width * imageParams->height, image->Image(), &hsaRegion);
imageParams->width * initValue.Size(), imageParams->width * imageParams->height * initValue.Size(), image->Image(), &hsaRegion);
delete[] buff;
if (status != HSA_STATUS_SUCCESS) { Runtime()->HsaError("hsa_ext_image_import failed", status); return false; }
return true;
Expand Down

0 comments on commit a73e6a7

Please sign in to comment.