Revert "Return error code for unsuported image arg in gen12lp"

This reverts commit bbc31e6aac


Signed-off-by: Maciej Plewka maciej.plewka@intel.com
This commit is contained in:
Maciej Plewka
2022-11-02 07:29:46 +00:00
committed by Compute-Runtime-Automation
parent 0353116964
commit 7f38c5e633
24 changed files with 126 additions and 624 deletions

View File

@@ -1587,12 +1587,6 @@ cl_int Kernel::setArgImageWithMipLevel(uint32_t argIndex,
auto pImage = castToObject<Image>(clMemObj);
if (pImage && argSize == sizeof(cl_mem *)) {
auto surfFormat = pImage->getSurfaceFormatInfo().surfaceFormat.GenxSurfaceFormat;
auto &hwHelper = HwHelper::get(getHardwareInfo().platform.eRenderCoreFamily);
if (arg.getExtendedTypeInfo().isMediaBlockImage && !hwHelper.isSurfaceFormatSupportedForMediaBlockOperation(surfFormat)) {
return CL_INVALID_ARG_VALUE;
}
if (pImage->peekSharingHandler()) {
usingSharedObjArgs = true;
}