mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
feature: create single temporary allocation for bcs split 2
Related-To: NEO-14557 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1bf6431030
commit
d1d566a71b
@@ -24,4 +24,9 @@ template <typename T, typename... RT>
|
||||
bool isAnyNullptr(T t, RT... rt) {
|
||||
return !areNotNullptr(t, rt...);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
T getIfValid(T value, T defaultValue) {
|
||||
return value ? value : defaultValue;
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user