2020-01-16 00:02:47 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/direct_submission/direct_submission_hw.h"
|
2020-01-16 00:02:47 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
2020-03-27 03:13:10 +08:00
|
|
|
template <typename GfxFamily, typename Dispatcher>
|
|
|
|
class DrmDirectSubmission : public DirectSubmissionHw<GfxFamily, Dispatcher> {
|
2020-01-16 00:02:47 +08:00
|
|
|
public:
|
2020-03-27 03:13:10 +08:00
|
|
|
using DirectSubmissionHw<GfxFamily, Dispatcher>::ringCommandStream;
|
|
|
|
using DirectSubmissionHw<GfxFamily, Dispatcher>::switchRingBuffersAllocations;
|
2020-01-16 00:02:47 +08:00
|
|
|
|
|
|
|
DrmDirectSubmission(Device &device,
|
|
|
|
OsContext &osContext);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool allocateOsResources(DirectSubmissionAllocations &allocations) override;
|
|
|
|
bool submit(uint64_t gpuAddress, size_t size) override;
|
|
|
|
|
|
|
|
bool handleResidency() override;
|
|
|
|
uint64_t switchRingBuffers() override;
|
|
|
|
uint64_t updateTagValue() override;
|
|
|
|
void getTagAddressValue(TagData &tagData) override;
|
|
|
|
};
|
|
|
|
} // namespace NEO
|