sdm: Add support for SSPP Tonemapping
- Add interfaces in SDM to support SSPP Tonemapping.
- Get the SSPP tonemap caps from the drm interface and
populate the SDM private interfaces.
- Add support to set the sspp tonemap config to drm planes.
- Handle Idle PowerCollapse event for SSPP luts.
Crs-fixed: 2200881
Change-Id: I38590915fd05e5cc77f38cd1df4724f43990045b
diff --git a/sdm/include/utils/utils.h b/sdm/include/utils/utils.h
index b1c55c4..b10fd6b 100644
--- a/sdm/include/utils/utils.h
+++ b/sdm/include/utils/utils.h
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2016 - 2017, The Linux Foundation. All rights reserved.
+* Copyright (c) 2016 - 2018, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -30,6 +30,8 @@
#ifndef __UTILS_H__
#define __UTILS_H__
+#include <cstring>
+
namespace sdm {
float gcd(float a, float b);
@@ -43,6 +45,11 @@
DriverType GetDriverType();
+template<class T>
+bool SameConfig(T *t1, T *t2, unsigned int size) {
+ return !(std::memcmp(t1, t2, size));
+}
+
} // namespace sdm
#endif // __UTILS_H__