mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Update XE_HP_CORE files to enable unit tests
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
399dc60bf8
commit
bec8cdd6f1
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "shared/source/command_stream/stream_properties.h"
|
||||
|
||||
#include "shared/source/kernel/grf_config.h"
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
void StateComputeModeProperties::setProperties(bool requiresCoherency, uint32_t numGrfRequired, uint32_t threadArbitrationPolicy) {
|
||||
@@ -14,20 +16,25 @@ void StateComputeModeProperties::setProperties(bool requiresCoherency, uint32_t
|
||||
|
||||
int32_t isCoherencyRequired = (requiresCoherency ? 1 : 0);
|
||||
this->isCoherencyRequired.set(isCoherencyRequired);
|
||||
|
||||
int32_t largeGrfMode = (numGrfRequired == GrfConfig::LargeGrfNumber ? 1 : 0);
|
||||
this->largeGrfMode.set(largeGrfMode);
|
||||
}
|
||||
|
||||
void StateComputeModeProperties::setProperties(const StateComputeModeProperties &properties) {
|
||||
clearIsDirty();
|
||||
|
||||
isCoherencyRequired.set(properties.isCoherencyRequired.value);
|
||||
largeGrfMode.set(properties.largeGrfMode.value);
|
||||
}
|
||||
|
||||
bool StateComputeModeProperties::isDirty() {
|
||||
return isCoherencyRequired.isDirty;
|
||||
return isCoherencyRequired.isDirty || largeGrfMode.isDirty;
|
||||
}
|
||||
|
||||
void StateComputeModeProperties::clearIsDirty() {
|
||||
isCoherencyRequired.isDirty = false;
|
||||
largeGrfMode.isDirty = false;
|
||||
}
|
||||
|
||||
void FrontEndProperties::setProperties(bool isCooperativeKernel, bool disableOverdispatch, const HardwareInfo &hwInfo) {
|
||||
|
||||
Reference in New Issue
Block a user