SWDEV-447458 - remove check for image support

- remove the check from hipmallocpitch

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ife3a95381be703b1c1b7492abfd4432c4a8141c8
此提交包含在:
sdashmiz
2024-03-08 09:10:50 -05:00
提交者 Shadi Dashmiz
父節點 0f3391b93e
當前提交 315d0fc46e
-5
查看文件
@@ -814,11 +814,6 @@ hipError_t ihipMallocPitch(void** ptr, size_t* pitch, size_t width, size_t heigh
return hipSuccess;
}
if (device && !device->info().imageSupport_) {
LogPrintfError("Image is not supported on device %p", device);
return hipErrorInvalidValue;
}
//avoid size_t overflow for pitch calculation
if (width > (std::numeric_limits<size_t>::max() - device->info().imagePitchAlignment_)) {
return hipErrorInvalidValue;