summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGowtham Tammana <g-tammana@ti.com>2017-02-16 14:21:13 -0600
committerGowtham Tammana <g-tammana@ti.com>2017-03-01 15:05:27 -0600
commit5e6d0998164eab9afa0a9c93441bbd504749be2a (patch)
tree0bbc0f658afc9f14523370152dcaebd0dfba517d
parent5287ac7934db42a5f8649cb755d7b23ad880348b (diff)
downloaddra7xx-5e6d0998164eab9afa0a9c93441bbd504749be2a.tar.gz
hwc: Add new blitter hint
HWC HAL defines hints that are set by HAL and read by SurfaceFlinger. A custom hint `HWC_HINT_BLITTER` is defined to mark the overlay layers as being composed by blitter deviced. This can be used to differentiate the type of composition used during the `dumpsys SurfaceFlinger` output. Change-Id: I748d6045c2d46134abbbd626c0a5266a4f38e7bd Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
-rw-r--r--hwcomposer/hwc.c2
-rw-r--r--hwcomposer/hwc_dev.h6
2 files changed, 8 insertions, 0 deletions
diff --git a/hwcomposer/hwc.c b/hwcomposer/hwc.c
index a841324..ef78293 100644
--- a/hwcomposer/hwc.c
+++ b/hwcomposer/hwc.c
@@ -147,6 +147,8 @@ static void hwc_check_blitter_composition(omap_hwc_device_t *hwc_dev, int disp)
for (i = 0; i < list->numHwLayers - 1; i++) {
hwc_layer_1_t *layer = &list->hwLayers[i];
layer->compositionType = HWC_OVERLAY;
+ /* we add hint to mark this as blitter layer */
+ layer->hints |= HWC_HINT_BLITTER;
}
}
}
diff --git a/hwcomposer/hwc_dev.h b/hwcomposer/hwc_dev.h
index 6b49c36..e8c3101 100644
--- a/hwcomposer/hwc_dev.h
+++ b/hwcomposer/hwc_dev.h
@@ -28,6 +28,12 @@
#include "display.h"
#include "blitter.h"
+/* hints are set by HWC for SF, we define a custom hint to indicate
+ * blitter composition. With this it will be easier to differentiate
+ * type of HWC composition on dumpsys output.
+ */
+#define HWC_HINT_BLITTER 0x1000
+
struct omap_hwc_module {
hwc_module_t base;