mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Move HardwareInfo ownership to ExecutionEnvironment [1/n]
Change-Id: I5e5b4cc45947a8841282c7d431fb69d9c397a2d4 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b2aee82f41
commit
bb80d327c7
@@ -48,7 +48,7 @@ Sampler *Sampler::create(Context *context, cl_bool normalizedCoordinates,
|
||||
const auto device = context->getDevice(0);
|
||||
const auto &hwInfo = device->getHardwareInfo();
|
||||
|
||||
auto funcCreate = samplerFactory[hwInfo.pPlatform->eRenderCoreFamily];
|
||||
auto funcCreate = samplerFactory[hwInfo.pPlatform.eRenderCoreFamily];
|
||||
DEBUG_BREAK_IF(nullptr == funcCreate);
|
||||
sampler = funcCreate(context, normalizedCoordinates, addressingMode, filterMode, mipFilterMode, lodMin, lodMax);
|
||||
|
||||
@@ -60,7 +60,7 @@ Sampler *Sampler::create(Context *context, cl_bool normalizedCoordinates,
|
||||
}
|
||||
|
||||
size_t Sampler::getSamplerStateSize(const HardwareInfo &hwInfo) {
|
||||
return getSamplerStateSizeHw[hwInfo.pPlatform->eRenderCoreFamily]();
|
||||
return getSamplerStateSizeHw[hwInfo.pPlatform.eRenderCoreFamily]();
|
||||
}
|
||||
|
||||
template <typename ParameterType>
|
||||
|
||||
Reference in New Issue
Block a user