mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Updating wsl compute helper tokens and enbaling local memory
Adding tokens needed for DG2 local mem enabling in WSL Enabling local memory for DG2 for WSL Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a83b173bbe
commit
d2fbcc1960
@@ -32,7 +32,6 @@ GmmClientContext::GmmClientContext(OSInterface *osInterface, HardwareInfo *hwInf
|
||||
|
||||
if (osInterface && osInterface->getDriverModel()) {
|
||||
osInterface->getDriverModel()->setGmmInputArgs(&inArgs);
|
||||
driverModelType = osInterface->getDriverModel()->getDriverModelType();
|
||||
}
|
||||
|
||||
auto ret = GmmInterface::initialize(&inArgs, &outArgs);
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#pragma once
|
||||
#include "shared/source/gmm_helper/client_context/gmm_handle_allocator.h"
|
||||
#include "shared/source/gmm_helper/gmm_lib.h"
|
||||
#include "shared/source/helpers/driver_model_type.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -36,10 +35,6 @@ class GmmClientContext {
|
||||
return hardwareInfo;
|
||||
}
|
||||
|
||||
DriverModelType getDriverModelType() {
|
||||
return driverModelType;
|
||||
}
|
||||
|
||||
MOCKABLE_VIRTUAL uint8_t getSurfaceStateCompressionFormat(GMM_RESOURCE_FORMAT format);
|
||||
MOCKABLE_VIRTUAL uint8_t getMediaSurfaceStateCompressionFormat(GMM_RESOURCE_FORMAT format);
|
||||
|
||||
@@ -54,7 +49,6 @@ class GmmClientContext {
|
||||
}
|
||||
|
||||
protected:
|
||||
DriverModelType driverModelType = DriverModelType::UNKNOWN;
|
||||
HardwareInfo *hardwareInfo = nullptr;
|
||||
GMM_CLIENT_CONTEXT *clientContext;
|
||||
std::unique_ptr<GmmHandleAllocator> handleAllocator;
|
||||
|
||||
@@ -12,12 +12,10 @@
|
||||
#include "shared/source/gmm_helper/resource_info.h"
|
||||
#include "shared/source/helpers/aligned_memory.h"
|
||||
#include "shared/source/helpers/debug_helpers.h"
|
||||
#include "shared/source/helpers/driver_model_type.h"
|
||||
#include "shared/source/helpers/hw_helper.h"
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
#include "shared/source/helpers/ptr_math.h"
|
||||
#include "shared/source/helpers/surface_format_info.h"
|
||||
#include "shared/source/os_interface/hw_info_config.h"
|
||||
|
||||
namespace NEO {
|
||||
Gmm::Gmm(GmmClientContext *clientContext, const void *alignedPtr, size_t alignedSize, size_t alignment, bool uncacheable) : Gmm(clientContext, alignedPtr, alignedSize, alignment, uncacheable, false, true, {}) {}
|
||||
@@ -66,12 +64,6 @@ Gmm::Gmm(GmmClientContext *clientContext, const void *alignedPtr, size_t aligned
|
||||
applyAppResource(storageInfo);
|
||||
applyDebugOverrides();
|
||||
|
||||
auto hardwareInfo = clientContext->getHardwareInfo();
|
||||
if (HwInfoConfig::get(hardwareInfo->platform.eProductFamily)->overrideResourceInfoParamsForWsl(clientContext->getDriverModelType())) {
|
||||
resourceParams.Flags.Info.NonLocalOnly = 1;
|
||||
resourceParams.Flags.Info.LocalOnly = 0;
|
||||
}
|
||||
|
||||
gmmResourceInfo.reset(GmmResourceInfo::create(clientContext, &resourceParams));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user