mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Update ThreadArbitrationPolicy enum. Remove adjustThreadArbitionPolicy from CommandStreamReceiverHw. Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
47 lines
1.3 KiB
C++
47 lines
1.3 KiB
C++
/*
|
|
* Copyright (C) 2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/command_stream/stream_properties.h"
|
|
|
|
using namespace NEO;
|
|
|
|
void StateComputeModeProperties::setProperties(bool requiresCoherency, uint32_t numGrfRequired, bool isMultiOsContextCapable,
|
|
bool useGlobalAtomics, bool areMultipleSubDevicesInContext,
|
|
uint32_t threadArbitrationPolicy) {
|
|
clearIsDirty();
|
|
|
|
int32_t isCoherencyRequired = (requiresCoherency ? 1 : 0);
|
|
this->isCoherencyRequired.set(isCoherencyRequired);
|
|
}
|
|
|
|
void StateComputeModeProperties::setProperties(const StateComputeModeProperties &properties) {
|
|
clearIsDirty();
|
|
|
|
isCoherencyRequired.set(properties.isCoherencyRequired.value);
|
|
}
|
|
|
|
bool StateComputeModeProperties::isDirty() {
|
|
return isCoherencyRequired.isDirty;
|
|
}
|
|
|
|
void StateComputeModeProperties::clearIsDirty() {
|
|
isCoherencyRequired.isDirty = false;
|
|
}
|
|
|
|
void FrontEndProperties::setProperties(bool isCooperativeKernel, bool disableOverdispatch, const HardwareInfo &hwInfo) {
|
|
}
|
|
|
|
void FrontEndProperties::setProperties(const FrontEndProperties &properties) {
|
|
}
|
|
|
|
bool FrontEndProperties::isDirty() {
|
|
return false;
|
|
}
|
|
|
|
void FrontEndProperties::clearIsDirty() {
|
|
}
|