qxl: fix qxl_set_dirty call in qxl_dirty_one_surface
commite0127d2eec9cd5676ea9f3c47c2a7579a02c0466
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 13 Jul 2016 12:33:06 +0000 (13 14:33 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 20 Jul 2016 10:08:14 +0000 (20 12:08 +0200)
tree773acae8e5b4e6a0ab0961ab61aec76438813cb6
parent5d3217340adcb6c4f0e4af5d2b865331eb2ff63d
qxl: fix qxl_set_dirty call in qxl_dirty_one_surface

qxl_set_dirty() expects start and end as range specification.
qxl_dirty_one_surface passes 'size' instead of 'offset + size' as end
parameter.  Fix that.  Also use uint64_t everywhere while being at it.

Bug was added by "e25139b qxl: set only off-screen surfaces dirty instead
of the whole vram" and carried forward unnoticed by "5cdc402 qxl: fix
surface migration".

Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-id: 1468413187-22071-1-git-send-email-kraxel@redhat.com
hw/display/qxl.c
hw/display/trace-events