SWDEV-274464 - Enable pitch alignment for imagebuffer only
Change-Id: Icfe67e689f99f0859c997281abf80ae5254852fb
Этот коммит содержится в:
@@ -230,8 +230,12 @@ static bool validateImageDescriptor(const std::vector<amd::Device*>& devices,
|
||||
}
|
||||
}
|
||||
if (imageRowPitch == 0) {
|
||||
imageRowPitch = amd::alignUp(desc->image_width,
|
||||
devices[0]->info().imagePitchAlignment_) * elemSize;
|
||||
if (desc->mem_object != nullptr) {
|
||||
imageRowPitch = amd::alignUp(desc->image_width,
|
||||
devices[0]->info().imagePitchAlignment_) * elemSize;
|
||||
} else {
|
||||
imageRowPitch = desc->image_width * elemSize;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case CL_MEM_OBJECT_IMAGE1D_BUFFER:
|
||||
|
||||
Ссылка в новой задаче
Block a user