mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Change-Id: I9ee0434897bc3e980b240a8373190f0803e6c102 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
34 lines
911 B
C++
34 lines
911 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;
|
|
};
|
|
} // namespace NEO
|