SWDEV-447458 - remove check for image support
- remove the check from hipmallocpitch
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ife3a95381be703b1c1b7492abfd4432c4a8141c8
[ROCm/clr commit: 315d0fc46e]
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user