liboverlay: Check for target specific flag for older platforms.
Venus color format is not supported on older platforms so add
check for target specific flag.
Change-Id: Id215f3a609ed4ebfff7b26bbbd05b727dc374694
diff --git a/liboverlay/overlayUtils.h b/liboverlay/overlayUtils.h
index 28d2b67..cbacf3e 100644
--- a/liboverlay/overlayUtils.h
+++ b/liboverlay/overlayUtils.h
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
+* Copyright (c) 2011-2013, 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
@@ -44,7 +44,8 @@
#include <utils/Log.h>
#include "gralloc_priv.h" //for interlace
-#ifndef MDP_Y_CBCR_H2V2_VENUS
+// Older platforms do not support Venus.
+#ifndef VENUS_COLOR_FORMAT
#define MDP_Y_CBCR_H2V2_VENUS (MDP_IMGTYPE_LIMIT2 + 1)
#endif