mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Move hwInfoConfig ownership to RootDeviceEnvironment 2/n
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Use RootDeviceEnvironment getHelper<ProductHelper> for - adjustSamplerState - adjustPlatformForProductFamily.
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
77b6918f30
commit
4aa1697e3c
@ -7,6 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "shared/source/execution_environment/root_device_environment.h"
|
||||
#include "shared/source/helpers/ptr_math.h"
|
||||
#include "shared/source/helpers/string.h"
|
||||
#include "shared/source/utilities/numeric.h"
|
||||
@ -110,8 +111,8 @@ ze_result_t SamplerCoreFamily<gfxCoreFamily>::initialize(Device *device, const z
|
||||
samplerState.setMaxLod(maxLodValue.getRawAccess());
|
||||
|
||||
auto &hwInfo = device->getHwInfo();
|
||||
|
||||
NEO::HwInfoConfig::get(hwInfo.platform.eProductFamily)->adjustSamplerState(&samplerState, hwInfo);
|
||||
auto &helper = device->getNEODevice()->getRootDeviceEnvironment().getHelper<NEO::ProductHelper>();
|
||||
helper.adjustSamplerState(&samplerState, hwInfo);
|
||||
|
||||
return ZE_RESULT_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user