mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 02:18:05 +08:00
Reverse logic of creating Memory Manager - part 6
-Remove a redundant condition from the MemoryManager constructor Change-Id: I4b6c56f30a19e77a7a20f68c6d85516aaa52d102 Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
e772321e82
commit
a025dc6985
@@ -13,6 +13,7 @@
|
||||
#include "unit_tests/libult/ult_command_stream_receiver.h"
|
||||
#include "unit_tests/mocks/gl/mock_gl_sharing.h"
|
||||
#include "unit_tests/mocks/mock_context.h"
|
||||
#include "unit_tests/mocks/mock_execution_environment.h"
|
||||
#include "unit_tests/mocks/mock_gmm.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
@@ -23,7 +24,7 @@ class CreateFromGlTexture : public ::testing::Test {
|
||||
// temp solution - we need to query size from GMM:
|
||||
class TempMM : public OsAgnosticMemoryManager {
|
||||
public:
|
||||
TempMM() : OsAgnosticMemoryManager(*(new ExecutionEnvironment)) {
|
||||
TempMM() : OsAgnosticMemoryManager(*(new MockExecutionEnvironment(*platformDevices))) {
|
||||
mockExecutionEnvironment.reset(&executionEnvironment);
|
||||
}
|
||||
GraphicsAllocation *createGraphicsAllocationFromSharedHandle(osHandle handle, bool requireSpecificBitness) override {
|
||||
|
||||
Reference in New Issue
Block a user