mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 20:13:04 +08:00
Refactor blit buffer call
Resolves: NEO-3241 Change-Id: I726135ae55d1e0fcbacd80620e827ee5c7c0c8dc Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
5ab8748fc5
commit
552a1268eb
@@ -23,18 +23,17 @@ bool overrideCommandStreamReceiverCreation = false;
|
||||
bool overrideDeviceWithDefaultHardwareInfo = true;
|
||||
|
||||
CommandStreamReceiver *createCommandStream(ExecutionEnvironment &executionEnvironment) {
|
||||
CommandStreamReceiver *commandStreamReceiver = nullptr;
|
||||
auto hwInfo = executionEnvironment.getHardwareInfo();
|
||||
auto offset = !overrideCommandStreamReceiverCreation ? IGFX_MAX_CORE : 0;
|
||||
if (offset != 0) {
|
||||
auto funcCreate = commandStreamReceiverFactory[offset + hwInfo->platform.eRenderCoreFamily];
|
||||
if (funcCreate) {
|
||||
commandStreamReceiver = funcCreate(false, executionEnvironment);
|
||||
}
|
||||
} else {
|
||||
commandStreamReceiver = createCommandStreamImpl(executionEnvironment);
|
||||
|
||||
if (overrideCommandStreamReceiverCreation) {
|
||||
return createCommandStreamImpl(executionEnvironment);
|
||||
}
|
||||
return commandStreamReceiver;
|
||||
|
||||
auto funcCreate = commandStreamReceiverFactory[IGFX_MAX_CORE + hwInfo->platform.eRenderCoreFamily];
|
||||
if (funcCreate) {
|
||||
return funcCreate(false, executionEnvironment);
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool getDevices(size_t &numDevicesReturned, ExecutionEnvironment &executionEnvironment) {
|
||||
|
||||
Reference in New Issue
Block a user