Store root device environment reference in gmm helper

Related-To: NEO-6853
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-12-19 18:41:13 +00:00
committed by Compute-Runtime-Automation
parent 8f1bdb220f
commit 1d6c3b0e04
6 changed files with 28 additions and 25 deletions

View File

@@ -13,7 +13,6 @@
namespace NEO {
class GmmClientContext;
struct RootDeviceEnvironment;
struct HardwareInfo;
class GmmHandleAllocator;
class GmmClientContext {
@@ -33,10 +32,6 @@ class GmmClientContext {
return std::make_unique<T>(rootDeviceEnvironment);
}
const HardwareInfo *getHardwareInfo() {
return hardwareInfo;
}
MOCKABLE_VIRTUAL uint8_t getSurfaceStateCompressionFormat(GMM_RESOURCE_FORMAT format);
MOCKABLE_VIRTUAL uint8_t getMediaSurfaceStateCompressionFormat(GMM_RESOURCE_FORMAT format);
@@ -49,7 +44,6 @@ class GmmClientContext {
}
protected:
const HardwareInfo *hardwareInfo = nullptr;
GMM_CLIENT_CONTEXT *clientContext;
std::unique_ptr<GmmHandleAllocator> handleAllocator;
};