sdm: color-manager: Add new PP versions to color manager
This change adds a new gamut version to color manager to support
the newly introduced gamut version in hardware.
An new value kSDEPpVersionInvalid is also added to indicate
invalid PP feature version for error cases.
CRs-Fixed: 2007376
Change-Id: Ib1a738fdf39fa28f163c5d7fa08260c36451f3fc
diff --git a/sdm/include/private/color_params.h b/sdm/include/private/color_params.h
index 91499f9..a3ecd50 100644
--- a/sdm/include/private/color_params.h
+++ b/sdm/include/private/color_params.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2016, The Linux Foundataion. All rights reserved.
+/* Copyright (c) 2015-2017, The Linux Foundataion. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -55,6 +55,26 @@
kNoAction = BITMAP(31),
};
+static const uint32_t kOpsEnable = BITMAP(0);
+static const uint32_t kOpsRead = BITMAP(1);
+static const uint32_t kOpsWrite = BITMAP(2);
+static const uint32_t kOpsDisable = BITMAP(3);
+
+static const uint32_t kOpsGc8BitRoundEnable = BITMAP(4);
+
+static const uint32_t kPaHueEnable = BITMAP(4);
+static const uint32_t kPaSatEnable = BITMAP(5);
+static const uint32_t kPaValEnable = BITMAP(6);
+static const uint32_t kPaContEnable = BITMAP(7);
+
+static const uint32_t kPaSixZoneEnable = BITMAP(8);
+static const uint32_t kPaSkinEnable = BITMAP(9);
+static const uint32_t kPaSkyEnable = BITMAP(10);
+static const uint32_t kPaFoliageEnable = BITMAP(11);
+
+static const uint32_t kLeftSplitMode = BITMAP(28); // 0x10000000
+static const uint32_t kRightSplitMode = BITMAP(29); // 0x20000000
+
// ENUM to identify different Postprocessing feature block to program.
// Note: For each new entry added here, also need update hw_interface::GetPPFeaturesVersion<>
// AND HWPrimary::SetPPFeatures<>.
@@ -98,6 +118,7 @@
struct PPFeatureVersion {
// SDE ASIC versioning its PP block at each specific feature level.
+ static const uint32_t kSDEPpVersionInvalid = 0;
static const uint32_t kSDEIgcV17 = 1;
static const uint32_t kSDEPgcV17 = 5;
static const uint32_t kSDEDitherV17 = 7;
@@ -107,6 +128,7 @@
static const uint32_t kSDELegacyPP = 15;
static const uint32_t kSDEPADitherV17 = 16;
static const uint32_t kSDEIgcV30 = 17;
+ static const uint32_t kSDEGamutV4 = 18;
uint32_t version[kMaxNumPPFeatures];
PPFeatureVersion() { memset(version, 0, sizeof(version)); }
@@ -382,6 +404,7 @@
enum GamutMode {
GAMUT_FINE_MODE = 0x01,
GAMUT_COARSE_MODE,
+ GAMUT_COARSE_MODE_13,
};
// This factory method will be used by libsdm-color.so data producer to be populated with