Correct Read-Write Images support

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2021-01-18 14:53:47 +00:00
committed by Compute-Runtime-Automation
parent 24a88d22aa
commit d0033dadb3
4 changed files with 6 additions and 17 deletions

View File

@ -255,7 +255,7 @@ void ClDevice::initializeCaps() {
deviceInfo.nativeVectorWidthFloat = 1;
deviceInfo.nativeVectorWidthDouble = 1;
deviceInfo.nativeVectorWidthHalf = 8;
deviceInfo.maxReadWriteImageArgs = ocl21FeaturesEnabled ? 128 : 0;
deviceInfo.maxReadWriteImageArgs = hwInfo.capabilityTable.supportsImages ? 128 : 0;
deviceInfo.executionCapabilities = CL_EXEC_KERNEL;
//copy system info to prevent misaligned reads