mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
feature: improve post sync system memory fence programming
Related-To: NEO-8210 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
46d860b2bf
commit
6eb152b24b
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -74,6 +74,10 @@ struct EncodeDispatchKernelArgs {
|
||||
bool dcFlushEnable = false;
|
||||
bool isHeaplessModeEnabled = false;
|
||||
bool interruptEvent = false;
|
||||
|
||||
bool requiresSystemMemoryFence() const {
|
||||
return (isHostScopeSignalEvent && isKernelUsingSystemAllocation);
|
||||
}
|
||||
};
|
||||
|
||||
enum class MiPredicateType : uint32_t {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -382,7 +382,7 @@ void EncodeDispatchKernel<Family>::encode(CommandContainer &container, EncodeDis
|
||||
|
||||
EncodeWalkerArgs walkerArgs{
|
||||
args.isCooperative ? KernelExecutionType::concurrent : KernelExecutionType::defaultType,
|
||||
args.isHostScopeSignalEvent && args.isKernelUsingSystemAllocation,
|
||||
args.requiresSystemMemoryFence(),
|
||||
kernelDescriptor,
|
||||
args.requiredDispatchWalkOrder,
|
||||
args.additionalSizeParam,
|
||||
|
||||
Reference in New Issue
Block a user