summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGowtham Tammana <g-tammana@ti.com>2018-07-02 13:43:14 -0500
committerGowtham Tammana <g-tammana@ti.com>2018-07-11 16:57:01 -0500
commit25a0723e1f2d96294b7556e302392911131a38c2 (patch)
treed399ea2523a50186dc29ad6b8bdcb61e26668942
parentfe61ed7e7aca25aa1a4e6a95e6bd16923e874bd9 (diff)
downloaddra7xx-25a0723e1f2d96294b7556e302392911131a38c2.tar.gz
hwc: Remove unused variables
Remove `buffers` and `mem1d_total` variable references as they are not used anymore. Change-Id: I52fad3aa5ec51c169abc215095ed5e08c0672805 Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
-rw-r--r--hwcomposer/display.h1
-rw-r--r--hwcomposer/layer.c12
-rw-r--r--hwcomposer/layer.h1
3 files changed, 0 insertions, 14 deletions
diff --git a/hwcomposer/display.h b/hwcomposer/display.h
index 8b6bb98..233dba6 100644
--- a/hwcomposer/display.h
+++ b/hwcomposer/display.h
@@ -135,7 +135,6 @@ struct drm_plane_props {
typedef struct drm_plane_props drm_plane_props_t;
struct composition {
- buffer_handle_t *buffers;
bool use_sgx;
bool use_blitter; /* blitter usage flag */
diff --git a/hwcomposer/layer.c b/hwcomposer/layer.c
index 9201e70..e047ac7 100644
--- a/hwcomposer/layer.c
+++ b/hwcomposer/layer.c
@@ -102,16 +102,6 @@ bool is_upscaled_nv12_layer(omap_hwc_device_t *hwc_dev, const hwc_layer_1_t *lay
HEIGHT(layer->displayFrame) >= h * hwc_dev->upscaled_nv12_limit);
}
-uint32_t get_required_mem1d_size(const hwc_layer_1_t *layer)
-{
- IMG_native_handle_t *handle = (IMG_native_handle_t *)layer->handle;
-
- if (handle == NULL || is_nv12_layer(layer))
- return 0;
-
- return get_stride_from_format(handle->iFormat, handle->iWidth) * handle->iHeight;
-}
-
static bool can_scale_layer(omap_hwc_device_t *hwc_dev, int disp, const hwc_layer_1_t *layer)
{
display_t *display = hwc_dev->displays[disp];
@@ -206,8 +196,6 @@ void gather_layer_statistics(omap_hwc_device_t *hwc_dev, int disp, hwc_display_c
if (is_protected_layer(layer))
layer_stats->protected++;
-
- layer_stats->mem1d_total += get_required_mem1d_size(layer);
}
}
}
diff --git a/hwcomposer/layer.h b/hwcomposer/layer.h
index 4868cf7..bddf818 100644
--- a/hwcomposer/layer.h
+++ b/hwcomposer/layer.h
@@ -33,7 +33,6 @@ struct layer_statistics {
uint32_t dockable;
uint32_t protected;
uint32_t framebuffer;
- uint32_t mem1d_total;
};
typedef struct layer_statistics layer_statistics_t;