mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Extract methods to aub_command_stream_receiver_hw_base.inl
Related-To: NEO-3016 Change-Id: I6efcd9cb1f2470c17b8caec2e8fb54d7ca45b448 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
67d39b19db
commit
69c3304692
@@ -9,10 +9,11 @@ set(RUNTIME_SRCS_COMMAND_STREAM
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_command_stream_receiver.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_command_stream_receiver.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_command_stream_receiver_hw.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_command_stream_receiver_hw.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_command_stream_receiver_hw_base.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_command_stream_receiver_hw_bdw_plus.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_stream_provider.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_subcapture.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_subcapture.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_subcapture.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_stream_receiver_hw.h
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2019 Intel Corporation
|
||||
* Copyright (C) 2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -579,11 +579,6 @@ inline void AUBCommandStreamReceiverHw<GfxFamily>::waitForTaskCountWithKmdNotify
|
||||
pollForCompletion();
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
constexpr uint32_t AUBCommandStreamReceiverHw<GfxFamily>::getMaskAndValueForPollForCompletion() {
|
||||
return 0x100;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
void AUBCommandStreamReceiverHw<GfxFamily>::makeResidentExternal(AllocationView &allocationView) {
|
||||
externalAllocations.push_back(allocationView);
|
||||
@@ -784,12 +779,6 @@ uint32_t AUBCommandStreamReceiverHw<GfxFamily>::getDumpHandle() {
|
||||
return hashPtrToU32(this);
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
void AUBCommandStreamReceiverHw<GfxFamily>::addContextToken(uint32_t dumpHandle) {
|
||||
// Some simulator versions don't support adding the context token.
|
||||
// This hook allows specialization for those that do.
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
void AUBCommandStreamReceiverHw<GfxFamily>::addGUCStartMessage(uint64_t batchBufferAddress) {
|
||||
typedef typename GfxFamily::MI_BATCH_BUFFER_START MI_BATCH_BUFFER_START;
|
||||
@@ -828,15 +817,4 @@ void AUBCommandStreamReceiverHw<GfxFamily>::addGUCStartMessage(uint64_t batchBuf
|
||||
this->flatBatchBufferHelper->setPatchInfoData(patchInfoData);
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
uint32_t AUBCommandStreamReceiverHw<GfxFamily>::getGUCWorkQueueItemHeader() {
|
||||
uint32_t GUCWorkQueueItemHeader = 0x00030001;
|
||||
return GUCWorkQueueItemHeader;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
int AUBCommandStreamReceiverHw<GfxFamily>::getAddressSpaceFromPTEBits(uint64_t entryBits) const {
|
||||
return AubMemDump::AddressSpaceValues::TraceNonlocal;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw_base.inl"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
template <typename GfxFamily>
|
||||
constexpr uint32_t AUBCommandStreamReceiverHw<GfxFamily>::getMaskAndValueForPollForCompletion() {
|
||||
return 0x100;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
void AUBCommandStreamReceiverHw<GfxFamily>::addContextToken(uint32_t dumpHandle) {
|
||||
// Some simulator versions don't support adding the context token.
|
||||
// This hook allows specialization for those that do.
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
uint32_t AUBCommandStreamReceiverHw<GfxFamily>::getGUCWorkQueueItemHeader() {
|
||||
uint32_t GUCWorkQueueItemHeader = 0x00030001;
|
||||
return GUCWorkQueueItemHeader;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
int AUBCommandStreamReceiverHw<GfxFamily>::getAddressSpaceFromPTEBits(uint64_t entryBits) const {
|
||||
return AubMemDump::AddressSpaceValues::TraceNonlocal;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw.h"
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw.inl"
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw_bdw_plus.inl"
|
||||
#include "runtime/helpers/array_count.h"
|
||||
#include "runtime/helpers/base_object.h"
|
||||
|
||||
|
||||
@@ -6,11 +6,12 @@
|
||||
*/
|
||||
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw.h"
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw.inl"
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw_bdw_plus.inl"
|
||||
#include "runtime/helpers/array_count.h"
|
||||
#include "runtime/helpers/base_object.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
typedef ICLFamily Family;
|
||||
static auto gfxCore = IGFX_GEN11_CORE;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw.h"
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw.inl"
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw_bdw_plus.inl"
|
||||
#include "runtime/helpers/array_count.h"
|
||||
#include "runtime/helpers/base_object.h"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw.h"
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw.inl"
|
||||
#include "runtime/command_stream/aub_command_stream_receiver_hw_bdw_plus.inl"
|
||||
#include "runtime/helpers/array_count.h"
|
||||
#include "runtime/helpers/base_object.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user