Refactor around cache flush and command queue

Change-Id: I277e27cbc60fbbb015c0024f171697408879ec0b
This commit is contained in:
Chodor, Jaroslaw
2019-02-10 17:50:54 +01:00
parent 3bdfe2ebb7
commit 43856e88b5
24 changed files with 157 additions and 53 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2017-2018 Intel Corporation
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -55,8 +55,12 @@ class CommandQueueHw : public CommandQueue {
getCommandStreamReceiver().overrideDispatchPolicy(DispatchMode::BatchedDispatch);
getCommandStreamReceiver().enableNTo1SubmissionModel();
}
this->requiresCacheFlushAfterWalker = CommandQueueHw<GfxFamily>::requiresCacheFlushAfterWalkerBasedOnProperties(properties);
}
static bool requiresCacheFlushAfterWalkerBasedOnProperties(const cl_queue_properties *properties);
static CommandQueue *create(Context *context,
Device *device,
const cl_queue_properties *properties) {