2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2023-01-02 11:14:39 +00:00
|
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 12:29:07 -07:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/command_stream/command_stream_receiver.h"
|
2022-02-22 12:51:29 +00:00
|
|
|
#include "shared/source/command_stream/wait_status.h"
|
2020-03-26 20:13:10 +01:00
|
|
|
#include "shared/source/direct_submission/direct_submission_hw.h"
|
|
|
|
|
#include "shared/source/direct_submission/dispatchers/blitter_dispatcher.h"
|
|
|
|
|
#include "shared/source/direct_submission/dispatchers/render_dispatcher.h"
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/helpers/dirty_state_helpers.h"
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2023-01-17 17:04:14 +00:00
|
|
|
class TagNodeBase;
|
2017-12-21 00:45:38 +01:00
|
|
|
template <typename GfxFamily>
|
|
|
|
|
class DeviceCommandStreamReceiver;
|
2020-04-26 21:48:59 +02:00
|
|
|
struct PipeControlArgs;
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
|
class CommandStreamReceiverHw : public CommandStreamReceiver {
|
|
|
|
|
typedef typename GfxFamily::MI_BATCH_BUFFER_START MI_BATCH_BUFFER_START;
|
|
|
|
|
typedef typename GfxFamily::PIPE_CONTROL PIPE_CONTROL;
|
|
|
|
|
|
2023-06-01 13:21:48 +00:00
|
|
|
struct ImmediateFlushData {
|
2023-06-05 13:29:53 +00:00
|
|
|
PipelineSelectArgs pipelineSelectArgs{};
|
2023-06-01 13:21:48 +00:00
|
|
|
size_t estimatedSize = 0;
|
2023-06-27 13:42:31 +00:00
|
|
|
void *endPtr = nullptr;
|
2023-06-27 19:54:20 +00:00
|
|
|
size_t csrStartOffset = 0;
|
2023-06-01 13:21:48 +00:00
|
|
|
|
2023-06-02 12:04:06 +00:00
|
|
|
bool pipelineSelectFullConfigurationNeeded = false;
|
2023-06-01 13:21:48 +00:00
|
|
|
bool pipelineSelectDirty = false;
|
2023-06-02 12:04:06 +00:00
|
|
|
bool frontEndFullConfigurationNeeded = false;
|
|
|
|
|
bool frontEndDirty = false;
|
2023-06-02 22:10:15 +00:00
|
|
|
bool stateComputeModeFullConfigurationNeeded = false;
|
|
|
|
|
bool stateComputeModeDirty = false;
|
2023-06-05 13:29:53 +00:00
|
|
|
bool stateBaseAddressFullConfigurationNeeded = false;
|
|
|
|
|
bool stateBaseAddressDirty = false;
|
2023-06-19 15:40:22 +00:00
|
|
|
bool contextOneTimeInit = false;
|
2023-06-01 13:21:48 +00:00
|
|
|
};
|
|
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
public:
|
2020-10-29 15:33:35 +01:00
|
|
|
static CommandStreamReceiver *create(ExecutionEnvironment &executionEnvironment,
|
|
|
|
|
uint32_t rootDeviceIndex,
|
|
|
|
|
const DeviceBitfield deviceBitfield) {
|
2020-10-28 16:08:37 +01:00
|
|
|
return new CommandStreamReceiverHw<GfxFamily>(executionEnvironment, rootDeviceIndex, deviceBitfield);
|
2017-12-21 00:45:38 +01:00
|
|
|
}
|
|
|
|
|
|
2020-10-29 15:33:35 +01:00
|
|
|
CommandStreamReceiverHw(ExecutionEnvironment &executionEnvironment,
|
|
|
|
|
uint32_t rootDeviceIndex,
|
|
|
|
|
const DeviceBitfield deviceBitfield);
|
2020-01-15 17:02:47 +01:00
|
|
|
~CommandStreamReceiverHw() override;
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2022-01-07 14:53:31 +00:00
|
|
|
SubmissionStatus flush(BatchBuffer &batchBuffer, ResidencyContainer &allocationsForResidency) override;
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
CompletionStamp flushTask(LinearStream &commandStream, size_t commandStreamStart,
|
2022-03-28 12:55:12 +00:00
|
|
|
const IndirectHeap *dsh, const IndirectHeap *ioh, const IndirectHeap *ssh,
|
2022-11-22 13:53:59 +00:00
|
|
|
TaskCountType taskLevel, DispatchFlags &dispatchFlags, Device &device) override;
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2022-11-30 14:57:18 +00:00
|
|
|
CompletionStamp flushBcsTask(LinearStream &commandStreamTask, size_t commandStreamTaskStart, const DispatchBcsFlags &dispatchBcsFlags, const HardwareInfo &hwInfo) override;
|
|
|
|
|
|
2023-06-01 13:21:48 +00:00
|
|
|
CompletionStamp flushImmediateTask(LinearStream &immediateCommandStream, size_t immediateCommandStreamStart,
|
|
|
|
|
ImmediateDispatchFlags &dispatchFlags, Device &device) override;
|
|
|
|
|
|
2020-07-06 09:34:15 +02:00
|
|
|
void forcePipeControl(NEO::LinearStream &commandStreamCSR);
|
|
|
|
|
|
2019-11-24 14:50:41 +01:00
|
|
|
bool flushBatchedSubmissions() override;
|
2020-05-22 18:11:28 +02:00
|
|
|
void programHardwareContext(LinearStream &cmdStream) override;
|
2020-05-27 15:30:31 +02:00
|
|
|
size_t getCmdsSizeForHardwareContext() const override;
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
static void addBatchBufferEnd(LinearStream &commandStream, void **patchLocation);
|
2023-09-27 12:04:09 +00:00
|
|
|
void programEndingCmd(LinearStream &commandStream, void **patchLocation, bool directSubmissionEnabled, bool hasRelaxedOrderingDependencies);
|
2018-07-05 11:23:28 +02:00
|
|
|
void addBatchBufferStart(MI_BATCH_BUFFER_START *commandBufferMemory, uint64_t startAddress, bool secondary);
|
2021-07-30 09:56:58 +00:00
|
|
|
|
2021-07-08 15:08:37 +00:00
|
|
|
size_t getRequiredStateBaseAddressSize(const Device &device) const;
|
2018-08-07 09:07:50 +02:00
|
|
|
size_t getRequiredCmdStreamSize(const DispatchFlags &dispatchFlags, Device &device);
|
|
|
|
|
size_t getRequiredCmdStreamSizeAligned(const DispatchFlags &dispatchFlags, Device &device);
|
2022-11-30 14:57:18 +00:00
|
|
|
size_t getRequiredCmdStreamSize(const DispatchBcsFlags &dispatchBcsFlags);
|
|
|
|
|
size_t getRequiredCmdStreamSizeAligned(const DispatchBcsFlags &dispatchBcsFlags);
|
2018-08-16 11:18:05 +02:00
|
|
|
size_t getRequiredCmdSizeForPreamble(Device &device) const;
|
2018-04-13 11:05:09 +02:00
|
|
|
size_t getCmdSizeForPreemption(const DispatchFlags &dispatchFlags) const;
|
2019-08-07 19:33:40 +02:00
|
|
|
size_t getCmdSizeForEpilogue(const DispatchFlags &dispatchFlags) const;
|
2019-08-08 11:44:23 +02:00
|
|
|
size_t getCmdSizeForEpilogueCommands(const DispatchFlags &dispatchFlags) const;
|
2018-04-13 11:05:09 +02:00
|
|
|
size_t getCmdSizeForL3Config() const;
|
|
|
|
|
size_t getCmdSizeForPipelineSelect() const;
|
2018-01-19 13:29:25 +01:00
|
|
|
size_t getCmdSizeForMediaSampler(bool mediaSamplerRequired) const;
|
2019-10-11 12:54:10 +08:00
|
|
|
size_t getCmdSizeForEngineMode(const DispatchFlags &dispatchFlags) const;
|
2020-11-26 19:02:18 +00:00
|
|
|
size_t getCmdSizeForPerDssBackedBuffer(const HardwareInfo &hwInfo);
|
2021-09-23 18:13:37 +00:00
|
|
|
size_t getCmdSizeForActivePartitionConfig() const;
|
2021-11-06 01:42:54 +00:00
|
|
|
size_t getCmdSizeForStallingCommands(const DispatchFlags &dispatchFlags) const;
|
|
|
|
|
size_t getCmdSizeForStallingNoPostSyncCommands() const;
|
2021-12-09 19:31:27 +00:00
|
|
|
size_t getCmdSizeForStallingPostSyncCommands() const;
|
2022-03-09 17:15:48 +00:00
|
|
|
size_t getCmdSizeForComputeMode();
|
|
|
|
|
MOCKABLE_VIRTUAL bool hasSharedHandles();
|
2019-11-12 13:59:37 +01:00
|
|
|
|
2020-03-19 15:15:51 +01:00
|
|
|
bool isPipelineSelectAlreadyProgrammed() const;
|
2021-07-06 13:29:10 +00:00
|
|
|
void programComputeMode(LinearStream &csr, DispatchFlags &dispatchFlags, const HardwareInfo &hwInfo);
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2022-11-22 13:53:59 +00:00
|
|
|
WaitStatus waitForTaskCountWithKmdNotifyFallback(TaskCountType taskCountToWait, FlushStamp flushStampToWait, bool useQuickKmdSleep, QueueThrottle throttle) override;
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2018-03-14 11:07:51 +01:00
|
|
|
void collectStateBaseAddresPatchInfo(
|
2018-04-04 11:34:46 +02:00
|
|
|
uint64_t commandBufferAddress,
|
2018-03-14 11:07:51 +01:00
|
|
|
uint64_t commandOffset,
|
2022-03-28 12:55:12 +00:00
|
|
|
const LinearStream *dsh,
|
|
|
|
|
const LinearStream *ioh,
|
|
|
|
|
const LinearStream *ssh,
|
2022-09-30 13:20:48 +00:00
|
|
|
uint64_t generalStateBase,
|
|
|
|
|
bool imagesSupported);
|
2018-03-14 11:07:51 +01:00
|
|
|
|
2021-09-28 10:56:22 +00:00
|
|
|
void collectStateBaseAddresIohPatchInfo(uint64_t commandBufferAddress, uint64_t commandOffset, const LinearStream &ioh);
|
|
|
|
|
|
2018-04-10 10:26:59 +02:00
|
|
|
void resetKmdNotifyHelper(KmdNotifyHelper *newHelper);
|
|
|
|
|
|
2022-11-25 16:51:17 +00:00
|
|
|
CommandStreamReceiverType getType() const override {
|
2018-06-06 10:34:51 +02:00
|
|
|
return CommandStreamReceiverType::CSR_HW;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-22 13:53:59 +00:00
|
|
|
TaskCountType flushBcsTask(const BlitPropertiesContainer &blitPropertiesContainer, bool blocking, bool profilingEnabled, Device &device) override;
|
2019-04-03 15:59:31 +02:00
|
|
|
|
2022-11-09 11:18:06 +00:00
|
|
|
SubmissionStatus flushTagUpdate() override;
|
|
|
|
|
SubmissionStatus flushMiFlushDW();
|
2023-03-27 21:37:18 +00:00
|
|
|
SubmissionStatus flushPipeControl(bool stateCacheFlush);
|
2022-11-09 11:18:06 +00:00
|
|
|
SubmissionStatus flushSmallTask(LinearStream &commandStreamTask,
|
|
|
|
|
size_t commandStreamStartTask);
|
2022-11-07 11:50:09 +00:00
|
|
|
SubmissionStatus flushHandler(BatchBuffer &batchBuffer, ResidencyContainer &allocationsForResidency);
|
2023-03-27 21:37:18 +00:00
|
|
|
SubmissionStatus sendRenderStateCacheFlush() override;
|
2021-02-23 08:48:08 +00:00
|
|
|
|
2023-03-27 09:06:13 +00:00
|
|
|
bool isUpdateTagFromWaitEnabled() override;
|
2021-02-23 08:48:08 +00:00
|
|
|
void updateTagFromWait() override;
|
|
|
|
|
|
2019-09-12 17:30:13 +02:00
|
|
|
bool isMultiOsContextCapable() const override;
|
|
|
|
|
|
2023-01-04 09:45:07 +00:00
|
|
|
MemoryCompressionState getMemoryCompressionState(bool auxTranslationRequired) const override;
|
2020-12-17 00:36:45 +00:00
|
|
|
|
2020-01-15 17:02:47 +01:00
|
|
|
bool isDirectSubmissionEnabled() const override {
|
|
|
|
|
return directSubmission.get() != nullptr;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-26 20:13:10 +01:00
|
|
|
bool isBlitterDirectSubmissionEnabled() const override {
|
|
|
|
|
return blitterDirectSubmission.get() != nullptr;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-21 14:55:39 +00:00
|
|
|
bool directSubmissionRelaxedOrderingEnabled() const override;
|
|
|
|
|
|
2023-07-05 08:55:12 +00:00
|
|
|
void stopDirectSubmission(bool blocking) override;
|
2021-07-30 09:56:58 +00:00
|
|
|
|
2021-06-15 11:31:12 +00:00
|
|
|
virtual bool isKmdWaitModeActive() { return true; }
|
2021-02-17 10:33:41 +00:00
|
|
|
|
2022-04-19 14:44:06 +00:00
|
|
|
bool initDirectSubmission() override;
|
2020-11-18 23:58:42 +00:00
|
|
|
GraphicsAllocation *getClearColorAllocation() override;
|
2020-07-17 11:28:59 +02:00
|
|
|
|
2021-03-29 14:46:41 +00:00
|
|
|
TagAllocatorBase *getTimestampPacketAllocator() override;
|
2023-01-19 16:11:39 +00:00
|
|
|
std::unique_ptr<TagAllocatorBase> createMultiRootDeviceTimestampPacketAllocator(const RootDeviceIndicesContainer rootDeviceIndices) override;
|
2021-03-29 14:46:41 +00:00
|
|
|
|
2021-05-19 21:41:59 +00:00
|
|
|
void postInitFlagsSetup() override;
|
2021-11-17 19:51:43 +00:00
|
|
|
void programActivePartitionConfig(LinearStream &csr);
|
2021-05-19 21:41:59 +00:00
|
|
|
|
2021-12-10 21:31:34 +00:00
|
|
|
void programComputeBarrierCommand(LinearStream &cmdStream) override {
|
|
|
|
|
programStallingNoPostSyncCommandsForBarrier(cmdStream);
|
|
|
|
|
}
|
|
|
|
|
size_t getCmdsSizeForComputeBarrierCommand() const override {
|
|
|
|
|
return getCmdSizeForStallingNoPostSyncCommands();
|
|
|
|
|
}
|
2023-09-12 14:17:52 +00:00
|
|
|
void programStallingCommandsForBarrier(LinearStream &cmdStream, TimestampPacketContainer *barrierTimestampPacketNodes, const bool isDcFlushRequired) override;
|
2022-11-10 11:28:41 +00:00
|
|
|
SubmissionStatus initializeDeviceWithFirstSubmission() override;
|
2021-12-10 21:31:34 +00:00
|
|
|
|
2022-09-27 23:51:57 +00:00
|
|
|
HeapDirtyState &getDshState() {
|
|
|
|
|
return dshState;
|
|
|
|
|
}
|
2022-09-26 22:28:10 +00:00
|
|
|
HeapDirtyState &getSshState() {
|
|
|
|
|
return sshState;
|
2023-02-28 19:46:30 +00:00
|
|
|
}
|
|
|
|
|
HeapDirtyState &getIohState() {
|
|
|
|
|
return iohState;
|
2022-09-26 22:28:10 +00:00
|
|
|
}
|
|
|
|
|
|
2023-03-30 20:03:12 +00:00
|
|
|
void dispatchRayTracingStateCommand(LinearStream &cmdStream, Device &device);
|
|
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
protected:
|
2019-07-31 08:57:00 +02:00
|
|
|
void programPreemption(LinearStream &csr, DispatchFlags &dispatchFlags);
|
2021-11-04 12:54:18 +00:00
|
|
|
void programL3(LinearStream &csr, uint32_t &newL3Config);
|
|
|
|
|
void programPreamble(LinearStream &csr, Device &device, uint32_t &newL3Config);
|
2019-09-10 16:13:11 +02:00
|
|
|
void programPipelineSelect(LinearStream &csr, PipelineSelectArgs &pipelineSelectArgs);
|
2021-01-28 17:30:56 +00:00
|
|
|
void programEpilogue(LinearStream &csr, Device &device, void **batchBufferEndLocation, DispatchFlags &dispatchFlags);
|
2019-08-08 11:44:23 +02:00
|
|
|
void programEpliogueCommands(LinearStream &csr, const DispatchFlags &dispatchFlags);
|
2018-01-19 13:29:25 +01:00
|
|
|
void programMediaSampler(LinearStream &csr, DispatchFlags &dispatchFlags);
|
2020-11-26 19:02:18 +00:00
|
|
|
void programPerDssBackedBuffer(LinearStream &scr, Device &device, DispatchFlags &dispatchFlags);
|
2018-11-05 11:52:19 +01:00
|
|
|
void programStateSip(LinearStream &cmdStream, Device &device);
|
2019-05-29 15:37:54 +02:00
|
|
|
void programVFEState(LinearStream &csr, DispatchFlags &dispatchFlags, uint32_t maxFrontEndThreads);
|
2021-11-06 01:42:54 +00:00
|
|
|
void programStallingNoPostSyncCommandsForBarrier(LinearStream &cmdStream);
|
2023-07-13 09:26:41 +00:00
|
|
|
void programStallingPostSyncCommandsForBarrier(LinearStream &cmdStream, TagNodeBase &tagNode, bool dcFlushRequired);
|
2019-10-11 12:54:10 +08:00
|
|
|
void programEngineModeCommands(LinearStream &csr, const DispatchFlags &dispatchFlags);
|
|
|
|
|
void programEngineModeEpliogue(LinearStream &csr, const DispatchFlags &dispatchFlags);
|
2021-11-17 19:51:43 +00:00
|
|
|
void programActivePartitionConfigFlushTask(LinearStream &csr);
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2020-02-07 15:36:15 +01:00
|
|
|
void programEnginePrologue(LinearStream &csr);
|
2020-05-27 15:30:31 +02:00
|
|
|
size_t getCmdSizeForPrologue() const;
|
2020-01-31 08:50:12 +01:00
|
|
|
|
2022-05-13 00:29:53 +00:00
|
|
|
void setClearSlmWorkAroundParameter(PipeControlArgs &args);
|
2021-10-01 11:47:49 +00:00
|
|
|
void addPipeControlBeforeStateSip(LinearStream &commandStream, Device &device);
|
2021-09-30 11:10:58 +00:00
|
|
|
void addPipeControlBefore3dState(LinearStream &commandStream, DispatchFlags &dispatchFlags);
|
2021-03-31 20:21:59 +00:00
|
|
|
bool are4GbHeapsAvailable() const;
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
uint64_t getScratchPatchAddress();
|
2019-03-29 00:49:23 +01:00
|
|
|
void createScratchSpaceController();
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2019-01-28 13:44:59 +01:00
|
|
|
bool detectInitProgrammingFlagsRequired(const DispatchFlags &dispatchFlags) const;
|
2020-09-22 16:29:34 +02:00
|
|
|
bool checkPlatformSupportsNewResourceImplicitFlush() const;
|
|
|
|
|
bool checkPlatformSupportsGpuIdleImplicitFlush() const;
|
2021-11-30 14:41:26 +00:00
|
|
|
void configurePostSyncWriteOffset();
|
2022-03-25 13:00:53 +00:00
|
|
|
void unregisterDirectSubmissionFromController();
|
2023-02-02 18:57:24 +00:00
|
|
|
void handleFrontEndStateTransition(const DispatchFlags &dispatchFlags);
|
|
|
|
|
void handlePipelineSelectStateTransition(const DispatchFlags &dispatchFlags);
|
|
|
|
|
void handleStateBaseAddressStateTransition(const DispatchFlags &dispatchFlags, bool &isStateBaseAddressDirty);
|
2023-03-15 15:10:06 +00:00
|
|
|
void updateStreamTaskCount(LinearStream &stream, TaskCountType newTaskCount);
|
2023-05-15 14:41:44 +00:00
|
|
|
inline void programStateBaseAddress(const IndirectHeap *dsh,
|
|
|
|
|
const IndirectHeap *ioh,
|
|
|
|
|
const IndirectHeap *ssh,
|
|
|
|
|
DispatchFlags &dispatchFlags,
|
|
|
|
|
Device &device, LinearStream &commandStreamCSR,
|
|
|
|
|
bool stateBaseAddressDirty);
|
|
|
|
|
|
|
|
|
|
inline void reprogramStateBaseAddress(const IndirectHeap *dsh,
|
|
|
|
|
const IndirectHeap *ioh,
|
|
|
|
|
const IndirectHeap *ssh,
|
|
|
|
|
DispatchFlags &dispatchFlags,
|
|
|
|
|
Device &device, LinearStream &commandStreamCSR,
|
|
|
|
|
bool force32BitAllocations, bool sshDirty, bool bindingTablePoolCommandNeeded);
|
2023-06-05 13:29:53 +00:00
|
|
|
inline void programStateBaseAddressCommon(const IndirectHeap *dsh,
|
|
|
|
|
const IndirectHeap *ioh,
|
|
|
|
|
const IndirectHeap *ssh,
|
|
|
|
|
StateBaseAddressProperties *sbaProperties,
|
|
|
|
|
uint64_t generalStateBaseAddress,
|
|
|
|
|
uint64_t indirectObjectStateBaseAddress,
|
|
|
|
|
PipelineSelectArgs &pipelineSelectArgs,
|
|
|
|
|
Device &device,
|
|
|
|
|
LinearStream &csrCommandStream,
|
|
|
|
|
bool dispatchBindingTableCommand,
|
2023-06-30 19:57:19 +00:00
|
|
|
bool areMultipleSubDevicesInContext,
|
|
|
|
|
bool setGeneralStateBaseAddress);
|
2023-05-15 14:41:44 +00:00
|
|
|
|
|
|
|
|
inline void programSamplerCacheFlushBetweenRedescribedSurfaceReads(LinearStream &commandStreamCSR);
|
2023-03-13 17:56:20 +00:00
|
|
|
bool bcsRelaxedOrderingAllowed(const BlitPropertiesContainer &blitPropertiesContainer, bool hasStallingCmds) const;
|
2023-06-02 12:04:06 +00:00
|
|
|
inline void handleImmediateFlushPipelineSelectState(ImmediateDispatchFlags &dispatchFlags, ImmediateFlushData &flushData);
|
2023-06-02 22:10:15 +00:00
|
|
|
inline void dispatchImmediateFlushPipelineSelectCommand(ImmediateFlushData &flushData, LinearStream &csrStream);
|
2023-06-02 12:04:06 +00:00
|
|
|
inline void handleImmediateFlushFrontEndState(ImmediateDispatchFlags &dispatchFlags, ImmediateFlushData &flushData);
|
2023-06-30 19:57:19 +00:00
|
|
|
inline void dispatchImmediateFlushFrontEndCommand(ImmediateFlushData &flushData, Device &device, LinearStream &csrStream);
|
2023-06-02 22:10:15 +00:00
|
|
|
inline void handleImmediateFlushStateComputeModeState(ImmediateDispatchFlags &dispatchFlags, ImmediateFlushData &flushData);
|
|
|
|
|
inline void dispatchImmediateFlushStateComputeModeCommand(ImmediateFlushData &flushData, LinearStream &csrStream);
|
2023-06-05 13:29:53 +00:00
|
|
|
inline void handleImmediateFlushStateBaseAddressState(ImmediateDispatchFlags &dispatchFlags, ImmediateFlushData &flushData, Device &device);
|
|
|
|
|
inline void dispatchImmediateFlushStateBaseAddressCommand(ImmediateFlushData &flushData, LinearStream &csrStream, Device &device);
|
2023-03-13 17:56:20 +00:00
|
|
|
|
2023-06-20 14:57:40 +00:00
|
|
|
inline void handleImmediateFlushOneTimeContextInitState(ImmediateDispatchFlags &dispatchFlags, ImmediateFlushData &flushData, Device &device);
|
|
|
|
|
inline void dispatchImmediateFlushOneTimeContextInitCommand(ImmediateFlushData &flushData, LinearStream &csrStream, Device &device);
|
2023-06-19 15:40:22 +00:00
|
|
|
|
2023-06-22 13:17:49 +00:00
|
|
|
inline void handleImmediateFlushJumpToImmediate(ImmediateFlushData &flushData);
|
|
|
|
|
inline void dispatchImmediateFlushJumpToImmediateCommand(LinearStream &immediateCommandStream,
|
|
|
|
|
size_t immediateCommandStreamStart,
|
|
|
|
|
ImmediateFlushData &flushData,
|
|
|
|
|
LinearStream &csrStream);
|
2023-06-27 13:42:31 +00:00
|
|
|
inline void dispatchImmediateFlushClientBufferCommands(ImmediateDispatchFlags &dispatchFlags,
|
|
|
|
|
LinearStream &immediateCommandStream,
|
|
|
|
|
ImmediateFlushData &flushData);
|
2023-06-22 13:17:49 +00:00
|
|
|
|
2023-06-27 19:54:20 +00:00
|
|
|
inline void handleImmediateFlushAllocationsResidency(Device &device,
|
|
|
|
|
LinearStream &immediateCommandStream,
|
|
|
|
|
ImmediateFlushData &flushData,
|
|
|
|
|
LinearStream &csrStream);
|
|
|
|
|
|
|
|
|
|
inline CompletionStamp handleImmediateFlushSendBatchBuffer(LinearStream &immediateCommandStream,
|
|
|
|
|
size_t immediateCommandStreamStart,
|
|
|
|
|
ImmediateDispatchFlags &dispatchFlags,
|
|
|
|
|
ImmediateFlushData &flushData,
|
|
|
|
|
LinearStream &csrStream);
|
2023-06-19 15:40:22 +00:00
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
HeapDirtyState dshState;
|
|
|
|
|
HeapDirtyState iohState;
|
|
|
|
|
HeapDirtyState sshState;
|
|
|
|
|
|
|
|
|
|
CsrSizeRequestFlags csrSizeRequestFlags = {};
|
2020-01-15 17:02:47 +01:00
|
|
|
|
2020-11-18 13:56:18 +00:00
|
|
|
bool wasSubmittedToSingleSubdevice = false;
|
|
|
|
|
|
2020-03-26 20:13:10 +01:00
|
|
|
std::unique_ptr<DirectSubmissionHw<GfxFamily, RenderDispatcher<GfxFamily>>> directSubmission;
|
|
|
|
|
std::unique_ptr<DirectSubmissionHw<GfxFamily, BlitterDispatcher<GfxFamily>>> blitterDirectSubmission;
|
2021-04-13 01:49:19 +05:30
|
|
|
|
|
|
|
|
size_t cmdStreamStart = 0;
|
2022-07-01 11:10:43 +00:00
|
|
|
uint32_t latestSentBcsWaValue = std::numeric_limits<uint32_t>::max();
|
2017-12-21 00:45:38 +01:00
|
|
|
};
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|