2021-05-18 10:46:21 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2021 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "shared/source/command_stream/stream_properties.h"
|
|
|
|
|
|
|
|
using namespace NEO;
|
|
|
|
|
2021-06-18 19:29:03 +08:00
|
|
|
void StateComputeModeProperties::setProperties(bool requiresCoherency, uint32_t numGrfRequired, uint32_t threadArbitrationPolicy) {
|
2021-05-26 21:51:11 +08:00
|
|
|
clearIsDirty();
|
2021-05-18 10:46:21 +08:00
|
|
|
|
2021-05-26 21:51:11 +08:00
|
|
|
int32_t isCoherencyRequired = (requiresCoherency ? 1 : 0);
|
|
|
|
this->isCoherencyRequired.set(isCoherencyRequired);
|
2021-05-18 10:46:21 +08:00
|
|
|
}
|
|
|
|
|
2021-05-26 21:51:11 +08:00
|
|
|
void StateComputeModeProperties::setProperties(const StateComputeModeProperties &properties) {
|
|
|
|
clearIsDirty();
|
2021-05-18 10:46:21 +08:00
|
|
|
|
2021-05-26 21:51:11 +08:00
|
|
|
isCoherencyRequired.set(properties.isCoherencyRequired.value);
|
2021-05-18 10:46:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
bool StateComputeModeProperties::isDirty() {
|
|
|
|
return isCoherencyRequired.isDirty;
|
|
|
|
}
|
|
|
|
|
|
|
|
void StateComputeModeProperties::clearIsDirty() {
|
|
|
|
isCoherencyRequired.isDirty = false;
|
|
|
|
}
|
2021-05-26 21:51:11 +08:00
|
|
|
|
2021-05-31 20:04:57 +08:00
|
|
|
void FrontEndProperties::setProperties(bool isCooperativeKernel, bool disableOverdispatch, const HardwareInfo &hwInfo) {
|
2021-05-26 21:51:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void FrontEndProperties::setProperties(const FrontEndProperties &properties) {
|
|
|
|
}
|
|
|
|
|
|
|
|
bool FrontEndProperties::isDirty() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void FrontEndProperties::clearIsDirty() {
|
|
|
|
}
|