2022-04-20 21:55:31 +08:00
|
|
|
/*
|
2023-03-20 23:33:57 +08:00
|
|
|
* Copyright (C) 2022-2023 Intel Corporation
|
2022-04-20 21:55:31 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "shared/source/direct_submission/direct_submission_hw.h"
|
|
|
|
|
|
|
|
#include "shared/source/command_stream/command_stream_receiver.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
DirectSubmissionInputParams::DirectSubmissionInputParams(const CommandStreamReceiver &commandStreamReceiver) : osContext(commandStreamReceiver.getOsContext()), rootDeviceEnvironment(commandStreamReceiver.peekRootDeviceEnvironment()), rootDeviceIndex(commandStreamReceiver.getRootDeviceIndex()) {
|
|
|
|
memoryManager = commandStreamReceiver.getMemoryManager();
|
|
|
|
globalFenceAllocation = commandStreamReceiver.getGlobalFenceAllocation();
|
|
|
|
workPartitionAllocation = commandStreamReceiver.getWorkPartitionAllocation();
|
2022-04-21 01:32:39 +08:00
|
|
|
completionFenceAllocation = commandStreamReceiver.getTagAllocation();
|
2022-04-20 21:55:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace NEO
|