mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Add getter for CSR member
Change-Id: Iab2c7ee19f5659237ea8442685f466a813b4e492 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
0ba2cec970
commit
7421e92826
@@ -43,7 +43,7 @@ AUBCommandStreamReceiverHw<GfxFamily>::AUBCommandStreamReceiverHw(const std::str
|
||||
: BaseClass(executionEnvironment),
|
||||
standalone(standalone) {
|
||||
|
||||
executionEnvironment.initAubCenter(this->localMemoryEnabled, fileName, this->getType());
|
||||
executionEnvironment.initAubCenter(this->isLocalMemoryEnabled(), fileName, this->getType());
|
||||
auto aubCenter = executionEnvironment.aubCenter.get();
|
||||
UNRECOVERABLE_IF(nullptr == aubCenter);
|
||||
|
||||
@@ -407,7 +407,7 @@ void AUBCommandStreamReceiverHw<GfxFamily>::submitBatchBuffer(uint64_t batchBuff
|
||||
}
|
||||
|
||||
auto physBatchBuffer = ppgtt->map(static_cast<uintptr_t>(batchBufferGpuAddress), batchBufferSize, entryBits, memoryBank);
|
||||
AubHelperHw<GfxFamily> aubHelperHw(this->localMemoryEnabled);
|
||||
AubHelperHw<GfxFamily> aubHelperHw(this->isLocalMemoryEnabled());
|
||||
AUB::reserveAddressPPGTT(*stream, static_cast<uintptr_t>(batchBufferGpuAddress), batchBufferSize, physBatchBuffer,
|
||||
entryBits, aubHelperHw);
|
||||
|
||||
@@ -612,7 +612,7 @@ void AUBCommandStreamReceiverHw<GfxFamily>::writeMemory(uint64_t gpuAddress, voi
|
||||
getAubStream()->addComment(str.str().c_str());
|
||||
}
|
||||
|
||||
AubHelperHw<GfxFamily> aubHelperHw(this->localMemoryEnabled);
|
||||
AubHelperHw<GfxFamily> aubHelperHw(this->isLocalMemoryEnabled());
|
||||
|
||||
PageWalker walker = [&](uint64_t physAddress, size_t size, size_t offset, uint64_t entryBits) {
|
||||
AUB::reserveAddressGGTTAndWriteMmeory(*stream, static_cast<uintptr_t>(gpuAddress), cpuAddress, physAddress, size, offset, entryBits,
|
||||
@@ -798,7 +798,7 @@ void AUBCommandStreamReceiverHw<GfxFamily>::addGUCStartMessage(uint64_t batchBuf
|
||||
typedef typename GfxFamily::MI_BATCH_BUFFER_START MI_BATCH_BUFFER_START;
|
||||
|
||||
auto bufferSize = sizeof(uint32_t) + sizeof(MI_BATCH_BUFFER_START);
|
||||
AubHelperHw<GfxFamily> aubHelperHw(this->localMemoryEnabled);
|
||||
AubHelperHw<GfxFamily> aubHelperHw(this->isLocalMemoryEnabled());
|
||||
|
||||
std::unique_ptr<void, std::function<void(void *)>> buffer(this->getMemoryManager()->alignedMallocWrapper(bufferSize, MemoryConstants::pageSize), [&](void *ptr) { this->getMemoryManager()->alignedFreeWrapper(ptr); });
|
||||
LinearStream linearStream(buffer.get(), bufferSize);
|
||||
|
||||
@@ -187,6 +187,8 @@ class CommandStreamReceiver {
|
||||
requiresInstructionCacheFlush = true;
|
||||
}
|
||||
|
||||
bool isLocalMemoryEnabled() const { return localMemoryEnabled; }
|
||||
|
||||
protected:
|
||||
void cleanupResources();
|
||||
|
||||
@@ -255,6 +257,8 @@ class CommandStreamReceiver {
|
||||
bool nTo1SubmissionModelEnabled = false;
|
||||
bool lastSpecialPipelineSelectMode = false;
|
||||
bool requiresInstructionCacheFlush = false;
|
||||
|
||||
bool localMemoryEnabled = false;
|
||||
};
|
||||
|
||||
typedef CommandStreamReceiver *(*CommandStreamReceiverCreateFunc)(bool withAubDump, ExecutionEnvironment &executionEnvironment);
|
||||
|
||||
@@ -105,7 +105,6 @@ class CommandStreamReceiverHw : public CommandStreamReceiver {
|
||||
HeapDirtyState sshState;
|
||||
|
||||
CsrSizeRequestFlags csrSizeRequestFlags = {};
|
||||
bool localMemoryEnabled;
|
||||
};
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user