mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
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:
committed by
Compute-Runtime-Automation
parent
0353116964
commit
7f38c5e633
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user