Move SSH size obtaining logic to dedicated function.

Change-Id: I1ea2ceb69f0ae06fe8e37f7769015933295dd6cd
This commit is contained in:
Mrozek, Michal
2018-09-03 16:44:42 +02:00
parent b2beed3daa
commit fb735e5ee5
7 changed files with 15 additions and 8 deletions

View File

@@ -40,12 +40,18 @@
namespace OCLRT {
template <typename GfxFamily>
size_t CommandStreamReceiverHw<GfxFamily>::getSshHeapSize() {
return defaultHeapSize;
}
template <typename GfxFamily>
CommandStreamReceiverHw<GfxFamily>::CommandStreamReceiverHw(const HardwareInfo &hwInfoIn, ExecutionEnvironment &executionEnvironment)
: CommandStreamReceiver(executionEnvironment, defaultHeapSize), hwInfo(hwInfoIn) {
: CommandStreamReceiver(executionEnvironment), hwInfo(hwInfoIn) {
requiredThreadArbitrationPolicy = PreambleHelper<GfxFamily>::getDefaultThreadArbitrationPolicy();
resetKmdNotifyHelper(new KmdNotifyHelper(&(hwInfoIn.capabilityTable.kmdNotifyProperties)));
flatBatchBufferHelper.reset(new FlatBatchBufferHelperHw<GfxFamily>(this->memoryManager));
defaultSshSize = getSshHeapSize();
}
template <typename GfxFamily>