aboutsummaryrefslogtreecommitdiff
path: root/hw/display/omap_lcd_template.h
diff options
context:
space:
mode:
authorPooja Dhannawat <dhannawatpooja1@gmail.com>2016-05-12 13:22:24 +0100
committerPeter Maydell <peter.maydell@linaro.org>2016-05-12 13:22:24 +0100
commitea644cf3431297cf6ce1c7562ec5aa221149d856 (patch)
tree7d9d629be0a09e0482ef711d1ef9b9defd2e3600 /hw/display/omap_lcd_template.h
parent5c87c4089afed982d5bc40cddbbef72c38d0389a (diff)
omap_lcdc: Remove support for DEPTH != 32
surface_bits_per_pixel() always returns 32 so, removing other dead code which is based on DEPTH !== 32 Signed-off-by: Pooja Dhannawat <dhannawatpooja1@gmail.com> Message-id: 1459260142-9144-1-git-send-email-dhannawatpooja1@gmail.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/display/omap_lcd_template.h')
-rw-r--r--hw/display/omap_lcd_template.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/hw/display/omap_lcd_template.h b/hw/display/omap_lcd_template.h
index f0ce71fd66..1025ff3825 100644
--- a/hw/display/omap_lcd_template.h
+++ b/hw/display/omap_lcd_template.h
@@ -27,13 +27,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#if DEPTH == 8
-# define BPP 1
-# define PIXEL_TYPE uint8_t
-#elif DEPTH == 15 || DEPTH == 16
-# define BPP 2
-# define PIXEL_TYPE uint16_t
-#elif DEPTH == 32
+#if DEPTH == 32
# define BPP 4
# define PIXEL_TYPE uint32_t
#else
@@ -152,7 +146,7 @@ static void glue(draw_line12_, DEPTH)(void *opaque,
static void glue(draw_line16_, DEPTH)(void *opaque,
uint8_t *d, const uint8_t *s, int width, int deststep)
{
-#if DEPTH == 16 && defined(HOST_WORDS_BIGENDIAN) == defined(TARGET_WORDS_BIGENDIAN)
+#if defined(HOST_WORDS_BIGENDIAN) == defined(TARGET_WORDS_BIGENDIAN)
memcpy(d, s, width * 2);
#else
uint16_t v;