Revert "image create check"

This reverts commit 333906e278.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2022-10-28 02:32:42 +02:00
committed by Compute-Runtime-Automation
parent 3804b07fe8
commit d8a66cd14d
2 changed files with 0 additions and 24 deletions

View File

@@ -352,12 +352,6 @@ ze_result_t DeviceImp::getCommandQueueGroupProperties(uint32_t *pCount,
ze_result_t DeviceImp::createImage(const ze_image_desc_t *desc, ze_image_handle_t *phImage) {
auto productFamily = neoDevice->getHardwareInfo().platform.eProductFamily;
Image *pImage = nullptr;
if (neoDevice->getDeviceInfo().imageSupport == false) {
*phImage = nullptr;
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
}
auto result = Image::create(productFamily, this, desc, &pImage);
if (result == ZE_RESULT_SUCCESS) {
*phImage = pImage->toHandle();