mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Revert imageSupport check during creation
Change-Id: Ife995d54c0211f283688ccf2589225f140ee7bdf Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
93f9f58a6c
commit
f0f6027936
@@ -186,6 +186,11 @@ Image *Image::create(Context *context,
|
||||
imgInfo.preferRenderCompression = MemObjHelper::isSuitableForRenderCompression(!imgInfo.linearStorage, memoryProperties,
|
||||
context->peekContextType(), true);
|
||||
|
||||
if (!context->getDevice(0)->getDeviceInfo().imageSupport && !imgInfo.linearStorage) {
|
||||
errcodeRet = CL_INVALID_OPERATION;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
switch (imageDesc->image_type) {
|
||||
case CL_MEM_OBJECT_IMAGE3D:
|
||||
hostPtrMinSize = hostPtrSlicePitch * imageDepth;
|
||||
@@ -1039,11 +1044,6 @@ Image *Image::validateAndCreateImage(Context *context,
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (!context->getDevice(0)->getDeviceInfo().imageSupport) {
|
||||
errcodeRet = CL_INVALID_OPERATION;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
errcodeRet = Image::validateImageFormat(imageFormat);
|
||||
if (errcodeRet != CL_SUCCESS) {
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user