2020-01-15 17:02:47 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/direct_submission/direct_submission_hw.h"
|
2020-01-15 17:02:47 +01:00
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
2020-03-26 20:13:10 +01:00
|
|
|
template <typename GfxFamily, typename Dispatcher>
|
|
|
|
|
class DrmDirectSubmission : public DirectSubmissionHw<GfxFamily, Dispatcher> {
|
2020-01-15 17:02:47 +01:00
|
|
|
public:
|
2020-03-26 20:13:10 +01:00
|
|
|
using DirectSubmissionHw<GfxFamily, Dispatcher>::ringCommandStream;
|
|
|
|
|
using DirectSubmissionHw<GfxFamily, Dispatcher>::switchRingBuffersAllocations;
|
2020-01-15 17:02:47 +01: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
|