mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
Related-To: NEO-4338 Change-Id: Ibef00cb774fc0564f95b3b6ba8c0934798a5957e Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
39 lines
1017 B
C++
39 lines
1017 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/direct_submission/direct_submission_hw.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <typename GfxFamily, typename Dispatcher>
|
|
class DrmDirectSubmission : public DirectSubmissionHw<GfxFamily, Dispatcher> {
|
|
public:
|
|
using DirectSubmissionHw<GfxFamily, Dispatcher>::ringCommandStream;
|
|
using DirectSubmissionHw<GfxFamily, Dispatcher>::switchRingBuffersAllocations;
|
|
|
|
DrmDirectSubmission(Device &device,
|
|
OsContext &osContext);
|
|
|
|
~DrmDirectSubmission();
|
|
|
|
protected:
|
|
bool allocateOsResources() override;
|
|
bool submit(uint64_t gpuAddress, size_t size) override;
|
|
|
|
bool handleResidency() override;
|
|
void handleSwitchRingBuffers() override;
|
|
uint64_t updateTagValue() override;
|
|
void getTagAddressValue(TagData &tagData) override;
|
|
|
|
void wait(uint32_t taskCountToWait);
|
|
|
|
TagData currentTagData;
|
|
volatile uint32_t *tagAddress;
|
|
};
|
|
} // namespace NEO
|