mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Rename HwHelper -> GfxCoreHelper
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
15b6d94555
commit
03b687881f
@@ -1016,8 +1016,8 @@ ze_result_t DebugSessionImp::readSbaRegisters(EuThread::ThreadId threadId, uint3
|
||||
uint64_t bindingTableBaseAddress = ((r0[4] >> 5) << 5) + sbaBuffer.SurfaceStateBaseAddress;
|
||||
uint64_t scratchSpaceBaseAddress = 0;
|
||||
|
||||
auto &hwHelper = NEO::HwHelper::get(connectedDevice->getNEODevice()->getHardwareInfo().platform.eRenderCoreFamily);
|
||||
if (hwHelper.isScratchSpaceSurfaceStateAccessible()) {
|
||||
auto &gfxCoreHelper = NEO::GfxCoreHelper::get(connectedDevice->getNEODevice()->getHardwareInfo().platform.eRenderCoreFamily);
|
||||
if (gfxCoreHelper.isScratchSpaceSurfaceStateAccessible()) {
|
||||
auto surfaceStateForScratch = ((r0[5] >> 10) << 6);
|
||||
|
||||
if (surfaceStateForScratch > 0) {
|
||||
@@ -1031,10 +1031,10 @@ ze_result_t DebugSessionImp::readSbaRegisters(EuThread::ThreadId threadId, uint3
|
||||
return ret;
|
||||
}
|
||||
|
||||
auto scratchSpacePTSize = hwHelper.getRenderSurfaceStatePitch(renderSurfaceState.data());
|
||||
auto scratchSpacePTSize = gfxCoreHelper.getRenderSurfaceStatePitch(renderSurfaceState.data());
|
||||
auto threadOffset = getPerThreadScratchOffset(scratchSpacePTSize, threadId);
|
||||
auto gmmHelper = connectedDevice->getNEODevice()->getGmmHelper();
|
||||
auto scratchAllocationBase = gmmHelper->decanonize(hwHelper.getRenderSurfaceStateBaseAddress(renderSurfaceState.data()));
|
||||
auto scratchAllocationBase = gmmHelper->decanonize(gfxCoreHelper.getRenderSurfaceStateBaseAddress(renderSurfaceState.data()));
|
||||
if (scratchAllocationBase != 0) {
|
||||
scratchSpaceBaseAddress = threadOffset + scratchAllocationBase;
|
||||
}
|
||||
|
||||
@@ -241,8 +241,8 @@ void MetricsLibrary::getSubDeviceClientOptions(
|
||||
|
||||
bool MetricsLibrary::createContext() {
|
||||
auto &device = metricSource.getDevice();
|
||||
const auto &hwHelper = device.getHwHelper();
|
||||
const auto &asyncComputeEngines = hwHelper.getGpgpuEngineInstances(device.getHwInfo());
|
||||
const auto &gfxCoreHelper = device.getGfxCoreHelper();
|
||||
const auto &asyncComputeEngines = gfxCoreHelper.getGpgpuEngineInstances(device.getHwInfo());
|
||||
ContextCreateData_1_0 createData = {};
|
||||
ClientOptionsData_1_0 clientOptions[6] = {};
|
||||
ClientData_1_0 clientData = {};
|
||||
@@ -292,8 +292,8 @@ bool MetricsLibrary::createContext() {
|
||||
}
|
||||
|
||||
ClientGen MetricsLibrary::getGenType(const uint32_t gen) const {
|
||||
auto &hwHelper = NEO::HwHelper::get(static_cast<GFXCORE_FAMILY>(gen));
|
||||
return static_cast<MetricsLibraryApi::ClientGen>(hwHelper.getMetricsLibraryGenId());
|
||||
auto &gfxCoreHelper = NEO::GfxCoreHelper::get(static_cast<GFXCORE_FAMILY>(gen));
|
||||
return static_cast<MetricsLibraryApi::ClientGen>(gfxCoreHelper.getMetricsLibraryGenId());
|
||||
}
|
||||
|
||||
uint32_t MetricsLibrary::getGpuCommandsSize(CommandBufferData_1_0 &commandBuffer) {
|
||||
|
||||
@@ -82,7 +82,7 @@ void SysmanDeviceImp::updateSubDeviceHandlesLocally() {
|
||||
void SysmanDeviceImp::getSysmanDeviceInfo(zes_device_handle_t hDevice, uint32_t &subdeviceId, ze_bool_t &onSubdevice) {
|
||||
NEO::Device *neoDevice = Device::fromHandle(hDevice)->getNEODevice();
|
||||
onSubdevice = static_cast<ze_bool_t>(false);
|
||||
if (NEO::HwHelper::getSubDevicesCount(&neoDevice->getHardwareInfo()) > 1) {
|
||||
if (NEO::GfxCoreHelper::getSubDevicesCount(&neoDevice->getHardwareInfo()) > 1) {
|
||||
onSubdevice = static_cast<ze_bool_t>(true);
|
||||
}
|
||||
if (!neoDevice->isSubDevice()) { // To get physical device or subdeviceIndex Index in case when the device does not support tile architecture is single tile device
|
||||
|
||||
Reference in New Issue
Block a user