vga: Separate LE and BE conversion functions
commit46c3a8c8ebe2966cc1f7af12626f89c83d547bfb
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 6 Jul 2014 23:48:28 +0000 (7 09:48 +1000)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 30 Sep 2014 11:34:09 +0000 (30 13:34 +0200)
tree54ec8afe3a7294b17ec999353f6113cb3fe1dd60
parentd2e043a804141ec0a896270d25d6ae370c473ddd
vga: Separate LE and BE conversion functions

Provide different functions for converting from an LE vs a BE
framebuffer. We cannot rely on the simple cases always being
shared surfaces since cirrus will need to always shadow for
cursor emulation, so we need the full set of functions to
be able to later handle runtime switching.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>\
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
hw/display/vga.c
hw/display/vga_template.h