mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
Error is returned when images are not supported. Related-To: NEO-4368 Change-Id: I1e7098f7c450dbaefc546ab4cfdaebbb5376def4 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
24 lines
548 B
C++
24 lines
548 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "opencl/test/unit_test/test_macros/test_checks.h"
|
|
|
|
#include "shared/source/device/device_info.h"
|
|
|
|
#include "opencl/source/cl_device/cl_device.h"
|
|
#include "opencl/source/context/context.h"
|
|
|
|
using namespace NEO;
|
|
|
|
bool TestChecks::supportsSvm(const ClDevice *pClDevice) {
|
|
return supportsSvm(&pClDevice->getDevice());
|
|
}
|
|
|
|
bool TestChecks::supportsImages(const Context *pContext) {
|
|
return pContext->getDevice(0)->getSharedDeviceInfo().imageSupport;
|
|
}
|