mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
refactor direct submission: Pass command stream receiver to ctor
Related-To: NEO-6643 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
79b8051eab
commit
b5b8762faf
@@ -16,7 +16,7 @@ class DrmDirectSubmission : public DirectSubmissionHw<GfxFamily, Dispatcher> {
|
||||
using DirectSubmissionHw<GfxFamily, Dispatcher>::ringCommandStream;
|
||||
using DirectSubmissionHw<GfxFamily, Dispatcher>::switchRingBuffersAllocations;
|
||||
|
||||
DrmDirectSubmission(Device &device, OsContext &osContext, const GraphicsAllocation *globalFenceAllocation);
|
||||
DrmDirectSubmission(const CommandStreamReceiver &commandStreamReceiver);
|
||||
|
||||
~DrmDirectSubmission();
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
namespace NEO {
|
||||
|
||||
template <typename GfxFamily, typename Dispatcher>
|
||||
DrmDirectSubmission<GfxFamily, Dispatcher>::DrmDirectSubmission(Device &device, OsContext &osContext, const GraphicsAllocation *globalFenceAllocation)
|
||||
: DirectSubmissionHw<GfxFamily, Dispatcher>(device, osContext, globalFenceAllocation) {
|
||||
DrmDirectSubmission<GfxFamily, Dispatcher>::DrmDirectSubmission(const CommandStreamReceiver &commandStreamReceiver)
|
||||
: DirectSubmissionHw<GfxFamily, Dispatcher>(commandStreamReceiver) {
|
||||
|
||||
this->disableMonitorFence = true;
|
||||
|
||||
@@ -42,7 +42,7 @@ DrmDirectSubmission<GfxFamily, Dispatcher>::DrmDirectSubmission(Device &device,
|
||||
osContextLinux->getDrm().setDirectSubmissionActive(true);
|
||||
|
||||
if (this->partitionedMode) {
|
||||
this->workPartitionAllocation = device.getDefaultEngine().commandStreamReceiver->getWorkPartitionAllocation();
|
||||
this->workPartitionAllocation = commandStreamReceiver.getWorkPartitionAllocation();
|
||||
UNRECOVERABLE_IF(this->workPartitionAllocation == nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user