SWDEV-447458 - remove check for image support
- remove the check from hipmallocpitch Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: Ife3a95381be703b1c1b7492abfd4432c4a8141c8
此提交包含在:
@@ -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;
|
||||
|
||||
新增問題並參考
封鎖使用者