Files
compute-runtime/shared/source/command_stream/stream_property.h
Filip Hazubski d693d24f27 Add StateComputeModeProperties to StreamProperties
Related-To: NEO-4940, NEO-4574


Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-05-21 16:39:39 +02:00

26 lines
396 B
C++

/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <cstdint>
namespace NEO {
struct StreamProperty {
int32_t value = -1;
bool isDirty = false;
void set(int32_t newValue) {
if ((value != newValue) && (newValue != -1)) {
value = newValue;
isDirty = true;
}
}
};
} // namespace NEO