mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Correct error code in clCreateImage when device doesn't support images.
Related-To: NEO-3175 Change-Id: I27c6fd3f6b86ef47599bf8f7f68b2dfa8c46e1f0 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
1dbab32755
commit
9ecaaa731a
@@ -1011,6 +1011,10 @@ Image *Image::validateAndCreateImage(Context *context,
|
||||
if (errcodeRet != CL_SUCCESS) {
|
||||
return nullptr;
|
||||
}
|
||||
if (!context->getDevice(0)->getDeviceInfo().imageSupport) {
|
||||
errcodeRet = CL_INVALID_OPERATION;
|
||||
return nullptr;
|
||||
}
|
||||
SurfaceFormatInfo *surfaceFormat = nullptr;
|
||||
Image *image = nullptr;
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user