mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Free allocations in 2MB heaps
Related-To: NEO-5750 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
0607118f15
commit
495841812f
@ -48,8 +48,6 @@ class MockGfxPartition : public GfxPartition {
|
||||
}
|
||||
}
|
||||
|
||||
MOCK_METHOD(void, freeGpuAddressRange, (uint64_t gpuAddress, size_t size), (override));
|
||||
|
||||
static std::array<HeapIndex, static_cast<uint32_t>(HeapIndex::TOTAL_HEAPS)> allHeapNames;
|
||||
|
||||
OSMemory::ReservedCpuAddressRange reservedCpuAddressRange;
|
||||
@ -58,6 +56,11 @@ class MockGfxPartition : public GfxPartition {
|
||||
const uint64_t mockGpuVa = std::numeric_limits<uint64_t>::max();
|
||||
};
|
||||
|
||||
struct GmockGfxPartition : MockGfxPartition {
|
||||
using MockGfxPartition::MockGfxPartition;
|
||||
MOCK_METHOD(void, freeGpuAddressRange, (uint64_t gpuAddress, size_t size), (override));
|
||||
};
|
||||
|
||||
class MockGfxPartitionBasic : public GfxPartition {
|
||||
public:
|
||||
MockGfxPartitionBasic() : GfxPartition(reservedCpuAddressRange) {}
|
||||
|
Reference in New Issue
Block a user