mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
Pass execution environment to memory manager
Change-Id: If43cf9d1353b4cbc02ea269fb9105c01cc4e0876 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
84865512cd
commit
b602cd2bb8
@ -5,6 +5,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "runtime/execution_environment/execution_environment.h"
|
||||
#include "runtime/os_interface/linux/drm_memory_manager.h"
|
||||
#include "unit_tests/mocks/linux/mock_drm_memory_manager.h"
|
||||
#include "unit_tests/os_interface/linux/device_command_stream_fixture.h"
|
||||
@ -30,9 +31,9 @@ TEST(DrmMemoryManagerTest, givenDrmMemoryManagerWhenSharedAllocationIsCreatedFro
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
ExecutionEnvironment executionEnvironment;
|
||||
auto mock = make_unique<MockDrm>(0);
|
||||
auto memoryManager = make_unique<TestedDrmMemoryManager>(mock.get());
|
||||
auto memoryManager = make_unique<TestedDrmMemoryManager>(mock.get(), executionEnvironment);
|
||||
|
||||
osHandle handle = 3;
|
||||
constexpr size_t maxThreads = 10;
|
||||
@ -92,8 +93,9 @@ TEST(DrmMemoryManagerTest, givenMultipleThreadsWhenSharedAllocationIsCreatedThen
|
||||
}
|
||||
};
|
||||
|
||||
ExecutionEnvironment executionEnvironment;
|
||||
auto mock = make_unique<MockDrm>(0);
|
||||
auto memoryManager = make_unique<TestedDrmMemoryManager>(mock.get());
|
||||
auto memoryManager = make_unique<TestedDrmMemoryManager>(mock.get(), executionEnvironment);
|
||||
|
||||
osHandle handle = 3;
|
||||
constexpr size_t maxThreads = 10;
|
||||
|
Reference in New Issue
Block a user