diff options
author | Peter Maydell | 2021-02-15 11:32:08 +0100 |
---|---|---|
committer | Peter Maydell | 2021-03-05 16:17:35 +0100 |
commit | b2b111faec50918a5e3b78942be5b81cb46a51fc (patch) | |
tree | 97fd916e39ad6e8ac2e8ed21488e077de9537a1b /hw/display/tc6393xb.c | |
parent | hw/arm/musicpal: Remove dead code for non-32-bit-RGB surfaces (diff) | |
download | qemu-b2b111faec50918a5e3b78942be5b81cb46a51fc.tar.gz qemu-b2b111faec50918a5e3b78942be5b81cb46a51fc.tar.xz qemu-b2b111faec50918a5e3b78942be5b81cb46a51fc.zip |
hw/display/tc6393xb: Remove dead code for handling non-32bpp surfaces
For a long time now the UI layer has guaranteed that the console
surface is always 32 bits per pixel RGB. Remove the legacy dead
code from the tc6393xb display device which was handling the
possibility that the console surface was some other format.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210215103215.4944-3-peter.maydell@linaro.org
Diffstat (limited to 'hw/display/tc6393xb.c')
-rw-r--r-- | hw/display/tc6393xb.c | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/hw/display/tc6393xb.c b/hw/display/tc6393xb.c index 49a676d1b0..4cddb1a99a 100644 --- a/hw/display/tc6393xb.c +++ b/hw/display/tc6393xb.c @@ -410,43 +410,12 @@ static void tc6393xb_nand_writeb(TC6393xbState *s, hwaddr addr, uint32_t value) (uint32_t) addr, value & 0xff); } -#define BITS 8 -#include "tc6393xb_template.h" -#define BITS 15 -#include "tc6393xb_template.h" -#define BITS 16 -#include "tc6393xb_template.h" -#define BITS 24 -#include "tc6393xb_template.h" #define BITS 32 #include "tc6393xb_template.h" static void tc6393xb_draw_graphic(TC6393xbState *s, int full_update) { - DisplaySurface *surface = qemu_console_surface(s->con); - - switch (surface_bits_per_pixel(surface)) { - case 8: - tc6393xb_draw_graphic8(s); - break; - case 15: - tc6393xb_draw_graphic15(s); - break; - case 16: - tc6393xb_draw_graphic16(s); - break; - case 24: - tc6393xb_draw_graphic24(s); - break; - case 32: - tc6393xb_draw_graphic32(s); - break; - default: - printf("tc6393xb: unknown depth %d\n", - surface_bits_per_pixel(surface)); - return; - } - + tc6393xb_draw_graphic32(s); dpy_gfx_update_full(s->con); } |