mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:41:26 +08:00
Add supportsOcl21Features value to capability table
Related-To: NEO-4368 Change-Id: If176d3be7c47d9d9ab70beebe664f2d569997501 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
4c23b60b30
commit
8fd40b090d
@@ -139,9 +139,9 @@ ArrayRef<const ClSurfaceFormatInfo> SurfaceFormats::readWriteDepth() noexcept {
|
||||
return ArrayRef<const ClSurfaceFormatInfo>(readWriteDepthSurfaceFormats);
|
||||
}
|
||||
|
||||
ArrayRef<const ClSurfaceFormatInfo> SurfaceFormats::surfaceFormats(cl_mem_flags flags, unsigned int clVersionSupport) noexcept {
|
||||
ArrayRef<const ClSurfaceFormatInfo> SurfaceFormats::surfaceFormats(cl_mem_flags flags, bool supportsOcl20Features) noexcept {
|
||||
if (flags & CL_MEM_READ_ONLY) {
|
||||
if(clVersionSupport >= 20 ) {
|
||||
if(supportsOcl20Features) {
|
||||
return readOnly20();
|
||||
}
|
||||
else {
|
||||
@@ -156,7 +156,7 @@ ArrayRef<const ClSurfaceFormatInfo> SurfaceFormats::surfaceFormats(cl_mem_flags
|
||||
}
|
||||
}
|
||||
|
||||
ArrayRef<const ClSurfaceFormatInfo> SurfaceFormats::surfaceFormats(cl_mem_flags flags, const cl_image_format *imageFormat, unsigned int clVersionSupport) noexcept {
|
||||
ArrayRef<const ClSurfaceFormatInfo> SurfaceFormats::surfaceFormats(cl_mem_flags flags, const cl_image_format *imageFormat, bool supportsOcl20Features) noexcept {
|
||||
if (NEO::IsNV12Image(imageFormat)) {
|
||||
return planarYuv();
|
||||
}
|
||||
@@ -172,7 +172,7 @@ ArrayRef<const ClSurfaceFormatInfo> SurfaceFormats::surfaceFormats(cl_mem_flags
|
||||
}
|
||||
}
|
||||
else if (flags & CL_MEM_READ_ONLY) {
|
||||
if(clVersionSupport >= 20 ) {
|
||||
if(supportsOcl20Features) {
|
||||
return readOnly20();
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user