mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
feature: add host function allocation
Related-To: NEO-14577 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
27922536ff
commit
75b4de70cd
@@ -43,6 +43,8 @@ class MockCommandStreamReceiver : public CommandStreamReceiver {
|
||||
using CommandStreamReceiver::gpuHangCheckPeriod;
|
||||
using CommandStreamReceiver::heaplessStateInitEnabled;
|
||||
using CommandStreamReceiver::heaplessStateInitialized;
|
||||
using CommandStreamReceiver::hostFunctionDataAllocation;
|
||||
using CommandStreamReceiver::hostFunctionDataMultiAllocation;
|
||||
using CommandStreamReceiver::immWritePostSyncWriteOffset;
|
||||
using CommandStreamReceiver::internalAllocationStorage;
|
||||
using CommandStreamReceiver::latestFlushedTaskCount;
|
||||
@@ -277,6 +279,11 @@ class MockCommandStreamReceiver : public CommandStreamReceiver {
|
||||
BaseClass::setupContext(osContext);
|
||||
}
|
||||
|
||||
void initializeHostFunctionData() override {
|
||||
initializeHostFunctionDataCalledTimes++;
|
||||
BaseClass::initializeHostFunctionData();
|
||||
}
|
||||
|
||||
static constexpr size_t tagSize = 256;
|
||||
static volatile TagAddressType mockTagAddress[tagSize];
|
||||
std::vector<char> instructionHeapReserveredData;
|
||||
@@ -289,6 +296,7 @@ class MockCommandStreamReceiver : public CommandStreamReceiver {
|
||||
uint32_t downloadAllocationsCalledCount = 0;
|
||||
uint32_t submitDependencyUpdateCalledTimes = 0;
|
||||
uint32_t stopDirectSubmissionCalledTimes = 0;
|
||||
uint32_t initializeHostFunctionDataCalledTimes = 0;
|
||||
int hostPtrSurfaceCreationMutexLockCount = 0;
|
||||
bool multiOsContextCapable = false;
|
||||
bool memoryCompressionEnabled = false;
|
||||
|
||||
Reference in New Issue
Block a user