aboutsummaryrefslogtreecommitdiff
path: root/qga/commands-posix.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-04-02 12:31:35 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-04-18 11:17:27 +0200
commitab75ecb79be3b856f63bef4c91aef0dc17d405cb (patch)
tree04370c6fac0ffbe5a5b9af31ac40a69aa86e4450 /qga/commands-posix.c
parent748e62dbf5065c7d166c827425c7797389b5f9fe (diff)
downloadqemu-ab75ecb79be3b856f63bef4c91aef0dc17d405cb.zip
qemu-ab75ecb79be3b856f63bef4c91aef0dc17d405cb.tar.gz
qemu-ab75ecb79be3b856f63bef4c91aef0dc17d405cb.tar.bz2
vga: optimize computation of dirty memory region
The depth == 0 and depth == 15 have to be special cased because width * depth / 8 does not provide the correct scanline length. However, thanks to the recent reorganization of vga_draw_graphic() the correct value of VRAM bits per pixel is available in "bits". Use it (via the same "bwidth" computation that is used later in the function), thus restricting the slow path to the wraparound case. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qga/commands-posix.c')
0 files changed, 0 insertions, 0 deletions