mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Refactor direct submission
Related-To: NEO-4338 Change-Id: Ic858a9324e5f892532d39c98a4029df9d2a64e46 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
5caa8bc28d
commit
49d3c39fae
@@ -10,17 +10,13 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
class OsContextWin;
|
||||
class Wddm;
|
||||
|
||||
template <typename GfxFamily>
|
||||
class DrmDirectSubmission : public DirectSubmissionHw<GfxFamily> {
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
class DrmDirectSubmission : public DirectSubmissionHw<GfxFamily, Dispatcher> {
|
||||
public:
|
||||
using DirectSubmissionHw<GfxFamily>::ringCommandStream;
|
||||
using DirectSubmissionHw<GfxFamily>::switchRingBuffersAllocations;
|
||||
using DirectSubmissionHw<GfxFamily, Dispatcher>::ringCommandStream;
|
||||
using DirectSubmissionHw<GfxFamily, Dispatcher>::switchRingBuffersAllocations;
|
||||
|
||||
DrmDirectSubmission(Device &device,
|
||||
std::unique_ptr<Dispatcher> cmdDispatcher,
|
||||
OsContext &osContext);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -11,40 +11,39 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
template <typename GfxFamily>
|
||||
DrmDirectSubmission<GfxFamily>::DrmDirectSubmission(Device &device,
|
||||
std::unique_ptr<Dispatcher> cmdDispatcher,
|
||||
OsContext &osContext)
|
||||
: DirectSubmissionHw<GfxFamily>(device, std::move(cmdDispatcher), osContext) {
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
DrmDirectSubmission<GfxFamily, Dispatcher>::DrmDirectSubmission(Device &device,
|
||||
OsContext &osContext)
|
||||
: DirectSubmissionHw<GfxFamily, Dispatcher>(device, osContext) {
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
bool DrmDirectSubmission<GfxFamily>::allocateOsResources(DirectSubmissionAllocations &allocations) {
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
bool DrmDirectSubmission<GfxFamily, Dispatcher>::allocateOsResources(DirectSubmissionAllocations &allocations) {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
bool DrmDirectSubmission<GfxFamily>::submit(uint64_t gpuAddress, size_t size) {
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
bool DrmDirectSubmission<GfxFamily, Dispatcher>::submit(uint64_t gpuAddress, size_t size) {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
bool DrmDirectSubmission<GfxFamily>::handleResidency() {
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
bool DrmDirectSubmission<GfxFamily, Dispatcher>::handleResidency() {
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
uint64_t DrmDirectSubmission<GfxFamily>::switchRingBuffers() {
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
uint64_t DrmDirectSubmission<GfxFamily, Dispatcher>::switchRingBuffers() {
|
||||
return 0ull;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
uint64_t DrmDirectSubmission<GfxFamily>::updateTagValue() {
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
uint64_t DrmDirectSubmission<GfxFamily, Dispatcher>::updateTagValue() {
|
||||
return 0ull;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
void DrmDirectSubmission<GfxFamily>::getTagAddressValue(TagData &tagData) {
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
void DrmDirectSubmission<GfxFamily, Dispatcher>::getTagAddressValue(TagData &tagData) {
|
||||
tagData.tagAddress = 0ull;
|
||||
tagData.tagValue = 0ull;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user