mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Do not force cl_khr_3d_image_writes extension when compiling kernels
Update usage of SUPPORTED_IMAGES flag and do not use images when disabled. Use SUPPORTED_2_0 only on fully OCL 2.1 conformant platforms. Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
1792516043
commit
6c4b1f951c
@ -27,11 +27,12 @@ bool TestChecks::supportsImages(const Context *pContext) {
|
||||
}
|
||||
|
||||
bool TestChecks::supportsOcl21(const Context *pContext) {
|
||||
return pContext->getDevice(0)->areOcl21FeaturesEnabled();
|
||||
return pContext->getDevice(0)->isOcl21Conformant();
|
||||
}
|
||||
|
||||
bool TestChecks::supportsOcl21(const std::unique_ptr<HardwareInfo> &pHardwareInfo) {
|
||||
return pHardwareInfo->capabilityTable.supportsOcl21Features;
|
||||
return (pHardwareInfo->capabilityTable.supportsOcl21Features && pHardwareInfo->capabilityTable.supportsDeviceEnqueue &&
|
||||
pHardwareInfo->capabilityTable.supportsPipes && pHardwareInfo->capabilityTable.supportsIndependentForwardProgress);
|
||||
}
|
||||
|
||||
bool TestChecks::supportsDeviceEnqueue(const ClDevice *pClDevice) {
|
||||
|
@ -30,11 +30,6 @@ bool supportsAuxResolves();
|
||||
|
||||
#include "shared/test/unit_test/test_macros/test_checks_shared.h"
|
||||
|
||||
#define REQUIRE_IMAGES_OR_SKIP(param) \
|
||||
if (NEO::TestChecks::supportsImages(param) == false) { \
|
||||
GTEST_SKIP(); \
|
||||
}
|
||||
|
||||
#define REQUIRE_IMAGE_SUPPORT_OR_SKIP(param) \
|
||||
auto hwInfo = castToObject<Context>(param)->getDevice(0)->getHardwareInfo(); \
|
||||
if (!hwInfo.capabilityTable.supportsImages) { \
|
||||
|
Reference in New Issue
Block a user