Files
qemu/hw/display
Helge Deller c7050f3f16 hw/display/artist: Refactor x/y coordination extraction
Simplify the code by using new introduced ADDR_TO_Y() and ADDR_TO_X()
macros. Those macros extract the x/y-coordinate from the given uint32.

As further simplification the extraction of the x/y coordinates for
VRAM_WRITE_INCR_Y and VRAM_WRITE_INCR_X can be done centrally in
vram_bit_write(), so move this code up into the function.

ADDR_TO_Y() is still limited to 10 bits which allow to address up to of
1024 lines - this will be increased in a follow-up patch.

Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
2020-09-03 17:30:04 +02:00
..
2019-08-22 10:04:20 +02:00
2020-06-30 22:54:24 +02:00
2017-03-27 12:14:45 +02:00
2019-12-16 13:04:46 +01:00
2020-01-27 10:49:51 -08:00
2020-08-21 06:30:31 -04:00
2019-08-16 13:31:52 +02:00
2016-01-29 15:07:24 +00:00
2020-07-21 10:56:47 +02:00
2020-02-13 08:31:40 +01:00
2020-05-18 15:43:51 +02:00
2017-04-24 12:32:12 +01:00
2020-06-30 22:50:04 +02:00
2019-08-16 13:31:52 +02:00
2020-05-15 07:08:52 +02:00
2020-05-15 07:08:52 +02:00
2019-08-16 13:31:52 +02:00
2020-06-15 22:05:28 +02:00