mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Change max image3d dimensions for gen8
- gen8 has lower max image 3d height and width Change-Id: Ibe94a24cba488a5ebf582992a5f7a4d5bad801f8
This commit is contained in:
committed by
sys_ocldev
parent
f43a04d3b2
commit
1207da92a3
@@ -24,6 +24,7 @@
|
||||
#include <algorithm>
|
||||
#include "runtime/device/device.h"
|
||||
#include "runtime/helpers/basic_math.h"
|
||||
#include "runtime/helpers/hw_helper.h"
|
||||
#include "runtime/helpers/options.h"
|
||||
#include "runtime/memory_manager/memory_manager.h"
|
||||
#include "runtime/sharings/sharing_factory.h"
|
||||
@@ -76,6 +77,10 @@ void Device::initializeCaps() {
|
||||
driverVersion.assign(driverInfo.get()->getVersion(driverVersion).c_str());
|
||||
}
|
||||
|
||||
HardwareCapabilities hwCaps = {0};
|
||||
auto &hwHelper = HwHelper::get(hwInfo.pPlatform->eRenderCoreFamily);
|
||||
hwHelper.setupHardwareCapabilities(&hwCaps);
|
||||
|
||||
deviceInfo.name = name.c_str();
|
||||
deviceInfo.driverVersion = driverVersion.c_str();
|
||||
|
||||
@@ -301,8 +306,8 @@ void Device::initializeCaps() {
|
||||
deviceInfo.imageSupport = CL_TRUE;
|
||||
deviceInfo.image2DMaxWidth = 16384;
|
||||
deviceInfo.image2DMaxHeight = 16384;
|
||||
deviceInfo.image3DMaxWidth = 16384;
|
||||
deviceInfo.image3DMaxHeight = 16384;
|
||||
deviceInfo.image3DMaxWidth = hwCaps.image3DMaxWidth;
|
||||
deviceInfo.image3DMaxHeight = hwCaps.image3DMaxHeight;
|
||||
deviceInfo.image3DMaxDepth = 2048;
|
||||
deviceInfo.imageMaxArraySize = 2048;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user